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.
git clone --depth 1 https://github.com/luanpdd/kit-mcpWrote 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/agents/luanpdd/kit-mcp/codebase-mapper)<a href="https://agentmods.dev/agents/luanpdd/kit-mcp/codebase-mapper"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/codebase-mapper/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/agents/luanpdd/kit-mcp/codebase-mapper"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/codebase-mapper.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.00051 | $0.04803 |
| Opus 5.5 | $0.00020 | $0.01921 |
| Sonnet 5.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 3mo 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.
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.
- 3mo ago First seen · 780 lines · 51 tokens per session scan C 84a2b0476a3e
codebase-mapper is an agent published in the GitHub repository luanpdd/kit-mcp (5 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 4,803 once invoked, about $0.0002 per session on Opus 5.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.
codebase-mapper compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codebase-mapperluanpdd/kit-mcp | Agent | 5 | yesterday | MIT | C | 51 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| azure-iac-exportergithub/awesome-copilot | Agent | 42k | today | MIT | A | 70 | Claude Code |