analysis-search

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

A command for searching the full text of saved analyses, which are written records of investigations, models, or simulations. It can narrow results by words, tags, dates, type, confidence, or whether they are active or archived.

In plain words
What is it for?
Finding analyses by topic, reviewing work from a date range, filtering by confidence, and searching active or archived records.
Why use it?
It avoids opening analysis files one by one when looking for a past finding or a group of related analyses.

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-search
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-search

README.md
[![agentmods](https://agentmods.dev/badge/commands/with-geun/alive-analysis/analysis-search.svg)](https://agentmods.dev/commands/with-geun/alive-analysis/analysis-search)
Your own site
<a href="https://agentmods.dev/commands/with-geun/alive-analysis/analysis-search"><img src="https://agentmods.dev/badge/commands/with-geun/alive-analysis/analysis-search.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,339 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.01339
Opus 5 $0.00000 $0.00669
Sonnet 5 $0.00000 $0.00268
Haiku 4.5 $0.00000 $0.00134

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

Security

Grade A, and why

analysis-search 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 5d 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-search.md · 136 lines

How it starts

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

Deep search across all analyses — full-text, context display, and pattern analysis.

Instructions

Step 1: Parse search parameters

Check the user's arguments:

  • --keyword {text} — full-text case-insensitive search across all content
  • --tag {tag} — filter by tag
  • --date {YYYY-MM} or --date {from to} — period filter (e.g., --date 2026-01 2026-03)
  • --type {Investigation|Modeling|Simulation} — analysis type filter
  • --confidence {high|medium|low} — filter by confidence level (🟢/🟡/🔴)
  • --active / --archived / --both (default: --both)

If no arguments provided, ask the user: "What are you looking for? You can search by keyword, tag, date range, type, or confidence level."

Step 2: Scan active analyses

Read all files/folders in analyses/active/:

  • Full analyses: Read all stage files (01_ask.md through 05_evolve.md) in each F-* or S-* folder
  • Quick analyses: Read the full content of each quick_Q-* file

Step 3: Scan archived analyses

Read all year-month folders in analyses/archive/:

  • For each analysis folder: read summary.md + all stage files
  • For each Quick file: read full content

Step 4: Apply filters

For each analysis, apply all specified filters:

  • keyword: Case-insensitive search across the full text of all files. Match against titles, content, insights, recommendations, hypothesis trees, findings — everything.
  • tag: Match against tags in file headers or status.md
  • date: Match against analysis ID date component or archive folder date
  • type: Match against analysis type (Investigation/Modeling/Simulation) from file headers
  • confidence: Search for confidence indicators (🟢 High / 🟡 Medium / 🔴 Low) in VOICE and INVESTIGATE sections

Step 5: Display results with context

For each matching analysis, show:

═══════════════════════════════════════════════════
  alive-analysis — Search Results
  Query: {search parameters summary}
═══════════════════════════════════════════════════

  📊 {N} results found

  ─────────────────────────────────────────────────
  1. F-2026-0210-001  DAU drop investigation
     Status: ✅ Archived (2026-02)  |  Type: Investigation  |  Tags: [retention, mobile]
     Key Insight: "TikTok-acquired users have 3x lower D30 retention"

     Matches:
     ┌─ 03_investigate.md (line 42)
     │  ... channel mix shifted from 20% to 45% **TikTok**,
     │  driving the overall D30 **retention** drop by 8pp.
     │  Organic users showed no change ...
     └─

     ┌─ 04_voice.md (line 15)
     │  ... reduce **TikTok** budget or improve onboarding
     │  for **TikTok**-acquired users. Counter-metric:
     │  monitor CAC payback period ...
     └─

  ─────────────────────────────────────────────────
  2. Q-2026-0207-001  Sign-up conversion rate
     Status: ✅ Archived (2026-02)  |  Type: Investigation  |  Tags: [retention, onboarding]
     Key Insight: "Mobile 30% lower"

     Matches:
     ┌─ (line 28)
     │  ... mobile **retention** is significantly lower
     │  than desktop across all cohorts ...
     └─

═══════════════════════════════════════════════════

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

Subscribe to this mod's changes

analysis-search 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,339 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.