Skip to content

Implement built-in tools: file system operations #18

@Aureliolo

Description

@Aureliolo

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_file tool: read file contents with optional line range
  • write_file tool: create or overwrite files
  • edit_file tool: modify specific sections of existing files
  • list_directory tool: list files and directories with optional filtering
  • delete_file tool: 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

Design Spec Reference

Section 11.1 — Built-in Tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:highImportant, should be prioritizedscope:medium1-3 days of workspec:securityDESIGN_SPEC Section 12 - Security & Approval Systemspec:toolsDESIGN_SPEC Section 11 - Tool & Capability Systemtype:featureNew feature implementation

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions