memory-routing
Skill1 starsChanged 5 days agoMITView on GitHub
Which memory layer to search — Repository SSOT first, distilled cross-project memory (e.g. OpenViking) second, raw session transcripts (e.g. deja) third. Use whenever you are about to search past context, earlier decisions, prior errors, or hand off a long task across sessions.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Zack-Grogan/agentos-foundationtheir own version, first seen Sep 8, 2026
- farky-tech/containerstheir own version, first seen Jul 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- farky-tech/containers★ 1same name
- Zack-Grogan/agentos-foundation★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- architecture-diagramSkill
- arenaSkill
- diagnosing-bugsSkill
- grillSkill
- karpathy-guidelinesSkill
- owner-modeSkill
- retroSkill
- skill-pruningSkill
- universal-model-promptingSkill
- upstream-prSkill
- wait-whatSkill
- windows-shellSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Repository SSOT first (0 memory calls): when working inside a tracked repo: current rules, script paths, schedules, and task states live in …
- Very specific: line 11
Start semantic find / search at limit=5: each hit carries its abstract, so larger defaults burn extra tokens.
- Distinctive: line 12
Read the abstract rather than trusting raw cosine similarity scores (embedding scores often cluster tightly around 0.73–0.87 even for …
- Distinctive: line 17
Keep full-text queries to 2–4 exact words.
- Very specific: line 27
Before resuming a multi-session task from another session or agent, check your shared kanban directory (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Three sources, strict priority to eliminate hallucination and save tokens:
- Repository SSOT first (0 memory calls) when working inside a tracked repo: current rules, script paths, schedules, and task states live in the repo (
AGENTS.md,ARCHITECTURE.md,GLOSSARY.md, config manifests). Never trust recalled memories over current repo files. - Distilled cross-project memory (e.g. OpenViking
viking://~/memories, or a shared notes directory) for cross-project user preferences and durable entity/pattern cards:- Scope searches to the relevant subtree (e.g.
target_uri="viking://~/memories/preferences") or read the known URI directly when the topic name is already clear. - Start semantic
find/searchatlimit=5: each hit carries its abstract, so larger defaults burn extra tokens. Raise it only when the hits miss the source you need. - Read the abstract rather than trusting raw cosine similarity scores (embedding scores often cluster tightly around 0.73–0.87 even for off-target hits).
- For exact tokens inside distilled notes: use regex/grep tools (e.g.
openviking_grep), not semanticfind.
- Scope searches to the relevant subtree (e.g.
- Raw lossless transcripts (e.g.
dejaCLI/MCP across agents, or local client session JSONLs under~/.claude,~/.codex,~/.pi) for exact historical evidence:- Exact strings: error messages (
deja fix "<error>"), file edit history (deja blame <path>), CLI flags, commit SHAs, or what an agent actually ran/measured; - Rule/decision keywords: filter to assistant or user turns so always-injected
AGENTS.mdheaders don't flood FTS results; - Keep full-text queries to 2–4 exact words.
- Exact strings: error messages (
Rules of thumb:
- Current project rule or path → Repo SSOT.
- User taste, personal preference, cross-project convention, or "why we chose X" → Distilled memory.
- Exact error string, command output, or file edit history → Raw session transcripts.
- Each external memory lookup costs ~1–3 s; never wire semantic memory or full transcript scans into synchronous per-prompt shell hooks.
Continuing long tasks across sessions/agents (Kanban handoff)
- Before resuming a multi-session task from another session or agent, check your shared kanban directory (e.g.
viking://~/resources/kanban/or.agents/kanban/) for its card and reuse it. - Record four fields only: goal (What), constraints, verified progress (with command/commit proof), and next step. Write back and verify after real progress, at handoff, and before context compaction.
- Short Q&A with no follow-up gets no card; never pick up another active session's card on your own.
- One task, one writer — an owner field is metadata, not a mutex. Never store credentials, raw secrets, or giant tool dumps in handoff cards.
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.

