| name | agent-system-git-cli | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Agent System Git guidance for using the active agent's managed identity, SSH signing, contained workspace, and operation policy. | ||||||||||||||||||||||||||||||||||
| license | MIT | ||||||||||||||||||||||||||||||||||
| metadata |
|
Use agent_system_git for working-tree and repository operations when the active agent manifest contains git. It applies the agent's operation policy, then runs the trusted git executable in a contained workspace directory with the agent's declared author and committer identity and any configured SSH signing key.
- Inspect or change local working trees, branches, commits, tags, and remotes.
- Fetch, pull, or push with the active agent's declared Git identity.
- Prefer this integration over
execor directgitcommands.
- Use
agent_system_githubfor GitHub issues, pull requests, releases, Actions, or API work. - Use
$agent-system-git-worktreeto prepare, locate, or remove managed worktrees. - Do not use this skill when the active agent manifest does not configure
git. - Do not use it to mutate Git configuration, manage credentials, or escape admitted roots.
- The active agent has a valid Agent System manifest with
gitconfigured. - The manifest resolves both an effective name and email from
gitoragent. gitis installed; the plugin skill metadata provides the Homebrew install hint.- OpenSSH is installed when the manifest configures authentication or signing keys.
Pass ordinary noninteractive git arguments in argv. Native tool calls may provide a cwd inside the agent workspace or configured worktree root. Trusted operator commands may also preserve a caller directory inside a local repository declared in git.worktrees.repositories.local. Use stdin only for ordinary command input below 64 KiB.
{ "argv": ["status", "--short"], "cwd": "project" }{ "argv": ["log", "-1", "--format=%an <%ae>"], "cwd": "project" }{ "argv": ["commit", "-m", "document agent identity"], "cwd": "project" }The native tool returns structured exitCode, stdout, stderr, and truncated fields. Report the Git result without claiming that the wrapper makes an untrusted repository safe.
- Treat a nonzero
exitCodeand returnedstderras the underlyinggitfailure. - Report missing tool, unresolved identity, manifest binding, and working-directory containment errors directly.
- Treat an Agent System denial as final for the current manifest: report the policy reason and required manifest change instead of waiting for an interactive decision.
- Do not work around denied or unknown operations with
exec, directgit, alternate working-directory flags, or configuration overrides. - Let Agent System apply configured signing automatically; do not pass signing-control flags or select another key.
- Repository-owned configuration remains a code-execution surface; do not run Git in an untrusted checkout solely because Agent System supplies the identity.
- Confirm the request is Git work and the active agent configures the integration.
- Choose the narrowest noninteractive Git command and contained working directory.
- Invoke
agent_system_gitwith only ordinary command arguments and optional bounded input. - Check
exitCode, usestdoutas the result, and surface concise failure details fromstderr.
agents/openai.yaml: Codex-facing display metadata and default prompt.- Small Git icon and large Git icon: shared Codex and tool-guide marks.
- Confirm the tool used the active agent rather than a model-supplied identity.
- Confirm the effective author and committer match the manifest when creating a commit.
- When signing is configured, confirm created commits and tags are signed and use local trust claims only when an allowed-signers file verifies them.
- Confirm native-tool working directories stay inside the bound agent workspace or configured worktree root. Operator commands may additionally use declared local repositories.