From mnemonic
Implements blackboard pattern for cross-session handoff, persistent context via mnemonic files, and agent coordination using hooks and tasks.
npx claudepluginhub zircote/mnemonicThis skill is limited to using the following tools:
<!-- BEGIN MNEMONIC PROTOCOL -->
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Compresses source documents into lossless, LLM-optimized distillates preserving all facts and relationships. Use for 'distill documents' or 'create distillate' requests.
Search first: /mnemonic:search {relevant_keywords}
Capture after: /mnemonic:capture {namespace} "{title}"
Run /mnemonic:list --namespaces to see available namespaces from loaded ontologies.
Cross-session handoff, persistent context, and agent coordination.
| Scope | Mechanism | Tools |
|---|---|---|
| In-session | Claude Code native swarm | TeamCreate, SendMessage, TaskCreate, TaskUpdate |
| Cross-session | Mnemonic blackboard handoff | handoff/latest-handoff.md via hooks |
| Persistent knowledge | Mnemonic memories | *.memory.md files |
MNEMONIC_ROOT=$(tools/mnemonic-paths root)
BLACKBOARD=$(tools/mnemonic-paths blackboard)
HANDOFF_DIR=${BLACKBOARD}/handoff
${BLACKBOARD}/
├── _legacy/ # Pre-migration files (frozen)
├── sessions/
│ └── {session_id}/
│ ├── session-notes.md # Session activity log
│ └── _meta.json # Session lifecycle metadata
├── handoff/
│ ├── latest-handoff.md # Cross-session context (overwritten each session end)
│ └── handoff-{session_id}.md # Archived per-session handoffs
└── .archive/ # Archived entries
hooks/stop.py): Writes summary to handoff/latest-handoff.mdhooks/session_start.py): Reads handoff/latest-handoff.md to restore contextThis is automatic via hooks.
# Session Handoff
**Session:** {session_id}
**Ended:** {timestamp}
**Project:** {org}/{project}
## What Was Accomplished
- Completed items
## In Progress
- Ongoing work with current state
## Blocked
- Blocker: reason
## Next Steps
- [ ] Action item 1
- [ ] Action item 2
## Important Context
- Key context for next session
| Agent | Purpose | Invocation |
|---|---|---|
memory-curator | Maintenance, deduplication, decay | Standalone or native swarm |
mnemonic-search-subcall | Iterative memory search | Spawned via Task tool |
compression-worker | Memory summarization | Spawned via Task tool |
ontology-discovery | Entity discovery from codebase | Spawned via Task tool |
Each session creates _meta.json:
{
"session_id": "abc-123",
"started": "2026-01-15T10:00:00Z",
"ended": "2026-01-15T11:30:00Z",
"project": "zircote/mnemonic",
"org": "zircote",
"status": "ended"
}