复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-kg-traverse-0d04d4818786 ,按照其中的说明把「kg-traverse」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Perform pathfinder graph traversal starting from a seed entity. Expands outward through causal edges, scores paths by relevance, and prunes low-similarity branches.
When you need to explore the knowledge graph starting from a specific entity -- finding what depends on it, what it depends on, or discovering indirect relationships. Useful for impact analysis, dependency chains, and understanding code structure.
mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall to look up the target entity by namemcp__plugin_ruflo-core_ruflo__agentdb_causal-edge to find all edges connected to the seed entity, then recursively expand outward to the specified depth (default: 3)cumulative_score = product(edge_weight * keyword_similarity(query, node)) using mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search (the semanticRouter controller is enabled: false in current AgentDB builds; pattern-search is the available substitute and works fine for entity-name + relation-type keyword matches — see ruvnet/ruflo#2049). For higher-fidelity semantic similarity, callers can fall back to mcp__plugin_ruflo-core_ruflo__embeddings_generate + manual cosine, but that's not required for step 3 to function.mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize to combine the top paths into a coherent summarynpx @claude-flow/cli@latest memory search --query "relations for ENTITY_NAME" --namespace knowledge-graph