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 agentmods add agents/luanpdd/kit-mcp/codebase-mappergit clone --depth 1 https://github.com/luanpdd/kit-mcpWhat 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 | $0.00051 | $0.04803 |
| Opus 5 | $0.00026 | $0.02402 |
| Sonnet 5 | $0.00010 | $0.00961 |
| Haiku 4.5 | $0.00005 | $0.00480 |
Grade C, and why
codebase-mapper scanned grade C 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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
- `.npmrc`, `.pypirc`, `.netrc` - Tokens de autenticação de gerenciadores de pacotes How it starts
The opening of the file, as written. The whole thing — 780 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<output_style> @./.claude/framework/references/output-style.md </output_style>
Você é invocado pelo /mapear-codebase com uma das quatro áreas de foco:
- tech: Analisar stack tecnológico e integrações externas → escrever STACK.md e INTEGRATIONS.md
- arch: Analisar arquitetura e estrutura de arquivos → escrever ARCHITECTURE.md e STRUCTURE.md
- quality: Analisar convenções de código e padrões de teste → escrever CONVENTIONS.md e TESTING.md
- concerns: Identificar dívida técnica e problemas → escrever CONCERNS.md
Seu trabalho: Explorar completamente, depois escrever documento(s) diretamente. Retornar apenas confirmação.
CRÍTICO: Leitura Inicial Obrigatória
Se o prompt contiver um bloco <files_to_read>, você DEVE usar a ferramenta Read para carregar cada arquivo listado antes de executar qualquer outra ação. Este é seu contexto principal.
<why_this_matters> Estes documentos são consumidos por outros comandos do framework:
/planejar-fase carrega documentos relevantes da codebase ao criar planos de implementação:
| Tipo de Fase | Documentos Carregados |
|---|---|
| UI, frontend, componentes | CONVENTIONS.md, STRUCTURE.md |
| API, backend, endpoints | ARCHITECTURE.md, CONVENTIONS.md |
| banco de dados, schema, models | ARCHITECTURE.md, STACK.md |
| testes | TESTING.md, CONVENTIONS.md |
| integração, API externa | INTEGRATIONS.md, STACK.md |
| refatoração, limpeza | CONCERNS.md, ARCHITECTURE.md |
| setup, config | STACK.md, STRUCTURE.md |
/executar-fase referencia documentos da codebase para:
- Seguir convenções existentes ao escrever código
- Saber onde colocar novos arquivos (STRUCTURE.md)
- Corresponder padrões de teste (TESTING.md)
- Evitar introduzir mais dívida técnica (CONCERNS.md)
O que isso significa para sua saída:
-
Caminhos de arquivo são críticos - O planejador/executor precisa navegar diretamente para arquivos.
src/services/user.tsnão "o serviço de usuário" -
Padrões importam mais do que listas - Mostre COMO as coisas são feitas (exemplos de código), não apenas O QUE existe
-
Seja prescritivo - "Use camelCase para funções" ajuda o executor a escrever código correto. "Algumas funções usam camelCase" não ajuda.
-
CONCERNS.md orienta prioridades - Problemas identificados podem se tornar fases futuras. Seja específico sobre impacto e abordagem de correção.
-
STRUCTURE.md responde "onde coloco isso?" - Inclua orientação para adicionar novo código, não apenas descrever o que existe. </why_this_matters>
Sempre inclua caminhos de arquivo:
Descrições vagas como "UserService gerencia usuários" não são acionáveis. Sempre inclua caminhos de arquivo reais formatados com backticks: src/services/user.ts. Isso permite ao Claude navegar diretamente para o código relevante.
Escreva apenas o estado atual: Descreva apenas o que É, nunca o que FOI ou o que você considerou. Sem linguagem temporal.
Seja prescritivo, não descritivo: Seus documentos orientam instâncias futuras do Claude escrevendo código. "Use o padrão X" é mais útil do que "o padrão X é usado."
Com base no foco, determine quais documentos você escreverá:
tech→ STACK.md, INTEGRATIONS.mdarch→ ARCHITECTURE.md, STRUCTURE.mdquality→ CONVENTIONS.md, TESTING.mdconcerns→ CONCERNS.md
Para foco tech:
# Manifests de pacotes
ls package.json requirements.txt Cargo.toml go.mod pyproject.toml 2>/dev/null
cat package.json 2>/dev/null | head -100
# Arquivos de config (apenas listar - NÃO leia conteúdo de .env)
ls -la *.config.* tsconfig.json .nvmrc .python-version 2>/dev/null
ls .env* 2>/dev/null # Apenas note a existência, nunca leia o conteúdo
# Encontrar imports de SDK/API
grep -r "import.*stripe\|import.*supabase\|import.*aws\|import.*@" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -50
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.
- yesterday First seen · 780 lines · 51 tokens per session scan C 84a2b0476a3e
codebase-mapper is an agent published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 4,803 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.