codesynapse-cli

codesynapse-cli is a skill for Claude Code, Codex from sohilladhani/codesynapse. It costs 182 tokens per session (1,322 once invoked), scanned A, original, MIT.

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

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is codesynapse query "<question>" --graph ./codesynapse-out/graph.json.

Good fit It helps trace callers and dependencies, find definitions, follow the shortest path between code elements, and estimate what could be affected by a change.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sohilladhani/codesynapse/codesynapse-cli"><img src="https://agentmods.dev/badge/skills/sohilladhani/codesynapse/codesynapse-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00182 $0.01322
Opus 5.5 $0.00073 $0.00529
Sonnet 5.5 $0.00036 $0.00264
Haiku 4.5 $0.00018 $0.00132

Measured 1mo ago against content hash fcf673a76629, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 3mo ago), licensed MIT. It adds 182 tokens to every session and 1,322 once invoked, about $0.0007 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-08-31.