hivemind-graph

仓库创建 2026年4月4日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由

实时重建图谱便于交互式代码理解与局部影响评估。

▸ 风险提示

需访问源码与仓库挂载,可能泄露敏感代码。

这个 Skill 做什么

OpenClaw 环境下基于 AST 的实时代码图谱,支持邻居与搜索查询。

提供基于 AST 的实时代码图谱,能回答谁调用了某函数、某模块在哪里定义、改动会波及哪些地方等结构性问题,支持邻居查询和搜索工具。图谱在每次 agent 操作后自动刷新,无需手动构建或编译。适合做代码导航、影响分析和重构前的全局检查。

▸ 展开 SKILL.md 英文原文

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).

开发编程代码图谱AST代码分析OpenClawOpenClaw
1.5k
Stars
95
Forks
11
仓库内 Skill
+72
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/activeloopai/hivemind/main/harnesses/openclaw/skills/hivemind-graph/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/activeloopai/hivemind/main/harnesses/openclaw/skills/hivemind-graph/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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/s
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有