Skip to content

Fix #129: feat request: add ReadFile, WriteFile, and EditFile tools#149

Open
0xRozier wants to merge 3 commits intovirattt:mainfrom
0xRozier:feat/issue-129-file-tools
Open

Fix #129: feat request: add ReadFile, WriteFile, and EditFile tools#149
0xRozier wants to merge 3 commits intovirattt:mainfrom
0xRozier:feat/issue-129-file-tools

Conversation

@0xRozier
Copy link

Closes #129

Changes

082a099 feat: register file tools in tool registry
725edf9 feat: add read_file, write_file, and edit_file tools
8398c85 feat: add file system permission manager

Testing

  • Tests pass
  • Code follows project conventions
  • No linting errors

Issue: #129

0xRozier and others added 3 commits February 13, 2026 10:54
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]>
@0xRozier
Copy link
Author

Hi @virattt, could you take a look at it when you'll have time ?

@virattt
Copy link
Owner

virattt commented Feb 18, 2026

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!

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.

feat request: add ReadFile, WriteFile, and EditFile tools

2 participants