commit-agent

commit-agent is an agent for Claude Code from pau-vega/Devkit-AI. It costs 147 tokens per session (578 once invoked), scanned A, original, MIT.

An agent that creates one Git commit from the current staged and unstaged changes. Git is a version-control system that records changes to a codebase, and the agent generates a commit message based on the diff and recent history.

In plain words
What is it for?
Use it to review changes, match the repository's commit style, stage relevant files, and create a single commit.
Why use it?
It removes the need to inspect the repository, choose a message, and stage the intended files manually. It also checks for files that should not be committed, such as secrets.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the commit-commands plugin — 1 skill, 3 commands, 3 agents shipped together

Good fit Use it to review changes, match the repository's commit style, stage relevant files, and create a single commit.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pau-vega/Devkit-AI
Claude Code
/plugin install commit-commands

Made for: Claude Code.

Or install commit-commands, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 3 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/pau-vega/devkit-ai/commit-agent/github.svg)](https://agentmods.dev/agents/pau-vega/devkit-ai/commit-agent)
Your own site
<a href="https://agentmods.dev/agents/pau-vega/devkit-ai/commit-agent"><img src="https://agentmods.dev/badge/agents/pau-vega/devkit-ai/commit-agent/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 commit-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/pau-vega/devkit-ai/commit-agent"><img src="https://agentmods.dev/badge/agents/pau-vega/devkit-ai/commit-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.00147 $0.00578
Opus 5.5 $0.00059 $0.00231
Sonnet 5.5 $0.00029 $0.00116
Haiku 4.5 $0.00015 $0.00058

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

Security

Grade A, and why

commit-agent 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/commit-commands/agents/commit-agent.md · 63 lines

What it actually says

You are a git commit agent. Your job is to create a single commit with an appropriate message.

Process

  1. Load conventions: Read ${CLAUDE_PLUGIN_ROOT}/skills/git-conventions/SKILL.md to get commit message style, secrets protection rules, and staging guidelines.

  2. Check current state:

    • Run git status to see staged and unstaged changes
    • Run git diff HEAD to review the full diff of changes
    • Run git branch --show-current to know the current branch
    • Run git log --oneline -10 to examine recent commit messages and match the repo's style
  3. Review changes carefully:

    • Identify what files were changed, added, or deleted
    • Understand the purpose of each change
    • Check for sensitive files (.env, credentials.json, etc.) — do NOT stage these
  4. Stage files:

    • Stage all relevant changes with git add <file>
    • Avoid staging secrets or build artifacts
  5. Create the commit:

    • Draft a commit message that matches the repository's existing style
    • Follow conventional commit practices (e.g., feat:, fix:, refactor:, chore:)
    • Use the imperative mood in the subject line
    • Add a detailed body if the change is non-trivial
  6. Report result:

    • Confirm the commit was created successfully
    • Show the commit hash and message

Important Notes

  • You can call multiple tools in a single message — stage and commit in one go
  • Do NOT use any tools besides Read, Glob, Grep, and Bash
  • Do NOT create commits with empty messages
  • If there are no changes to commit, report that and stop
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 · 63 lines · 147 tokens per session scan A 1449074cd024

Subscribe to this mod's changes

commit-agent is an agent published in the GitHub repository pau-vega/Devkit-AI (2 stars, last pushed 2mo ago), licensed MIT. It adds 147 tokens to every session and 578 once invoked, about $0.0006 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-08-31.

Related

Other agents, from other repositories

commit-detector

Use PROACTIVELY when: user says commit/save/git, mentions wip/feat/fix/chore. Do NOT use for: code review, non-commit git ops (log/diff/status).

fusengine/agents · 46 tokens

git-operator

A Git-focused coding agent that manages branches, stages selected files, creates commits, and checks repository state.

ggombee/code-forge · 33 tokens

implementer

Scope-fenced implementation worker dispatched per phase by /implementation:implement-dispatch (directly, or chained from callers such as /work-items:work): executes exactly one brief inside its assigned or self-provisioned worktree, commits and pushes early unless the brief reserves commit authority to the…

melodic-software/claude-code-plugins · 80 tokens

scoped-implementer

Scope-fenced implementation worker for a phase the plan's routing table marks sonnet (closed scope fence, binary acceptance criteria, no open design decision, no cross-module contract change, no security-surface work), dispatched by /implementation:implement-dispatch with an explicit per-invocation model: executes…

melodic-software/claude-code-plugins · 126 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens

builder

Implements a scoped feature or fix test-first with the smallest passing change, verified by the project's checks. Use when the design is settled and code needs writing.

KevinZai/commander · 34 tokens