codebase-map

codebase-map is a command for Claude Code from eddiebelaval/squire. It costs 0 tokens per session (2,771 once invoked), scanned A, original, MIT.

A command that generates a self-contained interactive HTML map of a software project’s structure, health, connections, tasks, and launch readiness.

In plain words
What is it for?
Use it to inspect project health, view frontend and backend connections, review files and database details, and follow generated tasks and launch checks.
Why use it?
It gives developers a visual way to understand architecture and track which parts of a project are complete, blocked, or planned.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md.

Good fit Use it to inspect project health, view frontend and backend connections, review files and database details, and follow generated tasks and launch checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eddiebelaval/squire/codebase-map
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/eddiebelaval/squire

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/eddiebelaval/squire/codebase-map/github.svg)](https://agentmods.dev/commands/eddiebelaval/squire/codebase-map)
Your own site
<a href="https://agentmods.dev/commands/eddiebelaval/squire/codebase-map"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/codebase-map/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-map

Your own site · 80×15
<a href="https://agentmods.dev/commands/eddiebelaval/squire/codebase-map"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/codebase-map.svg" alt="Reviewed on agentmods" width="80" 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 2,771 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.00000 $0.02771
Opus 5.5 $0.00000 $0.01108
Sonnet 5.5 $0.00000 $0.00554
Haiku 4.5 $0.00000 $0.00277

Measured 1mo ago against content hash 7dcfccab2a7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-map 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 1mo 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.

commands/codebase-map.md · 287 lines

How it starts

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

/codebase-map - Interactive Codebase Health Visualization

Generate an interactive HTML codebase map that shows project health, architecture, protocol completion, and launch readiness. This is the standard artifact format for tracking block-level build progress across any project.

Arguments

/codebase-map [project-name] — Generates a codebase map for the specified project. If no argument, infer from current working directory.

What It Produces

A single self-contained HTML file with 6 tabs:

Tab Purpose
Overview Project health dashboard — total blocks, green/yellow/planned counts, protocol completion bar, key highlights
Map Interactive SVG architecture diagram with animated flow lines, traveling dots, hover-to-trace, completion bar (5 phases), stat counters, data flow description, database schema, file map, pre-flight launch checklist
Blocks All blocks grouped by layer (Frontend, Backend, Database, External) with protocol dots (C/W/I/T/D)
Connections SVG connection diagram + full connection list with flow status badges
Tasks Auto-generated tasks grouped by priority (high/medium/low)
Assessment Senior dev review with wins, fixes, next steps, copy-paste prompts, persistent checkboxes

Data Model

Every codebase map is driven by three arrays embedded in the HTML:

BLOCKS

{
  id: 'session',           // Unique identifier
  name: 'Session View',    // Display name
  layer: 'frontend',       // frontend | backend | database | integration
  phase: 'built',          // planned | building | built
  status: 'green',         // green (4-5/5 protocol) | yellow (2-3/5) | none (0-1/5)
  protocol: {
    created: true,          // Files exist
    wired: true,            // Connections declared (imports, API calls)
    integrated: true,       // Data flows end-to-end
    tested: true,           // Has test coverage
    documented: true        // Has docs/comments
  }
}

Read the full file on GitHub · 287 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. 1mo ago First seen · 287 lines · 0 tokens per session scan A 7dcfccab2a7c

Subscribe to this mod's changes

codebase-map is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,771 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.