codebeacon

A codebase scanner that analyzes source structure, builds a map of how code is connected, and generates a searchable wiki plus a CLAUDE.md context file for AI agents. It supports many common web, backend, and desktop frameworks and can expose the map through an MCP server.

In plain words
What is it for?
Use it to scan a project, update the map incrementally, search code relationships, find paths between components, generate documentation, synchronize multiple projects, or serve the result to tools through MCP.
Why use it?
It gives developers and agents an overview of an unfamiliar codebase instead of requiring them to discover files, relationships, and project context manually.

Skill for Claude CodeCodex

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 skills/wandererer/codebeacon/skill
Any agent
npx skills add Wandererer/codebeacon --skill skill
Clone the repo
git clone --depth 1 https://github.com/Wandererer/codebeacon

Made for: Claude Code, Codex.

Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00099 $0.04401
Opus 5 $0.00049 $0.02201
Sonnet 5 $0.00020 $0.00880
Haiku 4.5 $0.00010 $0.00440

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

Security

Grade B, and why

codebeacon scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Codex CLI | `spawn_agent` (requires `multi_agent=true` in `~/.codex/config.toml`) | No model picker in subagent API — use the host's default |
codebeacon/skill/SKILL.md · 327 lines

How it starts

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

/codebeacon

Scan source code with AST analysis → build a knowledge graph → generate a navigable wiki + CLAUDE.md context map ready for AI agents. After scan/sync, run AI-semantic enrichment automatically using whatever model the agent is currently running on (no hardcoded model, no extra API key).

Usage

/codebeacon                              # scan current directory + auto AI-semantic
/codebeacon <path>                       # scan specific path + auto AI-semantic
/codebeacon <path> --update              # incremental scan + auto AI-semantic
/codebeacon <path> --wiki-only           # wiki only (no scan, no semantic)
/codebeacon <path> --no-semantic         # skip AI-semantic
/codebeacon sync                         # multi-project sync + auto AI-semantic
/codebeacon semantic-prepare [--dir D]   # emit a fresh tasks file only (no scan)
/codebeacon semantic-apply   [--dir D]   # merge a results file written by the agent
/codebeacon serve <path>                 # start MCP server pointing at .codebeacon/
/codebeacon query <term>                 # search the graph
/codebeacon path <src> <tgt>             # shortest path
/codebeacon knowledge [<path>]           # scan .md notes (ADRs, meetings, retros, specs) → KNOWLEDGE.md
/codebeacon init [<path>]                # interactive codebeacon.yaml
/codebeacon install                      # install/update this skill
/codebeacon upgrade                      # pip upgrade codebeacon + refresh this SKILL.md (then restart Claude Code)

If no path was given, use . (current directory). Do not ask the user for a path.

Step 0 — Constrained query expansion (for /codebeacon query flows)

When the user's question doesn't literally match graph labels (e.g. they ask in Korean about a Java codebase, or use a synonym), do NOT invent extra search terms from memory. Phantom expansion ("auth" → {passport, sso, saml, oauth, jwt, scim, …}) returns ungrounded results.

Instead, before running codebeacon query:

Read the full file on GitHub · 327 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 · 327 lines · 99 tokens per session scan B 2567e25ff225

Subscribe to this mod's changes

codebeacon is a skill published in the GitHub repository Wandererer/codebeacon (2 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 4,401 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.