hivemind-graph
Agent skill fromactiveloopai/hivemind
Query the local code graph (functions, classes, calls, imports) through the Deeplake mount at memory/graph/. Use when the user asks structural questions about the codebase — "what calls X?", "what does Y import?", "where is Z defined?", "what's the architecture / which subsystems exist?", "what's the impact of changing this?". The graph is an AST-derived map of the repo, queried as files (no build needed — it rebuilds automatically).
How to install hivemind-graph
install hivemind-graph
# install the hivemind pack with the skills CLI
npx skills add activeloopai/hivemind# or add only this skill to Claude Code: copy the folder
harnesses/claude-code/skills/hivemind-graph/
# into
~/.claude/skills/hivemind-graph/ (all projects)
.claude/skills/hivemind-graph/ (one project)
1# Hivemind Code Graph23A deterministic, AST-derived map of the current repository — every function,4class, method, interface, type, enum, const, and module, plus the edges between5them (`calls`, `imports`, `extends`, `implements`, `method_of`). It is queried as6synthesized files under the Deeplake mount; there are no real files on disk and7no network call in the read path.89The graph **builds and refreshes automatically** (on Stop / SessionEnd, gated by10a rate limit + git diff). You never run a build command — just read it.1112Use it as a fast **INDEX** to locate the few files/symbols that matter, then open13them with `Read` to answer. It is not a substitute for the source.1415## When to use this skill1617Activate when the user asks a *structural / relational* question about the code:1819- "What calls `pushSnapshot`?" / "Who uses this function?"20- "What does `deeplake-pull.ts` import?" / "What depends on X?"21- "Where is `GraphSnapshot` defined?" / "Find the function that handles Y."22- "What are the main subsystems / the architecture here?"23- "If I change this signature, what's affected?" → use `impact/<symbol>` (transitive blast radius)2425## When NOT to use this skill2627- Reading the **body** of a symbol you already located → use `Read` on the real28 source file. The graph gives location + relationships, not full source.29- Code that isn't **committed/built** yet — the graph can lag uncommitted edits.30 If a file's mtime is newer than the build timestamp, read the live source.31…
Excerpt shown under the repository's Apache-2.0 license.
