core/tools: include VCS_TOOLS in DEFAULT_TOOLS

Wire vcs tools into the default agent registry and document the
extensible backend design.
This commit is contained in:
2026-07-15 10:22:07 +08:00
parent 5b4d3985b7
commit 0ab1a7f953
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ Module-level `@tool` handlers. Call `set_workspace_root()` before use.
- PTY: structured status (`alive`/`exit_code`/`data`); `read_pty(..., until=)`; session limit/idle TTL/output budget; close SIGTERM→SIGKILL.
- CLI limit hooks: interactive confirm to raise tool-loop rounds, PTY session cap, or PTY output budget.
- Destructive confirms: `classify_danger` + `ToolRegistry(on_confirm=…)`; CLI default deny; config `confirm_destructive` / `path_denylist`.
- **`DEFAULT_TOOLS`**: file + process tool list for a `ToolRegistry`.
- **`vcs`**: read-only VCS tools (`vcs_kind` / `vcs_status` / `vcs_diff` / `vcs_log` / `vcs_branch`) via `VcsBackend` protocol; **git** implemented; detectors are pluggable for other systems.
- **`DEFAULT_TOOLS`**: file + process + vcs tool list for a `ToolRegistry`.
### CLI (`cli/`)