agent_hint: per-agent split + codex/gemini opener tune#21
Open
Prasanna721 wants to merge 3 commits into
Open
Conversation
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.
Summary
render_blockinto per-agent dispatcher withrender_claude_block(Claude) andrender_default_block(Codex + Gemini). Bodies are byte-identical except the opener.is searchable by meaning, not just filename.Codex was spiraling on filename-based filesystem exploration without an explicit anti-pattern phrase; this nudges it towardsmfs grepas the primary search.smfs grepbanner into a single line. Same info, less noise per query.Measured impact
On a 10-question, 20-record codex/smfs subset vs codex/fs baseline:
The opener tune alone is -13.9% codex tok/correct at constant pass rate (26 fewer tool calls, 130s faster wall time). Claude's number was already optimal at 326K with the older opener, so the claude block was left alone.
Test plan
cargo build --release -p smfs-core -p smfscleancargo test -p smfs-core(note: there is a pre-existing stale test on a sibling branch asserting the older hint wording — not included here, so this branch's tests should pass)smfs mount <tag>, verify~/.claude/CLAUDE.mdand~/.codex/AGENTS.mdget different openers; verify both unmount cleanly