Skip to main content

agentdb-traverse

K-hop traversal from a starting node in AgentDB's graph. Use to explore neighborhoods, find reachable nodes, or visualize a memory's "context".

소스 정보

저장소
ruvnet/agentdb
최근 소스 활동
2026년 5월 6일 15:22
감지된 SKILL.md 언어
영어
스타
89
포크
14

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
agentdb-traverse
description
K-hop traversal from a starting node in AgentDB's graph. Use to explore neighborhoods, find reachable nodes, or visualize a memory's "context".
# K-Hop Traverse Walk outward from a node up to K hops, returning the visited subgraph. ## When to use - "Show me what's connected to X" - Building a context window from a starting fact + everything causally linked to it - Visualizing a memory's neighborhood for the user - Pre-fetch for an investigator agent before running causal_explain ## API ``` agentdb_kHopNeighbors( startId: <node id> k: 1..5 // hops edgeFilter?: [<relation>, ...] // limit to specific relations direction?: 'in' | 'out' | 'both' maxNodes?: 100 // safety cap ) Returns: { nodes, edges, stats: { reachable, capped } } ``` ## Patterns | Goal | Pattern | |---|---| | Forward influence | `direction: 'out'`, `k: 3` | | Backward dependencies | `direction: 'in'`, `k: 3` | | Local neighborhood | `direction: 'both'`, `k: 1` | | Causal chain only | `edgeFilter: ['caused', 'supersedes']` | | Skill composition graph | `edgeFilter: ['composes', 'requires']`, start: skill id | ## Output sizing K-hop fans out exponentially. With average degree d, k hops returns up to `d^k` nodes. AgentDB defaults `maxNodes: 100` — when you hit the cap, `stats.capped: true` and you should rerun with smaller k or tighter edgeFilter. ## Don't - Don't traverse with `k > 4` without `edgeFilter` — explosive fan-out destroys the answer's signal. - Don't render the whole subgraph to the user. Pick the top-15 by uplift and summarize the rest.
GitHub에서 보기