-
Notifications
You must be signed in to change notification settings - Fork 0
Implement built-in tools: file system operations #18
Copy link
Copy link
Closed
Labels
prio:highImportant, should be prioritizedImportant, should be prioritizedscope:medium1-3 days of work1-3 days of workspec:securityDESIGN_SPEC Section 12 - Security & Approval SystemDESIGN_SPEC Section 12 - Security & Approval Systemspec:toolsDESIGN_SPEC Section 11 - Tool & Capability SystemDESIGN_SPEC Section 11 - Tool & Capability Systemtype:featureNew feature implementationNew feature implementation
Milestone
Description
Context
Implement the first set of built-in tools for file system operations. These are the most fundamental tools that agents need for code generation, file management, and workspace interaction.
Acceptance Criteria
-
read_filetool: read file contents with optional line range -
write_filetool: create or overwrite files -
edit_filetool: modify specific sections of existing files -
list_directorytool: list files and directories with optional filtering -
delete_filetool: remove files (elevated access only) - All tools implement the tool interface from Implement hierarchical delegation (task flows down, results flow up) #12
- Path validation: prevent workspace escape (no ../ traversal attacks)
- Workspace boundary enforcement per agent access level
- Comprehensive error handling (file not found, permission denied, disk full, etc.)
- Unit tests with temporary directories for all operations
- Edge case tests: empty files, large files, binary files, symlinks
Dependencies
- Depends on Implement hierarchical delegation (task flows down, results flow up) #12 (basic tool system — tool interface and registry)
Design Spec Reference
Section 11.1 — Built-in Tools
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:highImportant, should be prioritizedImportant, should be prioritizedscope:medium1-3 days of work1-3 days of workspec:securityDESIGN_SPEC Section 12 - Security & Approval SystemDESIGN_SPEC Section 12 - Security & Approval Systemspec:toolsDESIGN_SPEC Section 11 - Tool & Capability SystemDESIGN_SPEC Section 11 - Tool & Capability Systemtype:featureNew feature implementationNew feature implementation