ccstatus-go: Command for Claude Code

.claude/commands/update-config.md

update-config is a command for Claude Code from Mirage20/ccstatus-go. It costs 13 tokens per session (523 once invoked), scanned A, original, MIT.

A command that scans a codebase and creates or updates a YAML configuration file containing the default settings it finds. YAML is a human-readable format often used for application settings.

In plain words
What is it for?
Use it to document components, providers, cache settings, templates, separators, and other defaults in the ccstatus-go project.
Why use it?
It removes the need to search through many source files and assemble configuration documentation by hand.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the TodoWrite tool; mentions Claude Code.

This is Mirage20/ccstatus-go's own configuration. It tells Claude Code how to work on ccstatus-go itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccstatus-go configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mirage20/ccstatus-go. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mirage20/ccstatus-go/main/.claude/commands/update-config.md
Clone the repo
git clone --depth 1 https://github.com/Mirage20/ccstatus-go

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mirage20/ccstatus-go/update-config.svg)](https://agentmods.dev/commands/mirage20/ccstatus-go/update-config)
Your own site
<a href="https://agentmods.dev/commands/mirage20/ccstatus-go/update-config"><img src="https://agentmods.dev/badge/commands/mirage20/ccstatus-go/update-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 523 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.00013 $0.00523
Opus 5 $0.00006 $0.00262
Sonnet 5 $0.00003 $0.00105
Haiku 4.5 $0.00001 $0.00052

Measured 6d ago against content hash 02171a30aa22, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

update-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 6d 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/update-config.md · 64 lines

How it starts

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

Context

  • Project: ccstatus-go - Claude Code statusline generator
  • Architecture: Provider-Component pattern with self-registering plugins
  • Config system: Uses Koanf with YAML format
  • Config search order:
    1. .claude/ccstatus.local.yaml - Project-specific local (gitignored)
    2. .claude/ccstatus.yaml - Project-specific shared
    3. ~/.claude/ccstatus.yaml - User default

Task

Scan the codebase to find all default configuration values and generate a comprehensive config.yaml file with:

  1. Component Configuration

    • Find all registered components in internal/components/
    • Extract default component order from cmd/ccstatus/main.go
    • Extract settings from each component's config.go file
    • Document each component's template variables and options
  2. Provider Configuration

    • Find all providers in internal/providers/
    • Extract default provider settings (cache TTL, etc.)
    • Document provider-specific cache configurations
  3. Core Configuration

    • Find core settings in internal/core/ and cmd/
    • Extract cache settings from internal/cache/cache.go
    • Extract separator settings from internal/core/statusline.go
    • Document global options and defaults
  4. Structure the YAML with:

    • Comprehensive header explaining config file locations
    • Meaningful inline comments for each option
    • Default values clearly marked
    • Example configurations at the bottom
    • Available color options documented
    • Template function reference

Output

$ARGUMENTS

Generate the config file to the path provided above (default: config.yaml) with:

  • All discovered default values from component/provider config.go files
  • Comprehensive documentation comments explaining each option
  • Proper YAML structure with consistent formatting
  • Template variable documentation for each component
  • Example configurations for common use cases

Implementation Steps

  1. Scan component registry and implementations for defaults
  2. Scan provider implementations for default settings
  3. Scan core configuration loading code for default values
  4. Scan for any hardcoded values that should be configurable
  5. Generate well-documented YAML with all findings

Read the full file on GitHub · 64 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. 6d ago First seen · 64 lines · 13 tokens per session scan A 02171a30aa22

Subscribe to this mod's changes

update-config is a command published in the GitHub repository Mirage20/ccstatus-go (11 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 523 once invoked, about $0.0001 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-30.