Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

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 & CodingIntermediate1,616107AI 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_of edges.
  • No build step: Hivemind hooks refresh the graph automatically (rate-limited, gated by git diff). You just cat paths 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:line and Read real 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

  1. "Who calls pushSnapshot?" → cat ~/.deeplake/memory/graph/query/pushSnapshot returns matches with callers and callees.
  2. "What breaks if I change this signature?" → impact/<symbol> lists transitive dependents; open only the risky files.
  3. "What are the subsystems here?" → index.md plus layers for architecture and the heaviest files.
  4. "How does a request flow from A to B?" → path/A/B prints 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/activeloopai/hivemind.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r hivemind/harnesses/codex/skills/hivemind-graph ~/.claude/skills/
  5. Prerequisite: install Hivemind itself so the ~/.deeplake/memory/graph/ mount exists — follow the repo root README first.
  6. Verify: run cat ~/.deeplake/memory/graph/index.md; node/edge counts mean it works.
  7. Restart Claude Code and ask a structural question such as "where is this symbol defined and who calls it?".
View source on GitHubLicense: Apache-2.0