Fix #129: feat request: add ReadFile, WriteFile, and EditFile tools#149
Open
0xRozier wants to merge 3 commits intovirattt:mainfrom
Open
Fix #129: feat request: add ReadFile, WriteFile, and EditFile tools#1490xRozier wants to merge 3 commits intovirattt:mainfrom
0xRozier wants to merge 3 commits intovirattt:mainfrom
Conversation
Implement path-based permission system persisted in .dexter/permissions.json. Supports exact file matches and recursive directory grants per tool type. Closes virattt#129 (partial) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Implement three file system tools using LangChain DynamicStructuredTool: - read_file: reads files with line numbers, offset/limit support - write_file: creates/overwrites files, auto-creates parent dirs - edit_file: exact string replacement with uniqueness validation All tools check permissions before operating. Includes comprehensive tests. Closes virattt#129 (partial) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add read_file, write_file, and edit_file to the tool registry so they are available to the agent. Tools are always enabled (no env var gate). Closes virattt#129 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Author
|
Hi @virattt, could you take a look at it when you'll have time ? |
Owner
|
Hey @0xRozier - apologies for the delay here. I've been digging into the filesystem functionality today and realized we also need to add sandboxing support. As a result, let's hold off on adding this tool for now! |
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.
Closes #129
Changes
Testing
Issue: #129