Hivemind Code Graph Query
Read an AST-derived code graph as plain files to instantly answer structural questions like "what calls X?" and "what breaks if I change this?".
Dev & CodingIntermediate★ 1,616⑂ 107AI score 8/10Last updated: Sep 16, 2026
What it does
- Queries a deterministic code graph of the current repo — functions, classes, methods, interfaces, types, consts, modules — plus
calls,imports,extends,implements,method_ofedges. - No build step: Hivemind hooks refresh the graph automatically (rate-limited, gated by git diff). You just
catpaths under~/.deeplake/memory/graph/. - Purpose-built endpoints:
query/(search + 1-hop expansion),find/,show/<handle>,neighborhood/<file>,impact/<symbol>(transitive blast radius),path/<from>/<to>,layers,tour. - Explicitly frames the graph as an index, telling the agent to jump to
source_file:lineandReadreal code before answering.
Who it's for
- Engineers onboarding onto a large, unfamiliar TypeScript/JavaScript/Python codebase.
- Anyone planning a refactor who needs the blast radius of a signature change.
- Existing users of the Hivemind (activeloopai) harness with the Deeplake mount — without it there is nothing to read.
Example uses
- "Who calls
pushSnapshot?" →cat ~/.deeplake/memory/graph/query/pushSnapshotreturns matches with callers and callees. - "What breaks if I change this signature?" →
impact/<symbol>lists transitive dependents; open only the risky files. - "What are the subsystems here?" →
index.mdpluslayersfor architecture and the heaviest files. - "How does a request flow from A to B?" →
path/A/Bprints the shortest dependency path.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/activeloopai/hivemind/HEAD/harnesses/codex/skills/hivemind-graph/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the harnesses/codex/skills/hivemind-graph folder from the GitHub repo activeloopai/hivemind into my ~/.claude/skills/activeloopai-hivemind-graph/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/activeloopai/hivemind.git && mkdir -p ~/.claude/skills && cp -r hivemind/harnesses/codex/skills/hivemind-graph ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/activeloopai/hivemind.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r hivemind/harnesses/codex/skills/hivemind-graph ~/.claude/skills/ - Prerequisite: install Hivemind itself so the
~/.deeplake/memory/graph/mount exists — follow the repo root README first. - Verify: run
cat ~/.deeplake/memory/graph/index.md; node/edge counts mean it works. - Restart Claude Code and ask a structural question such as "where is this symbol defined and who calls it?".
View source on GitHub ↗License: Apache-2.0