Repository navigation
perf(prompts): drop prompt text the request already carries - #421
Merged
Merged
Conversation
- build: the "Filesystem tools" list restated each tool's own description; keep only what the descriptions do not say (prefer them over shell, orient with repomap, offset/limit, which directories to skip). - build: "Time-sensitive facts" repeated the `# Environment` line every agent already gets (trust the date, do not pin a past year). - ask: same duplicate half-sentence. build.txt 1,092 -> 948 tokens (o200k), on every request of a build session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mrnasil
force-pushed
the
perf/prompt-dedup
branch
from
November 7, 2026 13:28
2817878 to
a23d730
Compare
Merged
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.
Part of the token-efficiency series (#418, #419, #420).
list,repomap,glob,grepandread, and repeated what each tool's own description already says. Only the guidance the descriptions lack is kept: prefer these tools over shell, orient withrepomapinstead of a first-turn glob+read loop, useoffset/limiton large files, and skip the cargo registry,~/.cargo,target/andnode_modules.# Environmentline that every agent's system prompt already ends with ("do not pin the query to a past year; prefer canonical sources"). It is removed.The build prompt goes from 1,092 to 948 tokens (o200k, −13%), on every request of a build session.
Checks:
cargo test -p whycodes-agentpasses (764).🤖 Generated with Claude Code