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.
npx skills add roedyrustam/vibes-plug --skill living-codebase-ast-graphgit clone --depth 1 https://github.com/roedyrustam/vibes-plugWrote 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.
[](https://agentmods.dev/skills/roedyrustam/vibes-plug/living-codebase-ast-graph)<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/living-codebase-ast-graph"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/living-codebase-ast-graph/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.
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/living-codebase-ast-graph"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/living-codebase-ast-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.05690 |
| Opus 5.5 | $0.00014 | $0.02276 |
| Sonnet 5.5 | $0.00007 | $0.01138 |
| Haiku 4.5 | $0.00003 | $0.00569 |
Grade A, and why
living-codebase-ast-graph 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 16d 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.
How it starts
The opening of the file, as written. The whole thing — 493 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Living Codebase AST Graph (2026 Sovereign Edition)
English
Executive Directive & The AST Knowledge Paradigm (2026 Shift)
Fuzzy text matching (Ripgrep, regex, or basic keyword search) is catastrophic for large-scale autonomous refactoring. Renaming a function like init() or format() via global search-and-replace corrupts unrelated variables, breaks third-party interfaces, and silently introduces critical bugs.
The Living Codebase AST Graph represents a codebase not as flat text files, but as a dynamic, queryable neural knowledge graph built from native Abstract Syntax Trees across TypeScript, Python, Go, and Rust. It enables autonomous AI swarms to:
- Calculate Blast Radius: Determine every inbound caller, interface consumer, and database dependent before modifying any symbol.
- Detect Cycles Mathematically: Identify circular dependency loops using Tarjan's Strongly Connected Components (SCC) algorithm.
- Enforce Topological Generation Order: Sequence multi-agent code generation so base schemas and types are completed before downstream controllers or UI widgets are constructed.
- Persist Across Sessions via XERJ MCP: Store the graph in unified episodic memory (
xerj_brain_link,xerj_memory_store) for instant context retrieval across agent restarts.
Orchestration & Integration
- Upstream Swarm Orchestration:
zero-to-prod-orchestrator,brainstorming,session-memory-manager. - AST Mapping & Type Systems:
typescript-expert,python-programming-expert,go-programming-expert,rust-programming-expert. - Refactoring & Debt Eradication:
scalability-clean-code,legacy-code-translator,zero-tech-debt-auditor,anti-slop. - Persistent Graph Memory:
xerj-search-expert,vector-db-rag-expert.
Core Architectural Graph Topologies
┌────────────────────────────────────────────────────────────────────────┐
│ LIVING CODEBASE AST GRAPH PIPELINE │
├────────────────────────────────────────────────────────────────────────┤
│ 1. Multi-Language Source Code (TypeScript, Python, Go, Rust) │
│ │ │
│ ▼ │
│ 2. Native AST Parsers (ts.createProgram, ast.parse, go/parser, syn) │
│ │ │
│ ▼ │
│ 3. Symbol Registration & In-Memory Graph Index │
│ • Node: SymbolKey (FileUri#SymbolName, Kind, Signature) │
│ • Inbound Edges (Callers) | Outbound Edges (Dependencies) │
│ │ │
│ ┌─────────────────────────┼─────────────────────────┐ │
│ ▼ ▼ ▼ │
│ [Blast Radius] [Tarjan SCC Cycles] [Topological DAG] │
│ Recursive Inbound Detect Circular Deps Sequence Multi-Agent │
│ Caller Traversal Before Build Crash Swarm Generation │
│ │ │ │ │
│ └─────────────────────────┼─────────────────────────┘ │
│ ▼ │
│ 4. Persistent Memory Serialization (XERJ Graph Brain / Memory Store) │
└────────────────────────────────────────────────────────────────────────┘
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.
- 16d ago Changed 6e0e84fede67
- 21d ago Changed · +22 lines e4dcd4a4e649
- 1mo ago Changed · +224 lines · -42 tokens per session 6a1d7f611038
- 1mo ago Changed · -22 lines f91a5245ec6d
- 1mo ago Changed · +1 lines 237b85923a4f
- 1mo ago Changed 92ad0ad9efd5
- 1mo ago Changed c7f211fea1a7
- 2mo ago First seen · 268 lines · 76 tokens per session scan A c690bc1af477
living-codebase-ast-graph is a skill published in the GitHub repository roedyrustam/vibes-plug (132 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 5,690 once invoked, about $0.0001 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-10-04.
living-codebase-ast-graph compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| living-codebase-ast-graphroedyrustam/vibes-plug | Skill | 132 | 2d ago | MIT | A | 34 | Cursor |
| code-reviewerchidekina/aria-superpowers | Skill | 2 | 2mo ago | none | A | 47 | Claude Code, Codex |
| doubt-driven-developmentaddyosmani/agent-skills | Skill | 123k | 3d ago | MIT | A | 96 | Claude Code |
| discount-reviewpromptfoo/promptfoo | Skill | 28k | today | MIT | A | 18 | Claude Code, Codex |
| code-reviewpromptfoo/promptfoo | Skill | 28k | today | MIT | A | 11 | Claude Code |
| triagevinvcn/mattpocock-skills-zh-CN | Skill | 6.3k | 4d ago | MIT | A | 34 | Claude Code, Codex |
| improve-codebase-architecturevinvcn/mattpocock-skills-zh-CN | Skill | 6.3k | 4d ago | MIT | A | 35 | Claude Code, Codex |