analysis-agent

analysis-agent is a command for Claude Code from with-geun/alive-analysis. It costs 0 tokens per session (1,033 once invoked), scanned A, original, MIT.

A command that runs a specialist helper agent for the current stage of an analysis. It reads the analysis files and recommends or runs suitable agents from the project configuration.

In plain words
What is it for?
Use it to see recommended agents, run selected agents by number, run all recommendations, or find one by name or alias.
Why use it?
It avoids choosing and launching analysis helpers manually. The command uses the current stage and saved project settings to guide that choice.

Command for Claude Code

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.

agentmods
npx agentmods add commands/with-geun/alive-analysis/analysis-agent
Clone the repo
git clone --depth 1 https://github.com/with-geun/alive-analysis

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/with-geun/alive-analysis/analysis-agent.svg)](https://agentmods.dev/commands/with-geun/alive-analysis/analysis-agent)
Your own site
<a href="https://agentmods.dev/commands/with-geun/alive-analysis/analysis-agent"><img src="https://agentmods.dev/badge/commands/with-geun/alive-analysis/analysis-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,033 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01033
Opus 5 $0.00000 $0.00517
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00103

Measured 4d ago against content hash d25cccf3c32f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analysis-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 4d 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/analysis-agent.md · 108 lines

How it starts

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

/analysis-agent

Run a specialist sub-agent for the current analysis stage.

Usage:

  • /analysis-agent — show top recommended agents for current stage
  • /analysis-agent 1 — run the #1 recommended agent
  • /analysis-agent 1 3 — run agents #1 and #3 in parallel
  • /analysis-agent all — run all recommended agents
  • /analysis-agent "통계" — fuzzy match by alias and run

Instructions

Step 1: Load context

  1. Read .analysis/status.md → find active Full analysis (or ask which if multiple)
  2. Read .analysis/agent-state.md (if exists) → load suppression history
  3. Read .analysis/agents.yml (if exists, else fallback to core/config/agents.yml) → user config
  4. Determine current stage from analysis folder (which stage files exist)
  5. Read the current stage file (all sections)

Step 2: Parse argument

No argument → go to Step 3 (show recommendations)

Number(s) (e.g., 1, 1 3, all) → go to Step 5 (execute directly)

  • "all" = run all agents in the last recommendation block

Free text / alias (e.g., "통계", "hypothesis", "리뷰") →

  • Fuzzy-match against id, label, and aliases fields in core/agents/registry.yml
  • If 1 match: run it directly → Step 5
  • If 2+ matches: show compact list, ask user to pick (single question)
  • If 0 matches: show "No match. Available agents for {stage}: {list}" and exit

Step 3: Evaluate router (no-arg flow)

Apply routing rules from core/agents/router.yml for current stage:

  1. Check gates: evaluate gate auto_run conditions → list auto-run gates separately
  2. Score optional agents: apply rule conditions + bonuses → filter by min_score_threshold
  3. Apply suppression: skip agents in agent-state.md for this stage (unless content hash changed)
  4. Apply user config: skip disabled agents, honor max_recos_per_stage
  5. Take top_k: select top 3 by score

Step 4: Show recommendation block

─────────────────────────────────────────────────────
🤖 Specialist Recommendations — {STAGE} stage
  Analysis: {ID} — {title}
─────────────────────────────────────────────────────
{If auto-gates fired:}
  [auto] Running {gate-id} — {reason}

{Recommendations:}
  1. {label}  —  {reason_template from router.yml}
  2. {label}  —  {reason_template}
  3. {label}  —  {reason_template}
─────────────────────────────────────────────────────
Run? (1 / 2 / 3 / 1 3 / all / n)  →

Read the full file on GitHub · 108 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. 4d ago First seen · 108 lines · 0 tokens per session scan A d25cccf3c32f

Subscribe to this mod's changes

analysis-agent is a command published in the GitHub repository with-geun/alive-analysis (41 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,033 tokens. 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.