hivemind-graph

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

适合做变更影响分析与代码结构探索,结果确定性强。

▸ 风险提示

依赖本地 Deeplake 挂载和源码访问,可能暴露仓库内容。

这个 Skill 做什么

基于 AST 的仓内代码图谱,支持查询函数、类、调用与导入关系。

把代码库解析成 AST 派生的图谱,可以问“谁调用了 X”、“Y 在哪儿定义”之类的结构性问题,能查函数、类、调用和导入关系。通过 Deeplake 挂载的内存图(memory/graph/)查询,不需要构建工程,图会自动重建并保持一致性。适合做静态分析、架构理解或定位跨文件依赖与调用链。

▸ 展开 SKILL.md 英文原文

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 is the architecture / which subsystems exist?". The graph is an AST-derived map of the repo, queried as files (no build needed — it rebuilds automatically).

开发编程代码图谱AST代码查询影响分析通用
1.5k
Stars
95
Forks
11
仓库内 Skill
+72
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/activeloopai/hivemind/main/harnesses/hermes/skills/hivemind-graph/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/activeloopai/hivemind/main/harnesses/hermes/skills/hivemind-graph/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Hivemind Code Graph

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`). It is queried as
synthesized files under the Deeplake mount; there are no real files on disk and
no network call in the read path.

The graph **builds and refreshes automatically** (on Stop / SessionEnd, gated by
a rate limit + git diff). You never run a build command — just read it.

Use it as a fast **INDEX** to locate the few files/symbols that matter, then open
them with `Read` to answer. It is not a substitute for the source.

## When to use this
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有