commit-claude-config

commit-claude-config is a command for Claude Code from solanabr/solana-ai-kit. It costs 25 tokens per session (634 once invoked), scanned A, original, MIT.

A command that adds the Solana AI Kit configuration files to a Git repository and records them in a commit. Git is a tool for tracking project files and their changes.

In plain words
What is it for?
Use it in a project that has a .claude/ or .agents/ directory and Solana AI Kit configuration. It removes the kit’s ignore rules, stages the configuration files, and commits them.
Why use it?
It keeps the project’s AI setup with the code, so teammates can use the same configuration and new checkouts can restore the listed submodules.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it in a project that has a .claude/ or .agents/ directory and Solana AI Kit configuration. It removes the kit’s ignore rules, stages the configuration files, and commits them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/solana-ai-kit/commit-claude-config
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.

Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-ai-kit

Made for: Claude Code.

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-claude-config

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/commit-claude-config/github.svg)](https://agentmods.dev/commands/solanabr/solana-ai-kit/commit-claude-config)
Your own site
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/commit-claude-config"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/commit-claude-config/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-claude-config

Your own site · 80×15
<a href="https://agentmods.dev/commands/solanabr/solana-ai-kit/commit-claude-config"><img src="https://agentmods.dev/badge/commands/solanabr/solana-ai-kit/commit-claude-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 634 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.00025 $0.00634
Opus 5.5 $0.00010 $0.00254
Sonnet 5.5 $0.00005 $0.00127
Haiku 4.5 $0.00003 $0.00063

Measured 23d ago against content hash d1a7ba48f60e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commit-claude-config 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 23d 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.

.claude/commands/commit-claude-config.md · 32 lines

How it starts

The opening of the file, as written. The whole thing — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.

install.sh gitignores the kit config by default, in a marked .gitignore block covering .claude/ (or .agents/), CLAUDE.md, .mcp.json and .gitmodules. This command opts the project in, so the config travels with the repo. The ext/ skill submodules stay ignored: they are upstream content, and tracking .gitmodules is enough for a --recurse-submodules clone to repopulate them.

Steps

  1. Preflight. Stop unless inside a git work tree, and tell the user to run git init first. CONFIG_DIR is .claude if it exists, else .agents (--agents installs); with neither there is nothing to commit.
  2. Un-ignore. Remove the marked block and leave the ext/ and local-only sections alone. Writing through a temp file keeps it portable across GNU and BSD sed. If the block is already gone, continue.
    if [ -f .gitignore ] && grep -qF ">>> solana-ai-kit config" .gitignore; then
      sed '/# >>> solana-ai-kit config/,/# <<< solana-ai-kit config <<</d' .gitignore > .gitignore.tmp \
        && mv .gitignore.tmp .gitignore
    fi
    
  3. Stage. Since ext/ is still ignored, this records agents, commands, skills and settings but not the submodule trees.
    git add .gitignore 2>/dev/null || true
    for p in .gitmodules CLAUDE.md .mcp.json "$CONFIG_DIR"; do [ -e "$p" ] && git add "$p"; done
    git diff --cached --name-status
    
  4. Confirm. If nothing is staged (git diff --cached --quiet), report that the config is already tracked and stop. Otherwise show the staged list and wait for the user's go-ahead.
  5. Commit: git commit -m "chore: track Solana AI Kit config". The kit's commit hook and any .git/hooks/pre-commit run as usual.

Notes

  • To go back to ignoring the config, re-run install.sh (it re-adds the block only if absent), or run git rm --cached -r .claude CLAUDE.md .mcp.json .gitmodules and restore the .gitignore lines.
  • To version the ext/ submodules as well (rarely needed; they are large upstream trees), remove the $CONFIG_DIR/skills/ext/ line from .gitignore and run git submodule update --init so real gitlinks exist before git add.

Read the full file on GitHub · 32 lines

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. 23d ago Changed · -42 lines · -10 tokens per session d1a7ba48f60e
  2. 24d ago Changed · +1 lines 7fc5a20f32c7
  3. 1mo ago First seen · 73 lines · 35 tokens per session scan A 8e7287ef4364

Subscribe to this mod's changes

commit-claude-config is a command published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 24d ago), licensed MIT. It adds 25 tokens to every session and 634 once invoked, about $0.0001 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-30.