# commit

Runs a background subagent to commit staged Git changes following ATLAS conventions. Useful when you want automated commits without blocking your session.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 406 repo stars
- Author: syahiidkamil
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/commands/git/commit.md
- Updated: 2026-06-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/syahiidkamil-commit

## What it does

The command triggers the Agent tool with `subagent_type: commit` and `run_in_background: true`. It commits staged files autonomously without requesting confirmation. Any unstaged workspace modifications remain untouched.

Before execution, the prompt swaps `{{CURRENT_MODEL}}` for the active model identity from the environment. This keeps the attribution trailer `Co-Authored-By: Claude {{CURRENT_MODEL}} <noreply@anthropic.com>` accurate over time. If the staging area holds no changes, the process stops immediately with a notification.

Staging and committing all repository files requires `/git:stage-commit` instead. Because the subagent operates in the background, Claude Code acknowledges the launch and frees the prompt right away.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/commit.md` — Call it with /commit. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/commit.md` — Call it with /prompts:commit. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/commit.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/commit.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/commands/git/commit.md

## When to use it
- commit staged Git files using a background subagent
- format Git commit logs under ATLAS conventions
- record active model attribution in commit trailers
- keep the interactive session unblocked during commits

## Example prompts
- Run `/commit` on the staged changes
- Create a commit for staged files using ATLAS style

## Similar
- [git-commit](https://affpapa.org/en/nevibecode/skills/git-commit.md) — skill · 47165 installs
- [commit-all](https://affpapa.org/en/nevibecode/skills/sentimony-commit-all.md) — skill · 3800 installs
- [ce-commit](https://affpapa.org/en/nevibecode/skills/ce-commit.md) — skill · 3600 installs
- [om-check-and-commit](https://affpapa.org/en/nevibecode/skills/om-check-and-commit.md) — skill · 3600 installs
- [conventional-commit](https://affpapa.org/en/nevibecode/skills/marcelorodrigo-conventional-commit.md) — skill · 964 installs
- [commit-confirm](https://affpapa.org/en/nevibecode/skills/commit-confirm.md) — skill · 397 installs

## Other versions with the same name
- [commit · anthropics](https://affpapa.org/en/nevibecode/commands/commit.md) — 4121 installs
- [commit · rohitg00](https://affpapa.org/en/nevibecode/commands/rohit-ghumare-commit.md) — ★ 2966 repo stars
- [commit · composio-community](https://affpapa.org/en/nevibecode/commands/evmts-commit.md) — ★ 2003 repo stars
- [commit · cloudai-x](https://affpapa.org/en/nevibecode/commands/cloudai-x-commit.md) — ★ 1424 repo stars
- [commit · qdhenry](https://affpapa.org/en/nevibecode/commands/qdhenry-commit.md) — ★ 1357 repo stars

From the same set: [syahiidkamil/software-engineer-ai-agent-atlas](https://affpapa.org/en/nevibecode/by/syahiidkamil/software-engineer-ai-agent-atlas.md) — 26 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
