codesynapse-cli

A codebase map that records how classes and functions relate to each other and where they are defined.

In plain words
What is it for?
It helps trace callers and dependencies, find definitions, follow the shortest path between code elements, and estimate what could be affected by a change.
Why use it?
It answers architecture questions more precisely than searching text alone, so you can follow connections without inspecting files one by one.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sohilladhani/codesynapse/codesynapse-cli
Any agent
npx skills add sohilladhani/codesynapse --skill codesynapse-cli
Clone the repo
git clone --depth 1 https://github.com/sohilladhani/codesynapse

Made for: Claude Code, Codex.

Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00182 $0.01322
Opus 5 $0.00091 $0.00661
Sonnet 5 $0.00036 $0.00264
Haiku 4.5 $0.00018 $0.00132

Measured yesterday against content hash fcf673a76629, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codesynapse-cli 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 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.

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.

integrations/claude-code/skills/codesynapse-cli/SKILL.md · 102 lines

How it starts

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

Codesynapse CLI Skill

Codesynapse has pre-indexed this codebase into a knowledge graph that knows about classes, functions, their relationships (calls, extends, implements), and source locations. The graph is more precise than grep for architecture questions.

MCP is not available in this environment. All codesynapse commands run via bash. Use the codesynapse binary — if codesynapse is not found, try /usr/local/bin/codesynapse then ~/.local/bin/codesynapse (the two standard install locations). The project graph is at ./codesynapse-out/graph.json. For global multi-module graphs, run codesynapse module list to see indexed modules.

ALWAYS use codesynapse CLI commands before grep/find for architecture questions.

Quick Reference

Intent Command
General codebase query codesynapse query "<question>" --graph <path>
Node details + relationships codesynapse explain <id> --path <graph-path>
Shortest path A → B codesynapse path <A> <B>
Blast radius of X codesynapse affected <X> --graph <path> --depth 2
Graph statistics codesynapse stats <path>
God/central nodes codesynapse analyze <path>
Community detection codesynapse cluster <path>
Module list codesynapse module list
Graph diff codesynapse diff <path> --baseline <other>

Tool Selection Priority

STEP 1 — Architecture questions ("how does X work", "what handles Y", "where is Z defined"):

codesynapse query "<question>" --graph ./codesynapse-out/graph.json

Parse the output for class/function names, file paths, relationships. Top results are most relevant.

STEP 2 — Need details on a specific node found in Step 1:

codesynapse explain <ClassName> --path ./codesynapse-out/graph.json

Shows callers, callees, extends, implements, file path, and line number.

STEP 3 — Blast radius / change impact:

codesynapse affected <ClassName> --graph ./codesynapse-out/graph.json --depth 2

Use --depth 1 for direct dependencies, --depth 3 for wider impact. Filter by --relation calls if needed.

Read the full file on GitHub · 102 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 102 lines · 182 tokens per session scan A fcf673a76629

Subscribe to this mod's changes

codesynapse-cli is a skill published in the GitHub repository sohilladhani/codesynapse (8 stars, last pushed 1mo ago), licensed MIT. It adds 182 tokens to every session and 1,322 once invoked, about $0.0009 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.