Skip to main content
subagent CX Codex

commit — Claude Code subagent: what it does, how to install

Creates Git commits autonomously using ATLAS conventions without asking for approval. Handles staged files or splits working changes into clean commits.

no license ★ 406 updated 2026-11-01

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/commit.md
Open on GitHub

What commit does

The subagent handles Git tasks exclusively and avoids running builds, test suites, or app servers. During inspection, it reviews status, staged diffs, and the three most recent log entries. The commit message follows a specific format: a type prefix, what changed, and why it matters. Every commit ends with a Co-Authored-By trailer pointing to the active Claude model.

In its default mode, the agent commits only staged files and halts if the staging area is empty. When running the stage-and-commit workflow, it bundles working tree edits into separate logical commits. It deliberately skips artifacts like build outputs, log files, IDE configs, and .env files.

What it helps with

  • write commit messages stating both what changed and why
  • group working tree modifications into separate logical commits
  • commit staged changes without interactive approval prompts
  • filter out build artifacts, logs, and secrets during staging

Example prompts for the agent

  • Commit the staged changes right now
  • Run stage-and-commit to bundle my working directory changes into coherent commits

How to install commit

Manually: put the files in place

.claude/agents/commit.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about commit

How do I install commit in Claude Code?

Save the subagent definition file into your project at .claude/agents/commit.md.

What does the commit subagent do?

It autonomously writes and records Git commits according to ATLAS conventions, appending a Co-Authored-By trailer for the active model.

Does commit run tests before recording changes?

No, it deliberately ignores application state and tests. Verifying code correctness is left to the caller before invoking the subagent.

Similar subagents

All subagents for Git and GitHub →

From the same set26

The whole set →
learning-from-mistakes learning-from-mistakes — a skill that writes a bug or mistake into a separate file after the problem is resolved. Captures the cause, fix, and lesson to avoid repeating the debugging work. CX Codex +1 ★ 406repo stars log log inspects recent git commits, summarizes their themes, and maps them against uncommitted changes in your working tree. CX Codex +1 ★ 406repo stars create-test-cases create-test-cases drafts browser-focused manual test cases in Markdown for a project feature or area. Use it to prepare cases for /qa:manual-test-run. CX Codex +1 ★ 406repo stars wireframe The wireframe command renders a static low-fidelity screen layout into a single HTML file — gray boxes, dashed borders, no libraries. Opens with a double-click. CX Codex +1 ★ 406repo stars abstraction-power The abstraction-power skill guides Claude Code from concrete code examples to reusable models by spotting their shared structure. Use it to examine duplicated logic or shape a system design. CX Codex +1 ★ 406repo stars get-to-know get-to-know is a Claude Code command that initializes project context by gathering stack, structure, and conventions, creating a project map, and configuring the environment. CX Codex +1 ★ 406repo stars adversarial-review adversarial-review subjects fresh builds to hostile inspection using isolated reviewer contexts and mandates empirical reproduction on the running system. CX Codex +1 ★ 406repo stars human-writing The human-writing skill guides an agent to shape prose around its language, voice, and format. Use it for articles, posts, headlines, and other writing tasks. CX Codex +1 ★ 406repo stars

Project sponsors

Companies that keep this analytics open