-
Notifications
You must be signed in to change notification settings - Fork 0
Implement built-in git tools (DESIGN_SPEC §11.1) #132
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 implementationtype:testTest coverage, test infrastructureTest coverage, test infrastructure
Milestone
Description
Context
Git tools are listed alongside file system tools (#18) as M3 scope in the DESIGN_SPEC. Agents need git operations to work on codebases — clone repos, create branches, commit changes, view diffs, etc.
Acceptance Criteria
-
git_clonetool: clone a repository into the agent workspace -
git_committool: stage and commit changes with a message -
git_difftool: show changes (staged, unstaged, between branches) -
git_branchtool: create, switch, list branches -
git_statustool: show working tree status -
git_logtool: show commit history with optional filtering - All tools implement the tool interface from Design and implement basic tool system (registry, invocation, results) #15
- All tools execute through the subprocess sandbox
- Workspace boundary enforcement (agents can only operate in their assigned workspace)
- Comprehensive error handling (not a git repo, merge conflicts, network errors, etc.)
- Unit tests with temporary git repositories for all operations
- Edge case tests: empty repos, detached HEAD, merge conflicts
Dependencies
- Design and implement basic tool system (registry, invocation, results) #15 — Tool system (done)
- Subprocess sandbox issue (tools must execute through sandbox)
Design Spec Reference
- §11.1 — Built-in Tools (Git Tools category)
- §15.3 — tools/git_tools.py
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 implementationtype:testTest coverage, test infrastructureTest coverage, test infrastructure