Skip to content

Built-in Tool: Git

Document ID: TRT-104
File Path: docs/07-tool-runtime/git.md
Version: 1.0.0
Status: Draft
Owner: AI Platform Team
Last Updated: 2026-06-27


The git.* built-in tools let agents work with Git repositories in the workspace — inspecting history, producing diffs, and (when granted) committing/pushing — for code agents and automation.


ToolDescription
git.cloneClone a repo into the workspace
git.statusWorking-tree status
git.diffProduce a diff
git.commitCommit staged changes
git.branchCreate/switch branches
git.pushPush to a remote (guarded)

// input
{ "cwd": "/workspace/repo", "staged": false }
// output
{ "diff": "diff --git a/... b/...", "files_changed": 2 }

fs:read:/workspace fs:write:/workspace
net:egress:<git-host> (clone/push)
secret:read:<git-token-ref> (auth to remote)
git:write (commit/push)

git.commit/git.push require elevated grants; read-only inspection (status/diff) is low-risk. The Code Agent deliberately withholds commit to force human review.


  • Runs in the workspace sandbox; remote access only to granted hosts.
  • Git credentials are secret references injected at run time, never logged (secrets).
  • Pushes are typically gated behind a workflow approval.

Read operations (status/diff/log) may be cached briefly; mutating operations are never cached.


Terminal window
wovyr tools invoke git.diff --input '{"cwd":"/workspace/repo"}'


VersionDateDescription
1.0.02026-06-27Initial Git tool spec