graph-memory
Local SQLite graph structure for project state tracking. Provides commands to manage nodes and relationships natively.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Local SQLite graph structure for project state tracking. Provides commands to manage nodes and relationships natively.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | graph-memory |
| description | Local SQLite graph structure for project state tracking. Provides commands to manage nodes and relationships natively. |
A local SQLite graph database for tracking project context, architecture, and state.
Isolated per-project at .agents/graph_memory.sqlite. Do not use flat markdown files for tracking state.
graph-memory)--trust flag)Trust scores:
Add Node:
graph-memory add_node <id> <type> [attributes_json] --trust <score> --method <human|llm> --link-to <parent_id> --link-type <relation>
Example: graph-memory add_node "Postgres_DB" "Fact_Node" '{"ip": "192.168.1.5", "created_by": "Antigravity", "source": "AST", "confidence": 1.0}' --trust 1.0 --method human --link-to "Project_Graph_Memory" --link-type "PART_OF"
Add Relationship:
graph-memory add_relation <source_id> <relation_type> <target_id> [attributes_json] --trust <score> --method <human|llm>
Example: graph-memory add_relation "Server_VM" "HAS_DB" "Postgres_DB" '{"verified_by": "pytest", "confidence": 0.9}' --trust 1.0 --method human
Get Node Neighborhood:
graph-memory get_node <id> --min-trust <score>
Full-Text Search:
graph-memory search <query> --min-trust <score>
Parse Codebase AST:
graph-memory ingest-code .
Generates structural AST nodes for the current directory.
Generate Summaries (Requires GEMINI_API_KEY):
graph-memory summarize-mocs
Uses LLM to summarize ingested structural hubs.
Dynamic Query-Time Decay:
last_verified_at:
$$\text{Effective Trust} = \text{Base Trust Score} \times \left(0.5^{\frac{\Delta t_{\text{days}}}{30.0}}\right)$$add_observation, ingest_file, add_node) resets last_verified_at = now(), restoring effective trust to 100%.Global Multi-Agent Decision Ledger Query:
graph-memory query-history [--agent AGENT_NAME] [--node-id NODE_ID] [--days DAYS] [--limit N]
Queries decisions across all nodes globally in a dedicated SQLite Decision_Ledger table.
MCP Tool: query_decision_history(agentName, node_id, days, limit)
Graph Health Linting:
graph-memory lint [--fix]
Checks for orphan nodes and dangling edges, optionally repairing them.
Entity Merging:
graph-memory merge <source_id> <target_id>
Safely merges a source node into a target node, consolidating observations/metadata, rewiring edges, and setting up automatic alias redirection.
Database Consolidation ("Dreaming"):
graph-memory consolidate
Cleans dangling relations and reclaims SQLite disk space via incremental vacuum.
HTML Export:
graph-memory export_html .agents/graph_memory_vis.html
3D Interactive Export:
graph-memory export-3d .agents/graph_3d.html
--link-to when calling add_node to prevent orphaned nodes.Fact_Node: Deterministic ground-truth (AST, Git, filesystem).Knowledge_Node: Architecture, Design decisions, LLM summaries.Episode_Node: Completed execution workflows/tasks.created_by, source, confidence, and verification_source into [attributes_json].IMPLEMENTS, DEPENDS_ON, FIXES, PART_OF, FOLLOWED_BY (for Episodes).graph-memory sweep --root <Main_Project_Node> to remove orphaned nodes.--min-trust 0.6 to exclude low-trust data.