Skip to content

Make component reads shorter and more useful - #5

Merged
isaiahagi merged 2 commits into
mainfrom
feat/compact-component-reads
Nov 29, 2026
Merged

isaiahagi merged 2 commits into
mainfrom
feat/compact-component-reads

Conversation

@isaiahagi

Copy link
Copy Markdown
Owner

What

get_object with a component now returns a shorter, more useful reply:

  • Lists of objects are named, so the model can see which materials a renderer uses (before: (list of 1))
  • Nested groups are listed on one line instead of one note each
  • Renderer lighting settings are summarised. set_property still reaches them by name

Why

Local models have small context windows. A particle system reply was larger than the whole result budget at --num-ctx 4096.

Measured (headless Unity 6000.6.8f1)

Component Before After
MeshRenderer 879 397
ParticleSystem 2143 828
ParticleSystemRenderer 1655 (cut off) 1105 (complete)
Total over nine components 7274 4860

15 live checks passed, including setting an unlisted setting and a field inside a group.

🤖 Generated with Claude Code

isaiahagi and others added 2 commits November 29, 2026 15:11
Name the materials and other objects held in lists, put all nested groups
on one line, and summarise renderer lighting settings, which can still be
set by name. In a test of nine components the replies shrank from 7,274 to
4,860 characters.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@isaiahagi
isaiahagi merged commit 606e551 into main Nov 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant