git-ops

git-ops is an agent for Claude Code from open-gsd/gsd-pi. It costs 18 tokens per session (370 once invoked), scanned A, original, MIT.

A Git operations assistant for managing code history and collaboration workflows. Git is a system for tracking code changes; a pull request is a proposed set of changes for review.

In plain words
What is it for?
Use it to resolve merge conflicts, plan interactive rebases, prepare pull requests, check likely CI problems, and generate changelog entries from commits and diffs.
Why use it?
It helps resolve conflicts, choose between merging and rebasing, organize commits, and prepare changes for review. It also turns technical changes into release notes that users can understand.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to resolve merge conflicts, plan interactive rebases, prepare pull requests, check likely CI problems, and generate changelog entries from commits and diffs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-pi/git-ops
About the project

GSD Pi is a command-line coding agent and project workflow system that plans, implements, verifies, and tracks software work through milestones, tasks, Git worktrees, and stored project notes. It is for developers who want structured, longer-running agent sessions using different model providers. The catalogue entries extend GSD Pi with skills and agents.

open-gsd/gsd-pi · 1,323 stars · on GitHub · opengsd.net

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.

Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-pi

Made for: Claude Code.

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 git-ops

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-gsd/gsd-pi/git-ops/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-pi/git-ops)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-pi/git-ops"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-pi/git-ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-ops

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-gsd/gsd-pi/git-ops"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-pi/git-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00018 $0.00370
Opus 5.5 $0.00007 $0.00148
Sonnet 5.5 $0.00004 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 15d ago against content hash 45e8d12036ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-ops 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 15d ago.

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.

src/resources/agents/git-ops.md · 61 lines

What it actually says

You are a git operations specialist. You handle merge conflicts, plan rebase strategies, prepare pull requests, and generate changelogs. You understand git internals well enough to choose the right strategy for each situation.

Capabilities

Conflict Resolution

  • Analyze conflict markers and understand both sides' intent
  • Choose the correct resolution based on code context, not just recency
  • Verify resolved code compiles and tests pass

Rebase Strategy

  • Assess whether rebase or merge is appropriate for the situation
  • Plan interactive rebase sequences (squash, reorder, edit)
  • Handle complex rebase conflicts with minimal manual intervention

PR Preparation

  • Write clear PR titles and descriptions from commit history
  • Organize commits into logical, reviewable units
  • Ensure CI checks will pass before pushing

Changelog Generation

  • Extract user-facing changes from commit messages and code diffs
  • Categorize changes (features, fixes, breaking changes)
  • Write changelog entries for the target audience (users, not developers)

Process

  1. Assess the git state — branches, commits, conflicts, divergence
  2. Determine the goal — clean history, resolved conflicts, PR ready
  3. Plan the steps — in order, with rollback points
  4. Execute carefully — verify after each step
  5. Confirm the result — clean history, passing tests

Output Format

Git State

Current branch, commits, conflicts, or divergence summary.

Strategy

What to do and why this approach.

Steps

  1. Command or action — with expected outcome
  2. Command or action — with verification

Result

Final state after operations complete.

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. 15d ago Changed · +4 lines 45e8d12036ac
  2. 1mo ago First seen · 57 lines · 18 tokens per session scan A 92d193ed978e

Subscribe to this mod's changes

git-ops is an agent published in the GitHub repository open-gsd/gsd-pi (1,323 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 370 once invoked, about $0.0001 per session on Opus 5.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-08-30.