Cut the tool and system-prompt bloat by merging similar tools, losing nothing.
- User
Cut the tool and system-prompt bloat by merging similar tools, losing nothing.
Assistant
I'll inventory the tools and merge the redundant ones.
Assistant
That's only the base registry — the full agent adds many more in prep. Let me find the complete assembly.
Assistant
Now let me check the blast radius — where tool names are referenced by string (routing, loop allowlists, evidence, strict gates).
Assistant
Now unit tests for the registry alias mechanism (TDD).
Assistant
Now the generative media merge: 6 tools → 1
generate_mediawith akinddiscriminator, aliases for the old names.Assistant
Media merge green (1301 tests). Now the repro sandbox: 7 tools → 1
repro_sandboxwith anactiondiscriminator. Refactoring to shared helpers first.Assistant
Now background tasks: 3 → 1
background_taskwith an action discriminator.Assistant
Now update the routing category map for the merged sandbox/background names, then typecheck.
Assistant
Now measure the actual reduction and update the system prompt tool table.
Assistant
47 → 34 tools, 22075 → 19177 chars (~13% smaller, ~725 tokens saved per turn). Now update the system prompt tool table.
Assistant
Now update the shell-hint that suggests the background tool.
Assistant
Now the full gate: typecheck both packages, full tests, smoke.
Assistant
End-to-end confirms merged names and retired aliases both work with zero unknown-tool errors. Now docs, lessons, cleanup, and commit.
Assistant
The test title contradicts its assertion (alias actually wins). Let me fix that honestly.
Assistant
Let me update the todos and run the final full gate before committing.
Assistant
All green. Committing.
Assistant
I merged the redundant tools and cut the tool-schema bloat by ~13% with nothing lost. The commit is on PR #7. What changed
I inventoried every tool the full agent registry advertises — 47 tools totaling 22,075 characters (~5,500 tokens sent on every turn) — and found three clusters of near-identical tools that each carried a separate schema for what was really one operation with a mode switch.