git:fixup

git:fixup is a command for Claude Code from geoffjay/claude-plugins. It costs 17 tokens per session (4,692 once invoked), scanned A, original, MIT.

A Git command for creating fixup or squash commits that can later be combined with an earlier commit during interactive rebase. A fixup commit keeps the earlier commit’s message and removes the temporary fix message.

In plain words
What is it for?
Use it to attach corrections to the right earlier commit and autosquash them during history cleanup.
Why use it?
It keeps small corrections from cluttering the final history with separate typo, formatting, or forgotten-file commits.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

Good fit Use it to attach corrections to the right earlier commit and autosquash them during history cleanup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/geoffjay/claude-plugins/fixup
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/geoffjay/claude-plugins

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:fixup

README.md
[![agentmods](https://agentmods.dev/badge/commands/geoffjay/claude-plugins/fixup/github.svg)](https://agentmods.dev/commands/geoffjay/claude-plugins/fixup)
Your own site
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/fixup"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/fixup/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:fixup

Your own site · 80×15
<a href="https://agentmods.dev/commands/geoffjay/claude-plugins/fixup"><img src="https://agentmods.dev/badge/commands/geoffjay/claude-plugins/fixup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,692 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.00017 $0.04692
Opus 5.5 $0.00007 $0.01877
Sonnet 5.5 $0.00003 $0.00938
Haiku 4.5 $0.00002 $0.00469

Measured 1mo ago against content hash d1ce6254bfa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git:fixup 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 1mo 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.

plugins/utilities/git/commands/fixup.md · 722 lines

How it starts

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

Git Fixup - Create and Autosquash Fixup Commits

Create fixup commits and automatically squash them into the appropriate target commit during interactive rebase.

Command

/git:fixup [target-commit-ref] [operation]

Arguments

  • $1: target-commit-ref - The commit to fix (optional, interactive if not provided)
  • $2: operation - fixup|squash|amend (default: fixup)

Description

During development, you often discover small issues in earlier commits: typos, missing files, formatting errors, or small bugs. Instead of creating "Fix typo" commits that clutter history, use fixup commits. These are special commits that git can automatically squash into their target commits during rebase, keeping history clean.

Fixup vs Squash vs Amend

  • Fixup (--fixup): Combine commits, discard fixup message

    • Use for: Bug fixes, typos, forgotten files
    • Result: Target commit with original message
    • Fixup message is discarded
  • Squash (--squash): Combine commits, keep both messages

    • Use for: Additional context, related changes
    • Result: Combined commit with both messages
    • Squash message is appended
  • Amend: Modify the most recent commit

    • Use for: Just committed, need immediate change
    • Result: Replaces last commit
    • Simpler than fixup for HEAD

When to Use Fixup Commits

  • Found a typo in an earlier commit
  • Forgot to include a file
  • Need to adjust formatting
  • Small bug fix related to earlier commit
  • Forgot to update tests with implementation
  • Code review feedback for specific commit
  • Want clean history before PR merge

When NOT to Use Fixup

  • Commits already pushed to shared branch (main/master)
  • Significant new functionality (make normal commit)
  • Unrelated changes (separate commit)
  • Not sure which commit to fix (refactor instead)
  • Commits are from other developers (discuss first)

Workflow

Interactive Fixup Mode

  1. Show recent commits:
    • Display last 15-20 commits
    • Number them for easy reference
    • Show commit hash, message, author, date
    • Highlight potential fixup targets

Read the full file on GitHub · 722 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. 1mo ago First seen · 722 lines · 17 tokens per session scan A d1ce6254bfa5

Subscribe to this mod's changes

git:fixup is a command published in the GitHub repository geoffjay/claude-plugins (8 stars, last pushed 11mo ago), licensed MIT. It adds 17 tokens to every session and 4,692 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-09-03.