commit

A guided way to create one Git commit from the current code changes. Git is a tool that records versions of a codebase, and a commit is one saved set of changes.

In plain words
What is it for?
Use it to review the current branch and changes, stage specific files, and create a commit with a type, explanation, and AI-Used note.
Why use it?
It prevents unrelated files from being included and gives the commit a consistent message explaining the reason for the change.

Command for Claude Code

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/toejough/engram/commit
Clone the repo
git clone --depth 1 https://github.com/toejough/engram

Made for: Claude Code.

Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 511 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.00012 $0.00511
Opus 5 $0.00006 $0.00255
Sonnet 5 $0.00002 $0.00102
Haiku 4.5 $0.00001 $0.00051

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

Security

Grade A, and why

commit 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.

.claude/commands/commit.md · 60 lines

What it actually says

Context

  • Current git status: !git status
  • Current git diff (staged and unstaged changes): !git diff HEAD
  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -10

Your task

Based on the above changes, create a single git commit. Follow these rules exactly:

Staging

  • Stage files relevant to the current change using specific file paths
  • Do NOT use git add -A or git add .
  • Do not stage unrelated files

Message format

<type>(scope): <description>

<why we made this commit. what is the motivation, what problem does it solve, how does it fit into the bigger
picture? What decisions were made that led to this commit? were any lessons learned that future developers should be
aware of? This section should provide context and rationale for the change, not just a summary of what was done.>

AI-Used: [claude]

Common types: feat, fix, refactor, test, docs, chore

TDD phases:

Phase Format
TDD Red test(scope): add tests for <feature>
TDD Green feat(scope): implement <feature>
TDD Refactor refactor(scope): <cleanup>

Rules

  1. Trailer is AI-Used: [claude] — NOT Co-Authored-By
  2. Never amend pushed commits — check git status for "ahead of" first
  3. First line under 72 chars — body wrapped at 72 chars
  4. Separate concerns — don't mix functional changes with lint/style fixes
  5. Use HEREDOC for the commit message:
    git commit -m "$(cat <<'EOF'
    <message here>
    
    AI-Used: [claude]
    EOF
    )"
    

Use the Bash tool to stage and create the commit. Do not use any other tools. Do not send any other text besides the Bash tool calls.

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 · 60 lines · 12 tokens per session scan A a44cca854e52

Subscribe to this mod's changes

commit is a command published in the GitHub repository toejough/engram (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 511 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-08-31.