feat(agent): expand tool registry — file, git, shell, web fetch (#126) #138

Merged
jason.woltje merged 1 commits from feat/p7-015-agent-tools into main 2026-03-15 18:17:18 +00:00
Owner

Adds file ops (read/write/list), git status/log/diff, sandboxed shell exec, and HTTP fetch tools to agent sessions.

Adds file ops (read/write/list), git status/log/diff, sandboxed shell exec, and HTTP fetch tools to agent sessions.
jason.woltje added 1 commit 2026-03-15 18:17:07 +00:00
feat(agent): expand tool registry — file, git, shell, web fetch (#126)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
67cbf8e743
Adds four new tool groups to agent sessions:
- fs_read_file, fs_write_file, fs_list_directory — sandboxed to configurable base dir
- git_status, git_log, git_diff — read-only git operations
- shell_exec — sandboxed command execution with 30s timeout, 100KB output cap, and blocked command list
- web_get, web_post — HTTP fetch with 15s timeout, 512KB response cap, and private IP blocking

Tool factories are registered in AgentService constructor and exported from the tools index.
Base directory and working directories are configurable via AGENT_FILE_SANDBOX_DIR, AGENT_GIT_CWD,
and AGENT_SHELL_CWD environment variables.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje merged commit 07647c8382 into main 2026-03-15 18:17:18 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#138