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 skills/abdul-hamid-achik/codemap/using-codemapnpx skills add abdul-hamid-achik/codemap --skill using-codemapgit clone --depth 1 https://github.com/abdul-hamid-achik/codemapWrote 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/abdul-hamid-achik/codemap/using-codemap)<a href="https://agentmods.dev/skills/abdul-hamid-achik/codemap/using-codemap"><img src="https://agentmods.dev/badge/skills/abdul-hamid-achik/codemap/using-codemap.svg" alt="Measured on agentmods" 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 | $0.00046 | $0.02528 |
| Opus 5 | $0.00023 | $0.01264 |
| Sonnet 5 | $0.00009 | $0.00506 |
| Haiku 4.5 | $0.00005 | $0.00253 |
Grade A, and why
using-codemap 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 3d 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 — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
For structural code questions — who calls X, what breaks if I change Y, where do I start reading, what tests cover this — reach for codemap before grep or opening files: if answering would mean reading more than 2 files, call codemap_context (or codemap_context_batch) first. codemap is a precomputed code graph fused with semantic search, exposed as codemap_context, codemap_impact and friends over MCP (and as codemap … --json on the CLI).
Map the loop to the tools:
- orient on a repo -> codemap_read_order (entrypoints + hubs, ranked)
- locate -> codemap_semantic (by meaning) · codemap_find (by name) · codemap_grep (exact text: a literal, error string, route, env var) · codemap_explore (fuzzy intent → oriented structure)
- resolve a file:line -> codemap_symbol_at (a stack trace / diff hunk / grep hit → a selector; batch positions:[…] for a whole trace)
- orient on a file -> codemap_file_context (symbol outline + file impact + related files in one call)
- understand -> codemap_context, codemap_impact, codemap_source
- before a risky edit -> codemap_risk, codemap_file_impact, codemap_dependencies, codemap_related_files
- after every edit -> codemap_review (it names the tests to run and folds one risk band)
- calibrate trust -> codemap_coverage (per-file precise call-graph coverage)
Trust the honesty signals on every result: stale (reindex first), call_graph (resolved/name/unresolved/none), resolution, and the *_total caps. When a name is ambiguous the response already carries candidates:[…] and accepts a selector, so pick one definition from those instead of a second lookup. Prefer codemap_index --precise for exact call edges — it is also the only call graph for TypeScript, JavaScript and Python.
The workflow
Index once, then query. The typical agent loop for understanding or fixing code:
- codemap index # build the graph (+ embeddings if Ollama is up)
- where to start # codemap_read_order (entrypoints + hubs ranked — orient on a new repo)
- find the entry point # codemap_semantic "" OR codemap_find # OR codemap_grep "" (string literal, error message, route, env-var) # codemap_explore "" (fuzzy goal → bounded context neighborhoods, source-light) # got a file:line? codemap_symbol_at : (batch positions:[…] resolves a whole trace)
- orient on a symbol # codemap_context (def + callers + callees + tests + test_commands, ONE call) # codemap_context_batch … (several symbols at once + shared callers)
- go deeper # codemap_impact (blast radius + runnable test_commands) · codemap_source (full body) # codemap_callers / codemap_callees (add precise:true on Go) # codemap_references (callback/RunE/registration value wiring; not callers)
- before a risky change # codemap_risk (how careful?) # codemap_file_context (ONE call: symbol outline + file impact + related files) # codemap_dependencies (evidence only) · codemap_file_impact (evidence + blast/tests) # codemap_related_files (the other files structurally tied to this one)
- trace flow # codemap_path (shortest call chain)
- AFTER you edit # codemap_review (your diff → changed symbols, blast radius, the TESTS TO RUN)
- survey # codemap_hotspots (hubs) · codemap_orphans (dead code)
Stay fresh: codemap_status returns a "stale" object (files changed/new/deleted since the last index) — normally codemap_index before trusting snapshot-based results. Its "precise" map is true per call-graph language only when every indexed file completed precise resolution at the last index; combine it with stale and each query's call_graph enum. Deletion review is the exception: codemap_review uses retained old definitions when available, emits deletion_analysis, and orders selected tests before the reindex that prunes them. (A registered-but-never-indexed project reports indexed:false — codemap_index first.)
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.
- 3d ago First seen · 150 lines · 46 tokens per session scan A 4aa96ffe5ea6
using-codemap is a skill published in the GitHub repository abdul-hamid-achik/codemap (2 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 2,528 once invoked, about $0.0002 per session on Opus 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…