hivemind-graph

Featured

Query the local AST-derived code graph (functions, classes, calls, imports) for structural codebase questions — what calls X, what does Y import, where is Z defined, blast radius of a change. The graph rebuilds automatically after each agent turn; use hivemind_graph_search and hivemind_graph_neighborhood tools (no manual build step).

AI & Automation 1,512 stars 95 forks Updated 2 days ago Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hivemind Code Graph (OpenClaw) A deterministic, AST-derived map of the current repository — every function, class, method, interface, type, enum, const, and module, plus the edges between them (`calls`, `imports`, `extends`, `implements`, `method_of`). The graph **builds and refreshes automatically** after each turn (gated by rate limit + git diff). You never run a build command — just call the graph tools. Set `plugins.entries.hivemind.config.tuning.HIVEMIND_GRAPH_CWD` in `~/.openclaw/openclaw.json` to the git root of the project you want indexed when the gateway's working directory is not the repo (then restart the gateway). Use the graph as a fast **INDEX** to locate the few files/symbols that matter, then use the host's read/exec tools on the real source. It is not a substitute for reading source files. ## When to use this skill Activate when the user asks a *structural / relational* question about the code: - "What calls `pushSnapshot`?" / "Who uses this function?" - "What does `deeplake-pull.ts` import?" / "What depends on X?" - "Where is `GraphSnapshot` defined?" / "Find the function that handles Y." - "What are the main subsystems / the architecture here?" - "If I change this signature, what's affected?" ## Tools - `hivemind_graph_search({ pattern })` — search symbols by substring (or multi-token AND with `+`, e.g. `auth+handler`). Returns matches with 1-hop neighbors (callers, callees, imports). **Start here.** - `hivemind_graph_neighborhood({ file })`...

Details

Author
activeloopai
Repository
activeloopai/hivemind
Created
3 months ago
Last Updated
2 days ago
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category