Skip to content

Improve agent Read/Edit reliability with clearer guidance and larger read budget#853

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:feat/agent-read-edit-reliability
May 24, 2026
Merged

Improve agent Read/Edit reliability with clearer guidance and larger read budget#853
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:feat/agent-read-edit-reliability

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented May 24, 2026

Summary

  • Raise default Read output cap from 16k to 64k characters and align READ_MAX_TOOL_RESULT_CHARS storage limit so agents receive enough file context before Edit.
  • Tighten agent prompts and Edit/Read tool descriptions to require verbatim copy from Read results (preserve indentation, avoid reformatting HTML/CSS/JS).
  • Improve Edit not-found diagnostics with actionable re-read guidance and a single closest snippet instead of multiple noisy matches.

Test plan

  • cargo test -p bitfun-core edit_tool
  • cargo test -p tool-runtime
  • cargo check -p bitfun-core -p tool-runtime

…read budget.

Raise the default Read output cap and align tool-result storage so agents see enough context before Edit, and tighten prompts plus not-found diagnostics to require verbatim copy from Read results.
@bobleer bobleer merged commit e43af8a into GCWing:main May 24, 2026
1 check 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