Give your agents the context
Install Git first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.
clip registry add git --purpose "Inspect repository changes and commit history"
clip syncCoverage: Selected inspection commands. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.
Agent validation
The schema has changed since its last eval run, so the result below no longer applies.
An agent (claude-sonnet-5, Claude Code 2.1.278) completed 4 of 4 read-only tasks with this schema and 4 of 4 without it, against git version 2.55.0, on 2026-09-21. A schema can pass without adding anything the model didn't already know, so compare the two.
what's described
Capabilities
git status
Inspect staged, unstaged, and untracked changes. Use --no-optional-locks to avoid the optional index refresh.
git --no-optional-locks status --porcelain=v1git log
Inspect commit history. Bound results with -n and disable pagers for unattended use.
git --no-pager log -n 20 --onelineInspect the source
Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.
Full capability document
{
"name": "git",
"version": "2.x",
"description": "Selected inspection commands for Git repositories. Mutation status is unknown: status refreshes and writes the index by default, while log accepts --output to write a file. This is a partial community schema, not a CLI Spec conformance claim.",
"command_layout": "flat",
"output": {
"tty": "text",
"piped": "text"
},
"global_args": [
{
"name": "--no-optional-locks",
"type": "boolean",
"description": "Disable optional operations that require locks; use for status inspection."
},
{
"name": "--no-pager",
"type": "boolean",
"description": "Write straight to stdout instead of a pager; use for unattended reads."
}
],
"commands": [
{
"name": "status",
"description": "Inspect staged, unstaged, and untracked changes. Use --no-optional-locks to avoid the optional index refresh.",
"args": [
{
"name": "--porcelain",
"type": "string",
"enum": [
"v1",
"v2"
],
"description": "Stable machine-readable text output."
}
],
"examples": [
"git --no-optional-locks status --porcelain=v1"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "Porcelain status records, not JSON."
}
]
},
{
"name": "log",
"description": "Inspect commit history. Bound results with -n and disable pagers for unattended use.",
"documentation": "https://git-scm.com/docs/git-log",
"args": [
{
"name": "-n",
"type": "integer",
"description": "Maximum number of commits."
},
{
"name": "--oneline",
"type": "boolean",
"description": "One abbreviated hash and subject per commit."
}
],
"examples": [
"git --no-pager log -n 20 --oneline"
],
"output_fields": [
{
"name": "stdout",
"type": "string",
"description": "One commit per line with --oneline; the default format is a multi-line human-readable record."
}
]
}
]
}