feat(chat): Add precise sandbox file tools#313
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5a2af56 to
6648d2e
Compare
Add exact edit, grep, findFiles, and listDir sandbox tools so agent file inspection and mutation can use structured bounded outputs instead of shell or full-file write paths. Refs GH-312 Co-Authored-By: GPT-5 Codex <[email protected]>
6648d2e to
63fcec7
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 63fcec7. Configure here.
Handle globstar path segments without requiring a nested directory and deduplicate overlapping grep context output. Refs GH-312 Co-Authored-By: GPT-5 Codex <[email protected]>
Remove the duplicate sandbox number parser so sub-unit numeric values normalize consistently across sandbox tools. Refs GH-312 Co-Authored-By: GPT-5 Codex <[email protected]>
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.

Add first-class sandbox file tools for exact edits and structured discovery so Junior can inspect and mutate files without relying on broad bash output or full-file writes.
Sandbox File Tools
editFileapplies exact non-overlapping replacements, preserves line endings, and returns a compact diff.grep,findFiles, andlistDirexpose bounded structured discovery, whilereadFilesupports line-window reads.Tool Metadata
Tool definitions can now carry prompt guidance, argument preparation, and per-tool execution mode. Mutating file tools run sequentially, and terse guidance is surfaced in per-turn context.
Refs GH-312