codebase-analyst

codebase-analyst is an agent for Claude Code from racecraft-lab/racecraft-plugins-public. It costs 84 tokens per session (1,929 once invoked), scanned A, original, MIT.

An agent that studies an existing codebase to answer specification questions, fill checklist gaps, or address analysis findings. Its recommendations are based on patterns already present in the code.

In plain words
What is it for?
Use it to research how similar features work in the repository and provide evidence-based answers or fixes for an automated development workflow.
Why use it?
It helps keep proposed changes consistent with the project's existing names, data structures, interfaces, and error-handling approaches.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Part of the speckit-pro plugin — 13 skills, 16 agents, 3 hooks, 3 MCP servers shipped together

Good fit Use it to research how similar features work in the repository and provide evidence-based answers or fixes for an automated development workflow.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/racecraft-lab/racecraft-plugins-public/codebase-analyst
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/racecraft-lab/racecraft-plugins-public

Made for: Claude Code.

Or install speckit-pro, the plugin that ships this one along with the rest of its 13 skills, 16 agents, 3 hooks, 3 MCP servers.

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 codebase-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst/github.svg)](https://agentmods.dev/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst)
Your own site
<a href="https://agentmods.dev/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst"><img src="https://agentmods.dev/badge/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst/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 codebase-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst"><img src="https://agentmods.dev/badge/agents/racecraft-lab/racecraft-plugins-public/codebase-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 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,929 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.00084 $0.01929
Opus 5.5 $0.00034 $0.00772
Sonnet 5.5 $0.00017 $0.00386
Haiku 4.5 $0.00008 $0.00193

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

Security

Grade A, and why

codebase-analyst 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 14d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

speckit-pro/agents/codebase-analyst.md · 166 lines

How it starts

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

Codebase Analyst — Consensus Agent

Discovery and grounding rules, inlined from the autopilot references capability-discovery.md and grounding.md:

  • Enumerate the capabilities your runtime exposes now and select by task fit and source authority, with no fixed tool order. When none covers a need, use local files or native context, disclose the gap, and report medium or low confidence.
  • G1, ground every external claim: library behavior, API shapes, file contents, command output, project state, and third-party facts must trace to a result from a capability you actually invoked. A claim with no invoked-capability result behind it must not be asserted as fact.
  • G2, abstain: When no available capability can ground a needed claim, say so instead of asserting it.
  • G3, separate fact from inference: mark inferred or unverified statements with a leading [inference], and never assign high confidence to a claim that is not grounded in an invoked result.
  • G4, cite: in the evidence note, each external claim names the capability result and a locator (URL, file:line, command, or returned record).

You are a codebase analysis specialist participating in a multi-agent consensus protocol. Your role is to answer questions, resolve specification gaps, or propose fixes for analysis findings — exclusively from the perspective of what the existing codebase shows.

Curated local memory

Current task inputs always override memory. Read the current prompt, CLAUDE.md, and live source before consulting memory; treat any conflict as evidence that the memory is stale. Use memory only for verified durable project knowledge inside this agent's codebase perspective: stable code and test locations, recurring repository gotchas, and established patterns or conventions confirmed by current source.

Read the full file on GitHub · 166 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. 14d ago Changed b078f69851f5
  2. 19d ago Changed · +37 lines ea0730c8f3a4
  3. 24d ago Changed · +11 lines b6b761ebf779
  4. 26d ago Changed c625db470c75
  5. 1mo ago Changed · -36 lines de7515e3e491
  6. 1mo ago Changed · +18 lines d318685a8ca4
  7. 1mo ago First seen · 136 lines · 84 tokens per session scan A 1cde5a882017

Subscribe to this mod's changes

codebase-analyst is an agent published in the GitHub repository racecraft-lab/racecraft-plugins-public (5 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 1,929 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

task-architect

Designs phased task decomposition and delivery batches for large-scale project transformations. Takes analysis data and target state as input, produces a dependency-aware implementation plan with milestones, effort estimates, acceptance criteria, parallel lanes, and reviewable multi-Issue PR batches.

zhu1090093659/spec_driven_develop · 54 tokens

task-executor

Executes a coherent delivery batch or one assigned lane from a phased plan. Receives the complete batch context, ordered task and Issue set, acceptance criteria, relevant files, and validation contract. Implements and commits the work, but leaves integration state, cumulative telemetry, and the single batch PR to the…

zhu1090093659/spec_driven_develop · 66 tokens

implementer-expert-agent

Expert implementation worker for spec-driven development. Use ONLY for hard tasks requiring deep reasoning — complex algorithms, concurrency, cross-file refactors, non-obvious correctness.

marconae/speq-skill · 38 tokens

adr-audit-agent

ADR audit worker for spec-driven development spawned by the speq-audit orchestrator. Reads every ADR under specs/decision/, applies the ADR gate from speq-adr-rules to each one, marks the ones that fail as noise, and checks each remaining ADR against the current code and specs. Read-only, authors nothing.

marconae/speq-skill · 71 tokens

implementer-agent

Standard implementation worker for spec-driven development spawned by the speq-implement orchestrator. Executes untagged tasks.md tasks via TDD; [expert] tasks route to implementer-expert-agent instead.

marconae/speq-skill · 45 tokens

architecture-agent

Architecture draft worker for spec-driven development spawned by the speq-mission orchestrator in brownfield projects. Reads the codebase and any old mission.md architecture sections, writes a draft of specs/architecture.md to a given path, and returns a short summary. Writes only its own draft files.

marconae/speq-skill · 62 tokens