Repository navigation
feat(server): tell agents when to use the t3-code tools (#46) - #53
Merged
Merged
Conversation
3 tasks
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
lukemaj
force-pushed
the
feat/46-tool-instructions
branch
from
September 27, 2026 19:13
e4a026f to
5ea4b9f
Compare
Harnesses that defer tool schemas show agents only tool names, and Grok not even those, so planners missed prism_submit and spawn_thread and opened terminal sessions instead. Every harness's launch prompt now carries a short t3-code tool guide: prism_submit for an authorized job that ends in one PR, spawn_thread for small work or a named model and effort, plus the browser, device and Issue tools. The text lives in apps/server/src/mcp/toolInstructions.ts. The launch prompt stays its home: MCP server instructions would reach Claude Code, Codex, OpenCode and Grok, but a live ACP run showed Cursor does not show them to the model, and Antigravity only writes them to a file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
lukemaj
force-pushed
the
feat/46-tool-instructions
branch
from
September 27, 2026 19:14
5ea4b9f to
00822f9
Compare
Contributor
Author
Independent review of
|
Contributor
Author
|
Correction to my independent review of |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents in Chromeria could not find the t3-code tools when their harness defers tool schemas. Claude Code and Codex show only tool names, and Grok not even those, so a planner missed
prism_submitandspawn_threadand opened terminal sessions instead (#46).Every harness's launch prompt now carries a short tool guide in
<t3_code_tool_use>:prism_submitfor an authorized job that should end in one PR,spawn_threadfor small work or a named model and effort, plus the browser, device and Issue tools. The text lives in the fork fileapps/server/src/mcp/toolInstructions.ts; the upstream edit is two lines inRuntimeInstructions.ts.The launch prompt is the channel that reaches all six harnesses. MCP server
instructions(Effect 4.0.0-rc.116+) would reach Claude Code, Codex, OpenCode and Grok, but a live ACP run showed Cursor does not show them to the model, and Antigravity only writes them to a file. Research: #46 (comment)Proof: new
toolInstructions.test.ts(every harness gets the rule; the Codex entry stays under Codex's 1,000-token additional-context cap), plus the existing RuntimeInstructions, Claude, Cursor, OpenCode and Codex runtime tests, server typecheck, lint and format on the changed files.Refs #46
Done by Claude Opus 5.5 in Claude Code, running in T3 Code.
🤖 Generated with Claude Code