Agent skill

Hivemind Graph

by activeloopai in activeloopai/hivemind

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.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Hivemind Graph

skills CLI
$ npx skills add activeloopai/hivemind --skill hivemind-graph -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install activeloopai/hivemind hivemind-graph --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/activeloopai/hivemind.git skills-src && mkdir -p .claude/skills && cp -r skills-src/harnesses/openclaw/skills/hivemind-graph .claude/skills/hivemind-graph && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hivemind-graph
GitHub stars
1.6k
Token cost
~731 tokens
SKILL.md length
334 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

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.

  • Works in 3 steps: Broad structural question?… → Know the file?… → Need the actual code? Open the…
  • AI & LLM Engineering work in your project
  • SKILL.md covers When to use this skill, Tools, Workflow and When NOT to use this skill, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Hivemind Graph is an agent skill from activeloopai/hivemind. 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 hivemindgraphsearch and hivemindgraphneighborhood tools (no manual build step).

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. The repository describes itself as: Hivemind turns your traces into reusable skills across agents. The licence is Apache-2.0.

When your agent uses it

  • AI & LLM Engineering work in your project

Example prompts

  • “/hivemind-graph”

Requirements

  • Pre-approved tools (allowed-tools): hivemind_graph_search, hivemind_graph_neighborhood

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Broad structural question? hivemind_graph_search({ pattern: "" }).
  2. Know the file? hivemind_graph_neighborhood({ file: "src/hooks/capture.ts" }).
  3. Need the actual code? Open the source_file:line from the tool output with

What it can do on your machine

Read from SKILL.md and the folder at commit e054fb1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • hivemind_graph_search
    • hivemind_graph_neighborhood

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hivemind Graph loads about 731 tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 334 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~731

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from activeloopai/hivemind at commit e054fb1, republished under its Apache-2.0 licence (© activeloopai). 334 words, ~731 tokens.

Download SKILL.mdSave it as .claude/skills/hivemind-graph/SKILL.md (or your agent's skills folder).
name
hivemind-graph
description
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).
allowed-tools
hivemind_graph_search, hivemind_graph_neighborhood

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 }) — every symbol in a repo-relative file path plus its cross-file neighbors.

Workflow

  1. Broad structural question? hivemind_graph_search({ pattern: "<symbol>" }).
  2. Know the file? hivemind_graph_neighborhood({ file: "src/hooks/capture.ts" }).
  3. Need the actual code? Open the source_file:line from the tool output with the host read tool — don't answer from the graph alone.

When NOT to use this skill

  • Reading the body of a symbol you already located → use the host read tool.
  • Code that isn't committed/built yet — the graph can lag uncommitted edits.
  • Languages outside TypeScript, JavaScript, and Python — fall back to grep.

Anti-patterns

  • Zero incoming callers does NOT mean dead code. Instance-method dispatch and dynamic calls are not fully resolved.
  • The graph can be stale. Prefer live source for files edited in this session.
  • pattern is lexical, not semantic — try multiple keywords if the first misses.

© activeloopai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in harnesses/openclaw/skills/hivemind-graph of activeloopai/hivemind.

Open the folder on GitHubat commit e054fb1

Compare with similar skills

Hivemind Graph next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hivemind Graph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hivemind Graph this skillactiveloopai/hivemind1.6k—~731Automated safety check: PassApache-2.0
Agent BuildershareAI-lab/learn-claude-code78k6 repos~1.2kAutomated safety check: PassMIT
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
Peft Fine TuningOrchestra-Research/AI-Research-SKILLs13k9 repos~3.1kAutomated safety check: PassMIT
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k9 repos~3.3kAutomated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.8k13 repos~656Automated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 6 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Peft Fine Tuning

    Orchestra-Research/AI-Research-SKILLs

    Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.

    13k GitHub starsUsed in 9 repos~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 9 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.8k GitHub starsUsed in 13 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from activeloopai/hivemind

  • Hivemind Goals

    activeloopai/hivemind

    Create, track and update team goals via the Deeplake virtual filesystem at memory/goal/.

    1.6k GitHub stars~1.7k tokensUpdated 9 days ago
    Auto-check: notes
  • Hivemind Goals

    activeloopai/hivemind

    Create, track and update team goals in Hivemind via the hivemind CLI.

    1.6k GitHub stars~814 tokensUpdated 9 days ago
    Auto-check passed
  • Hivemind Goals

    activeloopai/hivemind

    Create, track, and read team goals via Hivemind from openclaw.

    1.6k GitHub stars~805 tokensUpdated 9 days ago
    Auto-check passed
  • Hivemind

    activeloopai/hivemind

    Global team and org memory powered by Activeloop. An agent skill from activeloopai/hivemind.

    1.6k GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Hivemind Graph

    activeloopai/hivemind

    Query the local code graph (functions, classes, calls, imports) through the Deeplake mount at memory/graph/.

    1.6k GitHub stars~1.2k tokensUpdated 9 days ago
    Auto-check: notes
  • Hivemind Memory

    activeloopai/hivemind

    Global team and org memory powered by Activeloop. An agent skill from activeloopai/hivemind.

    1.6k GitHub stars~1.4k tokensUpdated 9 days ago
    Auto-check: notes

Questions about Hivemind Graph

What does Hivemind Graph do?

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. Hivemind Graph is an agent skill from activeloopai/hivemind. 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.

When should I use Hivemind Graph?

Hivemind Graph fits situations like: AI & LLM Engineering work in your project.

How do I install Hivemind Graph in Claude Code?

Run `npx skills add activeloopai/hivemind --skill hivemind-graph -a claude-code`. Or copy the skill folder (harnesses/openclaw/skills/hivemind-graph in activeloopai/hivemind) into .claude/skills/hivemind-graph in your project. Claude Code loads it when a task matches its description.

How do I install Hivemind Graph in Codex?

Run `npx skills add activeloopai/hivemind --skill hivemind-graph -a codex`. Or copy the skill folder (harnesses/openclaw/skills/hivemind-graph in activeloopai/hivemind) into .agents/skills/hivemind-graph in your project. Codex loads it when a task matches its description.

Can I use Hivemind Graph in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add activeloopai/hivemind --skill hivemind-graph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hivemind-graph, .gemini/skills/hivemind-graph, .github/skills/hivemind-graph and .opencode/skills/hivemind-graph in your project.

What does Hivemind Graph need to run?

SKILL.md names no scripts, command-line tools or credentials: Hivemind Graph is instructions for the agent only. Its frontmatter pre-approves these tools: hivemind_graph_search, hivemind_graph_neighborhood.

Does Hivemind Graph access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Hivemind Graph safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hivemind Graph use?

Hivemind Graph is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hivemind Graph use?

About 731 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Hivemind Graph?

Skills that share tags, products or a category with Hivemind Graph: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Add Uint Support (pytorch/pytorch, 104k stars), Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hivemind Graph?

activeloopai (a GitHub organization) maintains it in activeloopai/hivemind, which has 1,622 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 28, 2026.

Source: activeloopai/hivemind on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.