commit

A guided Git command for saving and sharing code changes. Git is a version-control system that records changes, while a branch is a separate line of work.

In plain words
What is it for?
Use it when you want to commit current work, create a conventional commit message such as fix: correct login flow, and push the commit to your operator branch.
Why use it?
It reduces mistakes when staging files, writing commit messages, choosing a safe branch, and sending changes to a shared remote repository. It avoids committing directly to the integration branch named main.

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/regen-coordination/org-os-template/commit
Clone the repo
git clone --depth 1 https://github.com/regen-coordination/org-os-template

Made for: Claude Code.

Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 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.00047 $0.00518
Opus 5 $0.00023 $0.00259
Sonnet 5 $0.00009 $0.00104
Haiku 4.5 $0.00005 $0.00052

Measured yesterday against content hash af692f8b0bb0, 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 · 49 lines

What it actually says

You are making a guided commit on this org-os clone. Vault-safe: NEVER git stash, git clean, or git reset --hard.

Step 1: Guard the branch

git rev-parse --abbrev-ref HEAD

If the branch is main: STOP. main is integration-only. Tell the operator to switch to their operator trunk first: git switch <operator> (their operator slug), or create it with bash scripts/operator-setup.sh <operator>. Do not commit to main.

Step 2: Show what will be committed

git status
git diff --stat

Summarize the changes in plain language. If clearly-unrelated changes are bundled in (e.g. someone else's in-progress work), flag it and offer to stage selectively instead of git add -A — don't absorb another operator's scope into this commit.

Step 3: Stage + commit

git add -A          # or stage selectively per Step 2

Write a conventional commit message — type(scope): summary — that describes the real change. Types: feat, fix, docs, session, data, design, chore. Then:

git commit -m "<message>"

Step 4: Push

git push 2>&1 || echo "push failed — if 'no upstream', run: git push -u origin $(git rev-parse --abbrev-ref HEAD)"

If push fails on auth/permissions, report it plainly (the operator may need write access to the repo).

Step 5: Report

One line: what was committed (short hash + summary) and whether it pushed. If the commit touched shared structural files (data/*.yaml, HEARTBEAT.md, MEMORY.md, federation.yaml, scripts/, .well-known/, docs/plans/), remind: these are PR-gated — open a PR to main (or flag for the weekly merge-consolidation) rather than expecting them to auto-promote.

$ARGUMENTS

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 · 49 lines · 47 tokens per session scan A af692f8b0bb0

Subscribe to this mod's changes

commit is a command published in the GitHub repository regen-coordination/org-os-template (5 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 518 once invoked, about $0.0002 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.