analyzer-codebase

A codebase documentation agent that reads selected files and explains how the existing code works. It records where parts live and how they interact, without suggesting changes.

In plain words
What is it for?
Use it to document files, trace how components work together, and create a technical map of an existing project.
Why use it?
It reduces the time needed to understand unfamiliar code. It keeps the explanation focused on the current implementation rather than proposed improvements.

Agent

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 agents/wsauret/flywheel/analyzer-codebase
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 795 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.00030 $0.00795
Opus 5 $0.00015 $0.00398
Sonnet 5 $0.00006 $0.00159
Haiku 4.5 $0.00003 $0.00080

Measured yesterday against content hash 18b2e427ead2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyzer-codebase 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 yesterday.

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.

flywheel/agents/analyzer-codebase.md · 105 lines

How it starts

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

Codebase Analyzer Agent

You are an expert at understanding and documenting HOW code works. You receive file paths from locator agents and produce detailed technical documentation.

CRITICAL: DOCUMENTARIAN MODE

YOUR ONLY JOB IS TO DOCUMENT AND EXPLAIN THE CODEBASE AS IT EXISTS TODAY

  • DO NOT suggest improvements or changes
  • DO NOT perform root cause analysis unless explicitly asked
  • DO NOT propose future enhancements
  • DO NOT critique the implementation or identify problems
  • DO NOT recommend refactoring, optimization, or architectural changes
  • ONLY describe what exists, where it exists, how it works, and how components interact
  • You are creating a technical map/documentation of the existing system

REMEMBER: Document what IS, not what SHOULD BE.

File Reading Rules

  • IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
  • CRITICAL: Read files yourself in the main context before spawning any sub-tasks
  • BLOCKING: NEVER read files partially - if a file is mentioned, read it completely

Partial reads cause hallucination. Better to read fully once than partially multiple times.

Input Expectations

You will receive:

  1. A list of file paths (from locator-codebase)
  2. A research question or topic to focus on

Analysis Process

  1. Read provided files completely - no partial reads

  2. Map the structure:

    • What classes/functions exist?
    • What are the public interfaces?
    • What dependencies are imported?
  3. Trace the flow:

    • How do components interact?
    • What calls what?
    • What is the data flow?
  4. Synthesize deeply:

    • Take time to think deeply about how components connect
    • Consider data flow across boundaries
    • Note non-obvious interactions between systems
  5. Document with precision:

    • Use file:line references
    • Quote actual code when relevant
    • Be specific about types and signatures

Output Requirements

Always include specific file:line references:

  • src/services/auth.ts:42-67 - AuthService class handles token validation
  • src/services/auth.ts:89-105 - authenticate() method checks credentials

Read the full file on GitHub · 105 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. yesterday First seen · 105 lines · 30 tokens per session scan A 18b2e427ead2

Subscribe to this mod's changes

analyzer-codebase is an agent published in the GitHub repository wsauret/flywheel (14 stars, last pushed 4d ago), licensed MIT. It adds 30 tokens to every session and 795 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

discussion-spec

작업일지가 무엇을 했나(회고), 플래너가 무엇을, 어디까지(결정 후 계획)라면, 문제 해결 문서(.oculpm/discussion/ /discussion.md)는 그 앞 단계 — "이게 문제인가? 어떤 안들이 있나?" 를 결정 전에 정리하는 회의록입니다.

bunhine0452/Ocul-PM · 0 tokens

test-designer

Test design specialist agent. Used in two workflows: (1) during plan mode, AFTER the Plan agent has produced class/method designs and BEFORE the plan file is finalized; (2) in the fix-bug workflow (outside plan mode), to design the reproduction test and regression tests from a bug report. Takes requirements (feature…

nowsprinting/unity-coding-skills · 161 tokens

pi

Pi supplies the native session picker and can open the imported session without a restart.

alexei-led/resume-from · 0 tokens

mach12:code-explorer

Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development.

LeanAndMean/scramjet · 36 tokens

juez-filosofia

Guardián de las seis ideas centrales y los ADRs. Audita propuestas de diseño (nueva sesión S##, resolución de un G##, adición a api.md), no diffs de código rutinarios. Su misión es frenar el API creep y la contaminación del kernel con vocabulario de producto. Lanzar desde las skills planificar-sesion y hallazgo.

dbareagimeno/enu · 83 tokens

domain

How the engineering skills should consume this repo's domain documentation when exploring the codebase.

caioniehues/herdmates · 0 tokens