Skip to main content
← All tools

Git

Inspect repository changes and commit history

DevelopmentSchema v1.2.0Maintained by mcclowes

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 sync

Coverage: 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.

How validation works ↗

what's described

Capabilities

Mutation status unknown

git status

Inspect staged, unstaged, and untracked changes. Use --no-optional-locks to avoid the optional index refresh.

git --no-optional-locks status --porcelain=v1
Mutation status unknown

git log

Inspect commit history. Bound results with -n and disable pagers for unattended use.

git --no-pager log -n 20 --oneline

Inspect 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."
        }
      ]
    }
  ]
}

View source and propose an update ↗

SHA-256: 3f6e0a8c4c6a3b59ba00d8701cfd2f2738eedd784620a0489c9c63766262eee5