cortex-recall
Skill73 starsChanged 4 months agoMITView on GitHub
Search and retrieve memories from Cortex persistent memory. Use when the user asks 'what did we decide about X', 'do you remember', 'what was the fix for', 'find that thing about', 'search memories', 'what do we know about', 'have we seen this before', or when you need context about past decisions, patterns, bugs, or architecture choices. Also use proactively when working on something that likely has relevant historical context.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cortex-automateSkill
- cortex-consolidateSkill
- cortex-debug-memorySkill
- cortex-explore-memorySkill
- cortex-importSkill
- cortex-navigate-knowledgeSkill
- cortex-profileSkill
- cortex-recall-globalSkill
- cortex-remember-globalSkill
- cortex-rememberSkill
- cortex-setup-projectSkill
- cortex-wiki-authorSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Write a natural language query.
- Distinctive: line 47
When exploring a large topic area, use fractal hierarchical recall:
- Distinctive: line 60
After finding relevant memories, explore connections:
- Distinctive: line 87
Use proactively: Before making a decision, recall if there's prior context — "have we made decisions about X before?"
- Very specific: line 89
Rate results: After recall, use cortex:rate_memory on results that were useful/not-useful to improve future retrieval
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Recall — Retrieve from Persistent Memory
Keywords
recall, remember, search, find, what did we, do you remember, what was, have we seen, look up, retrieve, past decision, previous fix, history, what do we know, search memory, find memory, related memories
Overview
Retrieve relevant memories using Cortex's 6-signal WRRF (Weighted Reciprocal Rank Fusion) retrieval engine. The system automatically classifies your query intent and adjusts retrieval weights — semantic queries emphasize vector similarity, temporal queries emphasize recency, causal queries traverse the knowledge graph.
Use this skill when: You need context about past work, decisions, patterns, or fixes. Also use proactively when starting work on a topic that likely has stored context.
Workflow
Step 1: Formulate the Query
Write a natural language query. The intent classifier handles routing:
- Semantic: "How does the authentication system work?"
- Temporal: "What did we work on last week?"
- Causal: "What caused the deployment failure?"
- Entity: "Everything about PostgreSQL in this project"
- Multi-hop: "How does the memory gate relate to consolidation?"
Step 2: Basic Recall
cortex:recall({
"query": "<natural language question or topic>",
"limit": 10
})Optional filters:
"domain": Filter to specific project domain"tags": Filter by tags (e.g.["bug-fix", "authentication"])"min_heat": Only hot/active memories (0.0-1.0)"time_range": Temporal filter (e.g."last_7_days","last_30_days")"store_type":"episodic"(specific events) or"semantic"(consolidated knowledge)
Step 3: Hierarchical Recall (For Broad Topics)
When exploring a large topic area, use fractal hierarchical recall:
cortex:recall_hierarchical({
"query": "<broad topic>",
"levels": 3
})This returns memories organized in L0 (broad clusters) > L1 (sub-topics) > L2 (specific memories). Use cortex:drill_down to navigate deeper into any cluster.
Step 4: Navigate Related Knowledge
After finding relevant memories, explore connections:
cortex:navigate_memory({
"memory_id": <id>,
"depth": 2
})This uses Successor Representation (co-access graph) to find memories frequently accessed together — surfacing implicit connections the user may not have queried for.
Step 5: Trace Causal Chains
For understanding cause-and-effect relationships:
cortex:get_causal_chain({
"entity": "<entity name>",
"direction": "both"
})This traverses the knowledge graph to show how entities relate through causal, temporal, and semantic relationships.
Tips
- Be specific: "PostgreSQL index performance on memories table" retrieves better than "database stuff"
- Use proactively: Before making a decision, recall if there's prior context — "have we made decisions about X before?"
- Recall at session start: The SessionStart hook auto-injects hot memories, but explicit recall for your current task adds focused context
- Rate results: After recall, use
cortex:rate_memoryon results that were useful/not-useful to improve future retrieval
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

