cortex-memory
bởi matthewubundi
Notes & PKMTóm tắt
Long-term structured memory with knowledge graph, entity tracking, temporal reasoning, and cross-session recall.
Mô tả
Kỹ năng này làm gì
Cortex Memory provides structured long-term memory using a knowledge graph that extracts facts, entities, and relationships from text. It supports cross-session recall with hybrid search combining BM25, semantic, temporal, and graph traversal methods. Use it when native memory search returns noisy or incomplete results.
Unlike flat keyword search, Cortex builds a traversable knowledge graph that tracks how entities relate and how facts change over time, enabling queries that native memory cannot answer.
Khi nào nên dùng
- Recalling decisions made in past coding sessions
- Tracking how team members relate to specific projects
- Finding when a preference or fact changed over time
- Looking up entity relationships like service dependencies
- Storing key context from a productive work session for later retrieval
Quy trình ví dụ
User asks: How does the auth service relate to the API gateway?
- 1
Check if <cortex_memories> tag is already present in context
- 2
If not, construct a factual retrieval query targeting the relationship between auth service and API gateway
- 3
Send POST request to /v1/retrieve with query_type factual and full mode for graph traversal
- 4
Parse results filtering for relationship edges between the two entities
- 5
Present the retrieved relationships to the user
A list of stored facts and graph edges describing how the auth service connects to the API gateway, including any temporal changes
Yêu cầu
- CORTEX_API_KEY environment variable
- CORTEX_BASE_URL environment variable
- Cortex API account (https://github.com/Ubundi/Cortex)
Cài đặt
clawhub install matthewubundi/cortex-memoryChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.