summary

summary is a command for coding agents from openshift-eng/ai-helpers. It costs 13 tokens per session (601 once invoked), scanned A, original, Apache-2.0.

A read-only Git command that shows the current branch, its relationship to the remote repository, file changes, and recent commits.

In plain words
What is it for?
Use it to quickly check whether the branch is ahead or behind, see modified or untracked files, and review recent commit summaries.
Why use it?
It provides repository context without requiring several separate Git commands.

Command

Part of the git plugin — 2 skills, 10 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/summary
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Or install git, the plugin that ships this one along with the rest of its 2 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for summary

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/summary.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/summary)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/summary"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/summary.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.00601
Opus 5 $0.00006 $0.00300
Sonnet 5 $0.00003 $0.00120
Haiku 4.5 $0.00001 $0.00060

Measured yesterday against content hash 63174a94ccbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

summary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • summary — 94% identical, 2 lines differ
plugins/git/commands/summary.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

git:summary

Synopsis

/git:summary

Description

The git:summary command provides a comprehensive overview of the current Git repository state. It displays the current branch, tracking status, working tree status, and recent commit history in a single concise view. This command is designed to give developers quick context about their repository without running multiple Git commands manually.

It provides essential information for developers including:

  • Current branch and remote tracking status (ahead/behind)
  • Working tree status (modified, staged, and untracked files)
  • Recent commit history with one-line summaries
  • Uncommitted changes summary

The spec sections is inspired by https://man7.org/linux/man-pages/man7/man-pages.7.html#top_of_page

Implementation

  • Executes multiple git commands to gather repository state
  • Retrieves current branch name and tracking information
  • Shows git status for modified, staged, and untracked files
  • Displays last 5 commits with one-line summaries
  • Summarizes uncommitted changes
  • Formats output for clear readability
  • All information is read-only with no side effects

Implementation logic:

# Get current branch and tracking status
git branch -vv

# Show working tree status
git status --short

# Display recent commits
git log --oneline -5

# Summarize uncommitted changes
git diff --stat

Return Value

  • Claude agent text: Formatted summary including:
    • Current branch name and remote tracking status
    • List of modified, staged, and untracked files
    • Last 5 commit messages with hashes
    • Statistics of uncommitted changes

Examples

  1. Basic usage:
    /git:summary
    
    Output:
    Current branch: main
    Your branch is up to date with 'origin/main'.
    
    Modified files:
     M src/index.ts
    ?? temp/
    
    Recent commits:
    abc123 Fix authentication bug
    def456 Add user profile feature
    ghi789 Update dependencies
    jkl012 Refactor database layer
    mno345 Initial commit
    
    Uncommitted changes:
    1 file changed, 15 insertions(+), 3 deletions(-)
    

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 103 lines · 13 tokens per session scan A 63174a94ccbe

Subscribe to this mod's changes

summary is a command published in the GitHub repository openshift-eng/ai-helpers (114 stars, last pushed yesterday), licensed Apache-2.0. It adds 13 tokens to every session and 601 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.