octocode-graph

octocode-graph is a skill for Claude Code, Codex from bgauryy/octocode. It costs 43 tokens per session (1,411 once invoked), scanned A, original, MIT.

A tool for building and querying a graph of repository relationships, such as callers, dependencies, cycles, and change impact. It can compare revisions and check whether a saved graph reflects current code.

In plain words
What is it for?
Use it to trace callers, find dependency paths and cycles, assess a change’s impact, compare pull-request revisions, and inspect startup or CI dependencies.
Why use it?
It provides structural evidence for repository questions that ordinary text search may miss, while showing when a snapshot may be incomplete or out of date.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to trace callers, find dependency paths and cycles, assess a change’s impact, compare pull-request revisions, and inspect startup or CI dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bgauryy/octocode/octocode-graph
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 bgauryy/octocode --skill octocode-graph
Clone the repo
git clone --depth 1 https://github.com/bgauryy/octocode

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 octocode-graph

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

agentmods 80×15 button for octocode-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/bgauryy/octocode/octocode-graph"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,411 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.00043 $0.01411
Opus 5.5 $0.00017 $0.00564
Sonnet 5.5 $0.00009 $0.00282
Haiku 4.5 $0.00004 $0.00141

Measured today against content hash 60512852fbbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

octocode-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 today.

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.

packages/octocode-graph/skills/octocode-graph/SKILL.md · 51 lines

How it starts

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

Octocode Graph

Use graph evidence to answer a structural question, then inspect the source behind the claim. Run octocode-graph <command> if installed, or npx -y @octocodeai/octocode-graph <command>. In the Octocode source checkout, use node packages/octocode-graph/bin/octocode-graph.mjs <command>.

Choose the source scope first: build a workspace from its root for relationships across its packages; a file build covers only that file. The default build shares one native binding snapshot across packages. Check the saved graph’s bindingScope coverage field: partitioned means a native limit forced separate snapshots and cross-package completeness is partial. Reuse an explicit saved result when the task names one. For current-code questions, query with --refresh; a plain query is an offline snapshot answer with unverified freshness. If no graph exists, run the returned build suggestion. For a PR or two revisions, start with the merge-base/head workflow.

octocode-graph build . --out .octocode/graph-review
octocode-graph query .octocode/graph-review "search cycles"
octocode-graph query .octocode/graph-review "impact src/worker.ts depth 2" --refresh
octocode-graph check .octocode/graph-review --format sarif

Ask

Question Run
Find code by name or by what it does search <words>; filter with --kind, --lang, --role, --path, --exported, --param, --returns
What surrounds a file or symbol about <file|symbol>; context <file|symbol...> --tokens N ranks the neighbourhood under a token budget (more: continues)
Who depends on it or calls it, what it uses impact, dependents, deps, callers, callees; for a hub file (a module root such as cli.rs, an index file) file-level impact reaches most of the package, so ask callers <file>#<item> per public item
Every caller of one function lspSearch callers; a graph callers answer without full probes is isPartial (callersNotProbed) and carries that call as confirm
How A reaches B, loops, prerequisite order path [--all], cycle, order, trace
What an entry loads, why, at what cost reach <entry|dir>, why <entry> <target>, hubs [<dir>]
What is critical critical functions, critical points, critical path [<file>] [--up], top <metric>, community
A fresh scope, or native detectors (issues, cochange, drift, witnesses, unresolved) octocode-graph graphQuery '{"queries":[{"path":".","operation":"issues"}]}' · Operations · Builds and pagination
A spelling or literal text localSearch (or rg), not the graph

Read the full file on GitHub · 51 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. today First seen · 51 lines · 43 tokens per session scan A 60512852fbbc

Subscribe to this mod's changes

octocode-graph is a skill published in the GitHub repository bgauryy/octocode (971 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,411 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-12-01.

Related

octocode-graph compared with skills from other repositories

octocode-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
octocode-graphbgauryy/octocodeSkill971todayMITA43Claude Code, Codex
code-review-webrampstackco/claude-skillsSkill1.1k15d agoMITA121Claude Code
review-rfcnurettincoban/ai-prd-workflowSkill31713d agoMITA32Claude Code
logic-lensskillmds/skillmdSkill14222d agoMITA37Claude Code
cli-audit-codeDestynova2/cli-code-skillsSkill67d agoMITA92Claude Code
coding-assistantchinkan/RustFoxSkill15yesterdayMITA13Claude Code, Codex
reviewAcKeskin/contextureSkill2todayMITA103Claude Code