-
Notifications
You must be signed in to change notification settings - Fork 0
Roadmap
This roadmap delivers a cognitive architecture for agents — a local, append-only conversational memory system with TOC-based agentic navigation. The journey proceeds from foundational storage through TOC construction, grips for provenance, query capabilities, hook integration, and culminates in a layered cognitive stack. Each phase builds on the previous, delivering a coherent capability that can be verified independently.
Phases are grouped by the cognitive layer they implement:
| Layer | Phases | Capability | Status |
|---|---|---|---|
| Foundation (0-1) | 1-6 | Events + TOC hierarchy | Complete |
| Integration | 7-10 | Plugins, hooks, scheduler | Complete |
| Agentic Navigation (2) | 10.5 | Index-free search (always works) | Complete |
| Keyword Acceleration (3) | 11 | BM25/Tantivy teleport | Complete |
| Semantic Acceleration (4) | 12 | Vector/HNSW teleport | Complete |
| Index Lifecycle | 13 | Outbox-driven index updates | Complete |
| Conceptual Enrichment (5) | 14 | Topic graph discovery | Complete |
| Configuration UX | 15 | Interactive wizard skills | Planned |
See: Cognitive Architecture Manifesto
Phase Numbering:
-
Integer phases (1, 2, 3, 4, 5, 6): Planned milestone work
-
Decimal phases (e.g., 2.1): Urgent insertions if needed (marked with INSERTED)
-
Phase 1: Foundation - Storage layer, domain types, gRPC scaffolding, configuration, daemon binary
-
Phase 2: TOC Building - Segmentation, summarization, time hierarchy construction
-
Phase 3: Grips & Provenance - Excerpt storage, summary-to-grip linking, expand capability
-
Phase 4: Query Layer - Navigation RPCs for TOC traversal and event retrieval
-
Phase 5: Integration - Hook handler connection, query CLI, admin commands
-
Phase 6: End-to-End Demo - Full workflow validation from ingestion to query answer
-
Phase 7: Agentic Memory Plugin - Claude Code marketplace plugin with commands, agents, graded skill
-
Phase 8: CCH Hook Integration - Automatic event capture via CCH hooks
-
Phase 9: Setup & Installer Plugin - Interactive setup wizard plugin with commands and agents
-
Phase 10: Background Scheduler - In-process Tokio cron scheduler for TOC rollups and periodic jobs
-
Phase 10.5: Agentic TOC Search - Index-free search using TOC navigation with progressive disclosure (INSERTED)
-
Phase 11: BM25 Teleport (Tantivy) - Full-text search index for keyword-based teleportation to relevant TOC nodes
-
Phase 12: Vector Teleport (HNSW) - Semantic similarity search via local HNSW vector index
-
Phase 13: Outbox Index Ingestion - Event-driven index updates from outbox for rebuildable search indexes
-
Phase 14: Topic Graph Memory - Semantic topic extraction, time-decayed importance, topic relationships for conceptual discovery
-
Phase 15: Configuration Wizard Skills - Interactive AskUserQuestion-based configuration wizards for storage, LLM, and multi-agent settings
Goal: Establish the storage layer, domain types, gRPC service structure, and daemon binary so events can be ingested and persisted Depends on: Nothing (first phase) Requirements: STOR-01, STOR-02, STOR-03, STOR-04, STOR-05, STOR-06, ING-01, ING-02, ING-03, ING-04, ING-05, GRPC-01, GRPC-02, GRPC-03, GRPC-04, CFG-01, CFG-02, CFG-03, CLI-01 Success Criteria (what must be TRUE):
- Daemon starts and accepts gRPC connections on configured port
- Events can be ingested via IngestEvent RPC and persisted to RocksDB
- Events are stored with time-prefixed keys enabling range scans
- Configuration loads from file, env vars, and CLI flags in correct precedence
- Daemon binary supports start/stop/status commands Plans: 5 plans in 4 waves
Plans:
- 01-00-PLAN.md — Workspace scaffolding (crate structure, proto placeholder, docs/README.md)
- 01-01-PLAN.md — Storage layer (RocksDB setup, column families, compaction, time-prefixed keys)
- 01-02-PLAN.md — Domain types (Event, TocNode, Grip, OutboxEntry, Settings configuration)
- 01-03-PLAN.md — gRPC service scaffolding (tonic setup, protos, IngestEvent RPC, health, reflection)
- 01-04-PLAN.md — CLI daemon binary (start/stop/status commands, config loading, graceful shutdown)
Goal: Construct the time-based Table of Contents hierarchy with summaries at each level Depends on: Phase 1 Requirements: TOC-01, TOC-02, TOC-03, TOC-04, TOC-05, TOC-06, SUMM-01, SUMM-02, SUMM-04 Success Criteria (what must be TRUE):
- Events are automatically segmented based on time/token thresholds
- Segments have overlap for context continuity
- TOC nodes exist at all time levels (Year, Month, Week, Day, Segment)
- Each TOC node contains title, bullets, keywords, and child references
- Day/Week/Month rollup jobs produce summaries from children with checkpoint recovery Plans: TBD
Plans:
- 02-01: Segmentation engine (time/token boundaries, overlap)
- 02-02: Summarizer trait and implementation
- 02-03: TOC hierarchy builder (nodes, rollups, checkpointing)
Goal: Anchor TOC summaries to source evidence through grips (excerpt + event pointers) Depends on: Phase 2 Requirements: GRIP-01, GRIP-02, GRIP-03, GRIP-04, SUMM-03 Success Criteria (what must be TRUE):
- Grips are created during summarization with excerpt and event references
- TOC node bullets link to supporting grip IDs
- Grips are stored in dedicated column family
- Given a grip ID, the system returns context events around the excerpt Plans: TBD
Plans:
- 03-01: Grip storage and data model
- 03-02: Summarizer grip extraction integration
- 03-03: Grip expansion (context retrieval)
Goal: Expose navigation RPCs so agents can traverse the TOC and retrieve events Depends on: Phase 3 Requirements: QRY-01, QRY-02, QRY-03, QRY-04, QRY-05 Success Criteria (what must be TRUE):
- GetTocRoot returns top-level time period nodes
- GetNode returns a specific node with its children and summary
- BrowseToc supports paginated navigation of large child lists
- GetEvents retrieves raw events for a specified time range
- ExpandGrip retrieves context around a grip excerpt Plans: TBD
Plans:
- 04-01: TOC navigation RPCs (GetTocRoot, GetNode, BrowseToc)
- 04-02: Event retrieval RPCs (GetEvents, ExpandGrip)
Goal: Connect hook handlers for event ingestion and provide CLI tools for querying and administration Depends on: Phase 4 Requirements: HOOK-02, HOOK-03, CLI-02, CLI-03 Success Criteria (what must be TRUE):
- Hook handlers can call IngestEvent RPC to send conversation events
- Event types from hooks map correctly to memory events
- Query CLI allows manual TOC navigation for testing
- Admin commands can rebuild TOC, trigger compaction, and show status Plans: TBD
Plans:
- 05-01: Hook handler integration (IngestEvent client, event mapping)
- 05-02: Query CLI (manual navigation, testing)
- 05-03: Admin commands (rebuild-toc, compact, status)
Goal: Validate the complete workflow from conversation capture through query resolution Depends on: Phase 5 Requirements: (validation phase - no new requirements, validates all prior) Success Criteria (what must be TRUE):
- Hook captures a conversation, events flow to daemon, TOC builds automatically
- Agent can navigate TOC via gRPC to find relevant time periods
- Query "what did we discuss yesterday?" returns summary-based answer
- Agent can drill down from summary to grips to raw events for verification
- System recovers gracefully from daemon restart (crash recovery) Plans: TBD
Plans:
- 06-01: Integration test harness and demo script
- 06-02: Documentation and usage examples
Goal: Provide a Claude Code marketplace plugin for querying past conversations with commands and autonomous agents Depends on: Phase 6 Requirements: SKILL-01, SKILL-02, SKILL-03, PLUGIN-01, PLUGIN-02 Success Criteria (what must be TRUE):
- Plugin provides
/memory-search,/memory-recent,/memory-contextslash commands - Autonomous agent handles complex multi-step memory queries
- Skill follows PDA (Progressive Disclosure Architecture) with layered references
- Skill passes quality grading (99/100, Grade A)
- Plugin uses marketplace.json manifest format
- Skill handles daemon connection failures gracefully via validation checklist Plans: 1 plan complete
Plans:
- 07-01: Agentic memory query plugin (marketplace.json, 3 commands, 1 agent, graded skill)
Implemented Architecture:
Agent Memory
+-----------------+
| memory-daemon |
| (gRPC :50051) |
+-----------------+
^
| CLI query
+--------+--------+
| memory-query |
| plugin |
| +-------------+ |
| | 3 commands | |
| | 1 agent | |
| | SKILL.md | |
| +-------------+ |
+-----------------+
Plugin Components:
| Component | File | Purpose |
|---|---|---|
| Skill | skills/memory-query/SKILL.md | Core capability (99/100 grade) |
| Command | commands/memory-search.md | /memory-search <topic> |
| Command | commands/memory-recent.md | /memory-recent [--days N] |
| Command | commands/memory-context.md | /memory-context <grip> |
| Agent | agents/memory-navigator.md | Complex multi-step queries |
Goal: Integrate agent-memory with code_agent_context_hooks (CCH) for automatic event capture Depends on: Phase 7 Requirements: CCH-01, CCH-02, CCH-03 Success Criteria (what must be TRUE):
- CCH hooks.yaml can be configured to capture conversation events
- Hook handler maps CCH events to memory events
- Hook handler uses memory-client library to communicate with memory-daemon
- Events are automatically ingested without manual intervention Plans: 1 plan complete
Plans:
- 08-01: CCH hook handler (memory-ingest binary, event mapping, hooks.yaml configuration)
CCH Event Mapping (Future):
| CCH Event | Memory Event Type | Notes |
|---|---|---|
| session-start | session_start | Captures session_id, project context |
| user-prompt | user_message | User's prompt text |
| post-tool-use | tool_result | Tool name, result summary |
| session-end | session_end | Session duration, token count |
| pre-compact | (no mapping) | Could trigger TOC rebuild |
Goal: Provide an interactive setup wizard plugin that guides users through installing, configuring, and managing agent-memory Depends on: Phase 8 Requirements: SETUP-01, SETUP-02, SETUP-03, SETUP-04, SETUP-05 Success Criteria (what must be TRUE):
- Plugin provides
/memory-setupcommand that launches interactive wizard - Wizard asks questions about: installation method, hook configuration, daemon settings, summarizer choice
- Plugin can install binaries (memory-daemon, memory-ingest) to user's system
- Plugin generates hooks.yaml configuration based on user answers
- Plugin provides
/memory-statuscommand to check installation health - Plugin provides
/memory-configcommand to modify settings after initial setup - Autonomous agent handles complex setup troubleshooting
- Skill follows PDA with layered references for advanced configuration Plans: 4 plans complete
Plans:
- 09-01: Setup plugin structure (marketplace.json, skill, commands, agent)
- 09-02: Interactive wizard flow (questions, configuration generation)
- 09-03: Installation automation (binary installation, path setup)
- 09-04: Health check and troubleshooting (status, diagnostics, fixes)
Goal: Provide in-process Tokio-based cron scheduler for periodic background jobs (TOC rollups, compaction, index maintenance) Depends on: Phase 9 Requirements: SCHED-01, SCHED-02, SCHED-03, SCHED-04, SCHED-05 Success Criteria (what must be TRUE):
- Cron expressions parsed and scheduled via tokio-cron-scheduler
- Timezone-aware scheduling with DST handling (chrono-tz)
- Overlap policy configurable: skip or concurrent (queue deferred - adds complexity)
- Jitter support to spread load across instances
- Graceful shutdown stops scheduling, finishes current job, or cancels safely
- TOC rollup jobs (day/week/month) run on schedule
- Job status observable via CLI/gRPC (last run, next run, success/failure) Plans: 4 plans in 3 waves
Plans:
- 10-01-PLAN.md — Scheduler infrastructure (memory-scheduler crate, tokio-cron-scheduler, timezone handling)
- 10-02-PLAN.md — Job registry and lifecycle (JobRegistry, overlap policy, jitter utilities)
- 10-03-PLAN.md — TOC rollup jobs (wire existing rollups to scheduler, daemon integration)
- 10-04-PLAN.md — Job observability (GetSchedulerStatus RPC, CLI scheduler commands)
Goal: Add foundational agentic search using TOC navigation with simple term matching - works without any index dependencies Depends on: Phase 10 Requirements: SEARCH-01, SEARCH-02, SEARCH-03, SEARCH-04, SEARCH-05 Success Criteria (what must be TRUE):
- SearchNode RPC searches within a single node's fields (title, summary, bullets, keywords)
- SearchChildren RPC searches across all children of a parent node at a specified level
- Simple term-overlap scoring without external dependencies (no Tantivy, no HNSW)
- Agent can navigate TOC using search to find relevant content
- Search results include grip IDs for provenance verification
- Explainable navigation paths show why each level was chosen
- CLI search command available for testing Plans: 3 plans in 3 waves
Plans:
- 10.5-01-PLAN.md — Core search logic (search_node function, term overlap scoring, unit tests)
- 10.5-02-PLAN.md — gRPC integration (SearchNode/SearchChildren RPCs, integration tests)
- 10.5-03-PLAN.md — CLI and agent (search command, navigator agent updates, documentation)
Documentation:
- Technical Plan: docs/plans/phase-10.5-agentic-toc-search.md
- PRD: docs/prds/agentic-toc-search-prd.md
Goal: Enable fast keyword-based search that "teleports" agents directly to relevant TOC nodes or grips without traversing the hierarchy Depends on: Phase 10 Requirements: TELE-01, TELE-04, TELE-05, TELE-06, TELE-07 Success Criteria (what must be TRUE):
- Tantivy embedded index stores searchable text from TOC summaries and grip excerpts
- BM25 search returns ranked TOC node IDs or grip pointers
- Search results include relevance scores for agent decision-making
- Index is incrementally updated as new TOC nodes are created
- CLI provides
teleport search <query>command for testing Plans: 4 plans in 3 waves
Documentation:
- PRD: docs/prds/bm25-teleport-prd.md
- Research: .planning/phases/11-bm25-teleport-tantivy/11-RESEARCH.md
Plans:
- 11-01-PLAN.md — Tantivy integration (memory-search crate, schema, index setup)
- 11-02-PLAN.md — Indexing pipeline (TOC node and grip text extraction, document mapping)
- 11-03-PLAN.md — Search API (gRPC TeleportSearch RPC, BM25 scoring)
- 11-04-PLAN.md — CLI and testing (teleport command, background commit job)
Goal: Enable semantic similarity search for conceptually related content even when keywords don't match Depends on: Phase 11 Requirements: TELE-02, TELE-04 (vector support), TELE-05, TELE-06, FR-09 (Outbox indexing), FR-10 (Checkpoint recovery) Success Criteria (what must be TRUE):
- Local HNSW index stores embeddings for TOC summaries and grips
- Embedding generation uses local model (no API dependency)
- Vector search returns semantically similar TOC nodes or grips
- Hybrid search combines BM25 and vector scores
- Index rebuild is fast (<1 minute for 10k nodes)
- Outbox-driven indexing automatically indexes new TOC nodes and grips
- Checkpoint-based recovery ensures crash safety for indexing Plans: 5 plans in 4 waves
Documentation:
- PRD: docs/prds/hierarchical-vector-indexing-prd.md
- Technical Plan: docs/plans/phase-12-vector-teleport.md
- Research: .planning/phases/12-vector-teleport-hnsw/12-RESEARCH.md
Plans:
- 12-01-PLAN.md — Embedding infrastructure (memory-embeddings crate, Candle model, caching)
- 12-02-PLAN.md — Vector index (memory-vector crate, usearch HNSW, metadata storage)
- 12-02b-PLAN.md — Vector indexing pipeline (outbox consumer, checkpoint recovery, admin commands)
- 12-03-PLAN.md — gRPC integration (VectorTeleport, HybridSearch, GetVectorIndexStatus RPCs)
- 12-04-PLAN.md — CLI and documentation (teleport commands, user guide)
Goal: Drive index updates from the existing outbox pattern for rebuildable, crash-safe search indexes Depends on: Phase 12 Requirements: TELE-03 Success Criteria (what must be TRUE):
- Outbox entries trigger index updates for new TOC nodes and grips
- Index consumer tracks checkpoint for crash recovery
- Full index rebuild from storage is supported via admin command
- Index state is independent of primary storage (can be deleted and rebuilt)
- Indexing is async and doesn't block event ingestion Plans: 4 plans in 3 waves
Documentation:
- Research: .planning/phases/13-outbox-index-ingestion/13-RESEARCH.md
Plans:
- 13-01-PLAN.md — Outbox consumer infrastructure (memory-indexing crate, outbox reading, checkpoint tracking)
- 13-02-PLAN.md — Incremental index updates (IndexingPipeline, dispatch logic, mock tests)
- 13-03-PLAN.md — Full rebuild command (admin rebuild-indexes, dry-run support)
- 13-04-PLAN.md — Scheduler integration (background job, GetIndexingStatus RPC)
Goal: Enable conceptual discovery through semantic topics extracted from TOC summaries with time-decayed importance scoring Depends on: Phase 12 (uses embedding infrastructure) Requirements: TOPIC-01 through TOPIC-08 Success Criteria (what must be TRUE):
- Topics extracted from TOC summaries via embedding clustering with LLM labeling
- Topics stored in CF_TOPICS column family with importance scores
- Time-decayed importance scoring surfaces recent/frequent topics
- Topic relationships (similar topics, parent/child hierarchy) discoverable
- Topic navigation RPCs enable agents to explore conceptual connections
- Topic lifecycle management (pruning dormant topics, resurrection on reactivation)
- Fully optional via configuration (topics.enabled = false disables all processing)
- GetTopicGraphStatus RPC enables feature discovery Plans: 6 plans in 6 waves
Documentation:
- PRD: docs/prds/topic-graph-memory-prd.md
- Technical Plan: docs/plans/topic-graph-memory.md
Plans:
- 14-01-PLAN.md — Topic extraction (memory-topics crate, CF_TOPICS, HDBSCAN clustering, cosine similarity)
- 14-02-PLAN.md — Topic labeling (LLM integration with keyword fallback, stopword filtering)
- 14-03-PLAN.md — Importance scoring (exponential time decay with configurable half-life)
- 14-04-PLAN.md — Topic relationships (similarity detection, parent/child hierarchy, cycle prevention)
- 14-05-PLAN.md — Navigation RPCs (5 gRPC endpoints: status, query, nodes, top, related)
- 14-06-PLAN.md — Lifecycle management (pruning, resurrection, scheduler jobs, CLI commands)
Goal: Create interactive AskUserQuestion-based configuration wizard skills for advanced storage, LLM, and multi-agent configuration Depends on: Phase 9 (Setup & Installer Plugin) Requirements: CONFIG-01, CONFIG-02, CONFIG-03, CONFIG-04 Success Criteria (what must be TRUE):
-
/memory-storageskill provides interactive wizard for storage paths, retention, cleanup, GDPR mode -
/memory-llmskill provides interactive wizard for LLM provider, model discovery, cost estimation, API testing -
/memory-agentsskill provides interactive wizard for multi-agent mode, agent tagging, cross-agent queries - All 29 config options are addressable through wizard skills (coverage verified)
- State detection skips already-configured options
- Skills follow existing memory-setup patterns (--minimal, --advanced, --fresh flags) Plans: 5 plans in 3 waves
Documentation:
- Technical Plan: docs/plans/configuration-wizard-skills-plan.md
Plans:
- 15-01-PLAN.md — memory-storage skill (storage paths, retention, cleanup, GDPR, performance tuning)
- 15-02-PLAN.md — memory-llm skill (provider, model discovery, API testing, cost estimation, budget)
- 15-03-PLAN.md — memory-agents skill (multi-agent mode, agent ID, query scope, team settings)
- 15-04-PLAN.md — Reference documentation (retention-policies.md, provider-comparison.md, storage-strategies.md)
- 15-05-PLAN.md — Plugin integration and memory-setup updates (marketplace.json, gap resolution)
Execution Order: Phases execute in numeric order: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10 -> 10.5 -> 11 -> 12 -> 13 -> 14 -> 15
| Phase | Plans Complete | Status | Completed |
|---|---|---|---|
| 1. Foundation | 5/5 | Complete | 2026-01-30 |
| 2. TOC Building | 3/3 | Complete | 2026-01-30 |
| 3. Grips & Provenance | 3/3 | Complete | 2026-01-30 |
| 4. Query Layer | 2/2 | Complete | 2026-01-30 |
| 5. Integration | 3/3 | Complete | 2026-01-30 |
| 6. End-to-End Demo | 2/2 | Complete | 2026-01-30 |
| 7. Agentic Memory Plugin | 1/1 | Complete | 2026-01-30 |
| 8. CCH Hook Integration | 1/1 | Complete | 2026-01-30 |
| 9. Setup & Installer Plugin | 4/4 | Complete | 2026-01-31 |
| 10. Background Scheduler | 4/4 | Complete | 2026-01-31 |
| 10.5. Agentic TOC Search | 3/3 | Complete | 2026-02-02 |
| 11. BM25 Teleport (Tantivy) | 4/4 | Complete | 2026-02-02 |
| 12. Vector Teleport (HNSW) | 5/5 | Complete | 2026-02-02 |
| 13. Outbox Index Ingestion | 4/4 | Complete | 2026-02-02 |
| 14. Topic Graph Memory | 6/6 | Complete | 2026-02-02 |
| 15. Configuration Wizard Skills | 0/5 | Planned | - |
Roadmap created: 2026-01-29 v1 Milestone completed: 2026-01-30 Phase 7 completed: 2026-01-30 (Agentic Memory Plugin) Phase 8 completed: 2026-01-30 (CCH Hook Integration) Phase 9 completed: 2026-01-31 (Setup & Installer Plugin) v2.0 phases added: 2026-01-31 (Phase 10 Scheduler + Phases 11-13 Teleport) Phase 10 plans created: 2026-01-31 Phase 11 plans created: 2026-01-31 Phase 10.5 added: 2026-02-01 (Agentic TOC Search - inserted phase) Phase 14 added: 2026-02-01 (Topic Graph Memory - conceptual enrichment layer) Total plans: 48 across 15 phases (22 v1.0 + 26 v2.0) Phase 12 plans created: 2026-02-01 (5 plans including outbox indexing pipeline) Phase 15 added: 2026-02-01 (Configuration Wizard Skills - AskUserQuestion-based config wizards) Total plans: 53 across 16 phases (22 v1.0 + 31 v2.0) Phase 10.5 completed: 2026-02-02 (Agentic TOC Search - 3 plans) Phase 11 completed: 2026-02-02 (BM25 Teleport - 4 plans) Phase 12 completed: 2026-02-02 (Vector Teleport - 5 plans) Phase 13 completed: 2026-02-02 (Outbox Index Ingestion - 4 plans) Phase 14 completed: 2026-02-02 (Topic Graph Memory - 6 plans)