ai-codegraph

ai-codegraph is a skill for Claude Code, Codex from arcasilesgroup/ai-engineering. It costs 58 tokens per session (1,079 once invoked), scanned A, original, Apache-2.0.

A code-navigation tool that maps how symbols and modules relate across files, including call chains, dependencies, and the likely impact of changing an interface.

In plain words
What is it for?
Use it to understand how a function works, find its callers, inspect module dependencies, or estimate what a code change may break.
Why use it?
It answers relationship questions more reliably than searching text file by file, especially when calls cross modules or use dynamic dispatch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; mentions OpenCode.

Good fit Use it to understand how a function works, find its callers, inspect module dependencies, or estimate what a code change may break.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcasilesgroup/ai-engineering/ai-codegraph
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.

Any agent
npx skills add arcasilesgroup/ai-engineering --skill ai-codegraph
Clone the repo
git clone --depth 1 https://github.com/arcasilesgroup/ai-engineering

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ai-codegraph

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-codegraph/github.svg)](https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-codegraph)
Your own site
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-codegraph"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-codegraph/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.

agentmods 80×15 button for ai-codegraph

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-codegraph"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-codegraph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,079 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00058 $0.01079
Opus 5.5 $0.00023 $0.00432
Sonnet 5.5 $0.00012 $0.00216
Haiku 4.5 $0.00006 $0.00108

Measured 23d ago against content hash 4e79c27b611f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-codegraph 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 23d 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.

skills/ai-codegraph/SKILL.md · 112 lines

How it starts

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

ai-codegraph — semantic code intelligence via MCP

What it produces

Nothing written. This skill reads the code graph and returns structured answers: verbatim source grouped by file, call paths (including dynamic dispatch), and blast radius summaries. The agent uses these to answer graph questions without grepping every file.

When to use CodeGraph vs find/grep

Question Tool Why
"How does X work?" codegraph_explore Follows call chains across files
"What calls function Y?" codegraph_explore Graph traversal, follows polymorphism
"If I change this interface, what breaks?" codegraph_explore Blast radius via edge traversal
"What does this module depend on?" codegraph_explore Import edges in the graph
"Find all TODOs" grep Literal text search, faster
"Where is X defined?" find Simple path lookup
"Find all files importing X" grep Literal text match
"Show me the test for this function" find + grep Convention-based lookup

Rule of thumb: graph questions → CodeGraph. Text questions → find/grep.

Steps

  1. Check availability — is CodeGraph installed?

    which codegraph && codegraph --version
    

    If missing: npm i -g @colbymchenry/codegraph

  2. Check daemon — is the daemon running?

    test -S .codegraph/daemon.sock && echo "running" || echo "not running"
    

    If not running: codegraph serve --mcp &

  3. Check index — is the project indexed?

    codegraph status
    

    If not indexed: codegraph init

  4. Query — use codegraph_explore MCP tool:

    • query: natural language or symbol/file names
    • maxFiles: default 12, increase for broad questions
  5. Interpret results — CodeGraph returns:

    • Verbatim source grouped by file (with line numbers)
    • Call paths (calls, imports, extends, implements)
    • Blast radius summary (what depends on the queried symbol)

Per-surface MCP configuration

Read the full file on GitHub · 112 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. 23d ago Changed · -4 lines · -80 tokens per session 4e79c27b611f
  2. 2mo ago First seen · 116 lines · 138 tokens per session scan A 2f30556b0b2e

Subscribe to this mod's changes

ai-codegraph is a skill published in the GitHub repository arcasilesgroup/ai-engineering (65 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 1,079 once invoked, about $0.0002 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-09-24.

Related

ai-codegraph compared with skills from other repositories

ai-codegraph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-codegrapharcasilesgroup/ai-engineeringSkill65yesterdayApache-2.0A58Claude Code, Codex
spk-admin-setup-doctorPriivacy-ai/spec-kittySkill1.7k8d agoMITA31Claude Code, Codex
022-root-cause-analysisjabrena/plinthSkill4692d agoApache-2.0A85Claude Code, Codex
126-java-exception-handlingjabrena/plinthSkill4692d agoApache-2.0A144Claude Code, Codex
skill-performancejaviarmesto/ALDC-AL-Development-CollectionSkill1152d agoMITA37Claude Code
extracting-code-structureSebastienDegodez/copilot-instructionsSkill19924d agoApache-2.0A39Claude Code, Codex
megalinter-checkulises-jeremias/agent-toolkitSkill28yesterdayMITA96Claude Code