Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
23e74d2
test(phase-18): complete UAT - 5 passed, 0 issues, 1 skipped
RichardHightower Feb 9, 2026
e9c6715
docs(phase-19): research OpenCode plugin format
RichardHightower Feb 9, 2026
2252d69
docs(19): create phase plan for OpenCode commands and skills
RichardHightower Feb 9, 2026
607e7d6
fix(phase-19): address plan checker blocker - explicit Process sectio…
RichardHightower Feb 9, 2026
e5fa9c2
feat(19-01): create memory-search command for OpenCode
RichardHightower Feb 9, 2026
0608a8e
feat(19-02): port memory-query skill to OpenCode format
RichardHightower Feb 9, 2026
be16d7b
feat(19-01): create memory-recent command for OpenCode
RichardHightower Feb 9, 2026
160dd40
feat(19-02): port retrieval-policy skill to OpenCode format
RichardHightower Feb 9, 2026
01f20bf
feat(19-02): port topic-graph skill to OpenCode format
RichardHightower Feb 9, 2026
44d8dbb
feat(19-01): create memory-context command for OpenCode
RichardHightower Feb 9, 2026
4b939df
feat(19-03): port bm25-search skill to OpenCode format
RichardHightower Feb 9, 2026
d9f7703
docs(19-02): complete port core skills plan
RichardHightower Feb 9, 2026
f56e2b1
feat(19-03): port vector-search skill to OpenCode format
RichardHightower Feb 9, 2026
89efcee
docs(19-01): complete OpenCode commands plan
RichardHightower Feb 9, 2026
9f328b1
docs(19-03): complete port teleport skills plan
RichardHightower Feb 9, 2026
7e7604c
docs(19-05): create OpenCode plugin README with installation and usag…
RichardHightower Feb 9, 2026
eb27bed
feat(19-04): create memory-navigator agent for OpenCode
RichardHightower Feb 9, 2026
fdc961e
chore(19-05): add .gitignore for OpenCode plugin directory
RichardHightower Feb 9, 2026
3510f26
docs(19-04): complete memory-navigator agent plan
RichardHightower Feb 9, 2026
cf67080
docs(19-05): complete plugin README plan - Phase 19 finished
RichardHightower Feb 9, 2026
9e6d377
docs(phase-19): complete phase execution β€” verification passed
RichardHightower Feb 9, 2026
01837df
docs(20): research phase domain
RichardHightower Feb 9, 2026
95f81c3
docs(20): create phase plan for OpenCode Event Capture + Unified Queries
RichardHightower Feb 9, 2026
e46161b
fix(20): revise plan 20-03 must_haves - remove teleport/vector truths…
RichardHightower Feb 9, 2026
368bc7e
feat(20-01): add agent field to CchEvent and HookEvent, propagate thr…
RichardHightower Feb 9, 2026
2cb71ee
feat(20-01): populate RetrievalResult.agent from search result metadata
RichardHightower Feb 9, 2026
23b1dc6
chore(20-01): fix rustfmt formatting in ingest tests
RichardHightower Feb 9, 2026
70fda16
docs(20-01): complete agent pipeline wiring plan
RichardHightower Feb 9, 2026
cb828eb
feat(20-02): create OpenCode event capture plugin
RichardHightower Feb 9, 2026
9109e0f
docs(20-02): complete OpenCode event capture plugin plan
RichardHightower Feb 9, 2026
4d4e5d0
feat(20-03): wire --agent filter and display agent in CLI retrieval o…
RichardHightower Feb 9, 2026
eaa7b72
docs(20-03): add event capture documentation to plugin README
RichardHightower Feb 9, 2026
00ceceb
docs(20-03): complete agent display and plugin README plan
RichardHightower Feb 9, 2026
4ba6642
docs(phase-20): complete phase execution β€” verification passed
RichardHightower Feb 9, 2026
2508f1c
docs(21): capture phase context for Gemini CLI adapter
RichardHightower Feb 10, 2026
be8deef
docs(21-gemini-cli-adapter): research phase domain
RichardHightower Feb 10, 2026
73c7c50
docs(21): create phase plan for Gemini CLI adapter
RichardHightower Feb 10, 2026
207bf46
docs(21): harden plans β€” add redaction, ANSI stripping, version check…
RichardHightower Feb 10, 2026
30cd240
feat(21-02): create TOML command files for Gemini CLI adapter
RichardHightower Feb 10, 2026
78484fa
feat(21-01): create settings.json hook configuration for Gemini CLI
RichardHightower Feb 10, 2026
56a0d91
docs(21-01): complete Gemini CLI event capture plan
RichardHightower Feb 10, 2026
5738458
feat(21-02): add Gemini skills with embedded navigator logic in memor…
RichardHightower Feb 10, 2026
0c24144
docs(21-02): complete Gemini CLI commands and skills plan
RichardHightower Feb 10, 2026
82e95af
feat(21-03): create memory-gemini-install skill for automated setup
RichardHightower Feb 10, 2026
f471c8d
feat(21-03): create README.md and .gitignore for Gemini CLI adapter
RichardHightower Feb 10, 2026
1cb6ba7
docs(21-03): complete install skill + README plan -- Phase 21 done
RichardHightower Feb 10, 2026
9706cac
docs(phase-21): complete phase execution β€” verification passed
RichardHightower Feb 10, 2026
82f268b
docs(22-copilot-cli-adapter): research phase domain
RichardHightower Feb 10, 2026
bc0ccdb
docs(22): create phase plan for Copilot CLI adapter
RichardHightower Feb 10, 2026
4a4031c
docs(21): capture review findings for gap closure
RichardHightower Feb 10, 2026
a78abb2
docs(21): create gap closure plan for jq compat, ANSI stripping, per-…
RichardHightower Feb 10, 2026
cc195f4
fix(21-04): harden memory-capture.sh with jq version detection and br…
RichardHightower Feb 10, 2026
753bc2f
docs(21-04): add per-project path rewriting and jq version documentation
RichardHightower Feb 10, 2026
be86425
docs(21-04): complete gap closure plan -- jq compat, ANSI strip, per-…
RichardHightower Feb 10, 2026
109c0a2
docs(phase-21): complete gap closure β€” verification passed
RichardHightower Feb 10, 2026
3797769
feat(22-01): create Copilot CLI hook handler with session ID synthesis
RichardHightower Feb 10, 2026
c10f35a
feat(22-01): create memory-hooks.json with 5 Copilot event registrations
RichardHightower Feb 10, 2026
9b483bc
docs(22-01): complete Copilot CLI event capture plan
RichardHightower Feb 10, 2026
cfa317b
feat(22-02): create Copilot CLI adapter skills with SKILL.md format
RichardHightower Feb 10, 2026
77a683d
feat(22-02): create navigator agent and plugin manifest for Copilot CLI
RichardHightower Feb 10, 2026
c2d9862
docs(22-02): complete Copilot CLI skills and agent plan
RichardHightower Feb 10, 2026
5250f59
feat(22-03): create memory-copilot-install skill for automated adapte…
RichardHightower Feb 10, 2026
258117a
feat(22-03): create README.md and .gitignore for Copilot CLI adapter
RichardHightower Feb 10, 2026
06d670b
docs(22-03): complete install skill and README plan
RichardHightower Feb 10, 2026
b8dd930
docs(phase-22): complete phase execution β€” verification passed
RichardHightower Feb 10, 2026
f2f18cf
test(22): complete UAT - 12 passed, 0 issues
RichardHightower Feb 10, 2026
9e86293
docs(23): research phase domain
RichardHightower Feb 10, 2026
4fc3ac9
fix(23): revise plans based on checker feedback β€” add executable task…
RichardHightower Feb 10, 2026
d94c2e2
feat(23-01): add ListAgents and GetAgentActivity RPCs with service logic
RichardHightower Feb 10, 2026
a258f02
feat(23-01): add agents CLI subcommand group to memory-daemon
RichardHightower Feb 10, 2026
7879610
docs(23-01): add agent discovery section to README
RichardHightower Feb 10, 2026
301e159
docs(23-01): complete agent discovery RPCs plan
RichardHightower Feb 10, 2026
1f7e027
feat(23-03): add CLOD format specification and converter CLI
RichardHightower Feb 10, 2026
762c8f3
feat(23-02): add agent filter to GetTopTopics RPC and topic-agent agg…
RichardHightower Feb 10, 2026
99e5d7b
docs(23-03): add cross-agent usage guide and adapter authoring guide
RichardHightower Feb 10, 2026
7152940
feat(23-02): add agents topics CLI command for agent-filtered topic q…
RichardHightower Feb 10, 2026
a4a073c
docs(23-03): update top-level docs with cross-agent references
RichardHightower Feb 10, 2026
0ad5475
docs(23-03): complete CLOD spec and documentation plan
RichardHightower Feb 10, 2026
c319542
test(23-02): add tests for agent-filtered topic queries
RichardHightower Feb 10, 2026
da74c39
docs(23-02): complete agent-aware topic queries plan
RichardHightower Feb 10, 2026
a6c0b71
docs(23): fix cross-agent guide to reference agents topics command
RichardHightower Feb 10, 2026
cb6a2b8
docs(phase-23): complete phase execution β€” verification passed
RichardHightower Feb 10, 2026
6e0c534
chore: complete v2.1 Multi-Agent Ecosystem milestone
RichardHightower Feb 10, 2026
083cc69
docs: start milestone v2.2 Production Hardening
RichardHightower Feb 11, 2026
9c904cb
docs: define milestone v2.2 requirements
RichardHightower Feb 11, 2026
bef3aed
docs: create milestone v2.2 roadmap (4 phases)
RichardHightower Feb 11, 2026
b8ced8d
docs(24): create phase plan β€” Proto & Service Debt Cleanup
RichardHightower Feb 11, 2026
fbbca17
feat(24-01): wire GetRankingStatus RPC to return real config data
RichardHightower Feb 11, 2026
fe62f5c
feat(24-01): fix ListAgents session_count via event scanning
RichardHightower Feb 11, 2026
c2c91c9
docs(24-01): complete Wire RPC Stubs plan
RichardHightower Feb 11, 2026
7258bbc
feat(24-02): add agent field to proto messages and Rust search structs
RichardHightower Feb 11, 2026
461fb40
feat(24-02): wire agent field through service handlers and add tests
RichardHightower Feb 11, 2026
dc86bb6
docs(24-02): complete Agent Attribution plan
RichardHightower Feb 11, 2026
314fc8c
feat(24-03): wire PruneVectorIndex RPC with real lifecycle pruning
RichardHightower Feb 11, 2026
0959067
feat(24-03): wire PruneBm25Index RPC with lifecycle analysis
RichardHightower Feb 11, 2026
226163c
docs(24-03): complete Prune RPCs plan - Phase 24 fully done
RichardHightower Feb 11, 2026
eb252e3
docs(phase-24): complete phase execution β€” verification passed
RichardHightower Feb 11, 2026
c4f1ac8
docs(25): capture Phase 25 E2E Core Pipeline Tests context
RichardHightower Feb 11, 2026
45c6959
docs(25): create phase plan β€” E2E Core Pipeline Tests
RichardHightower Feb 11, 2026
ffc49af
chore: fix rustfmt formatting across workspace
RichardHightower Feb 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,17 @@ coverage/
!CLAUDE.md
!AGENTS.md

# Override global gitignore for OpenCode plugin files
!.opencode
!.opencode/
!**/.opencode
!**/.opencode/

# Override global gitignore for Gemini adapter plugin files
!.gemini
!.gemini/
!**/.gemini
!**/.gemini/

# Local Cargo configuration (platform-specific)
.cargo/
30 changes: 30 additions & 0 deletions .planning/MILESTONES.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,33 @@
**What's next:** Teleport indexes (BM25/vector search), additional hook adapters (OpenCode, Gemini CLI), or production hardening

---

## v2.1 Multi-Agent Ecosystem (Shipped: 2026-02-10)

**Delivered:** Multi-agent ecosystem with 4 adapter plugins (Claude Code, OpenCode, Gemini CLI, Copilot CLI), cross-agent discovery (agent listing, activity timeline, topic-by-agent), and CLOD universal command format.

**Phases completed:** 18-23 (22 plans total)

**Key accomplishments:**

- Agent tagging infrastructure β€” Event.agent field, TocNode.contributing_agents, AgentAdapter trait SDK
- OpenCode plugin β€” 3 commands, 5 skills, navigator agent, TypeScript event capture plugin
- OpenCode event capture β€” agent field through ingest-to-retrieval pipeline, multi-agent query results
- Gemini CLI adapter β€” shell hook handler, TOML commands, skills with embedded navigator, install skill
- Copilot CLI adapter β€” session ID synthesis, skills, .agent.md navigator, plugin.json manifest
- Cross-agent discovery β€” ListAgents/GetAgentActivity RPCs, agent-filtered topics, CLOD spec + converter CLI
- Comprehensive documentation β€” cross-agent usage guide, adapter authoring guide, UPGRADING.md

**Stats:**

- 155 files created/modified
- 31,544 lines added (40,817 total LOC Rust)
- 6 phases, 22 plans, 76 commits
- 2 days from start to ship (2026-02-09 β†’ 2026-02-10)

**Git range:** `feat(18-01)` β†’ `docs(phase-23)`

**What's next:** E2E automated tests, performance benchmarks, or v2.2 enhancements

---

85 changes: 50 additions & 35 deletions .planning/PROJECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,31 @@

## Current State

**Version:** v2.0.0 (Shipped 2026-02-07)
**Status:** Full cognitive architecture complete
**Version:** v2.1 (Shipped 2026-02-10)
**Status:** Multi-agent ecosystem complete β€” 4 adapters, cross-agent discovery, CLOD format

The system now implements a complete 6-layer cognitive stack with control plane:
- Layer 0: Raw Events (RocksDB)
- Layer 1: TOC Hierarchy (time-based navigation)
The system implements a complete 6-layer cognitive stack with control plane and multi-agent support:
- Layer 0: Raw Events (RocksDB) β€” agent-tagged
- Layer 1: TOC Hierarchy (time-based navigation) β€” contributing_agents tracking
- Layer 2: Agentic TOC Search (index-free, always works)
- Layer 3: Lexical Teleport (BM25/Tantivy)
- Layer 4: Semantic Teleport (Vector/HNSW)
- Layer 5: Conceptual Discovery (Topic Graph)
- Layer 5: Conceptual Discovery (Topic Graph) β€” agent-filtered queries
- Layer 6: Ranking Policy (salience, usage, novelty, lifecycle)
- Control: Retrieval Policy (intent routing, tier detection, fallbacks)
- Adapters: Claude Code, OpenCode, Gemini CLI, Copilot CLI
- Discovery: ListAgents, GetAgentActivity, agent-filtered topics

## Current Milestone: v2.1 Multi-Agent Ecosystem
40,817 LOC Rust across 14 crates. 4 adapter plugins. 3 documentation guides.

**Goal:** Extend Agent Memory to work across the AI agent ecosystem with full Claude parity.
## Current Milestone: v2.2 Production Hardening

**Goal:** Make Agent Memory CI-verified and production-ready by closing all tech debt, adding E2E pipeline tests, and strengthening CI/CD.

**Target features:**
- OpenCode plugin (query commands, event capture, navigator agent)
- Gemini CLI hook adapter (event capture + plugin equivalent)
- GitHub Copilot CLI hook adapter (event capture + plugin equivalent)
- Cross-agent memory sharing (agent-tagged events, unified queries, filter-by-agent)
- E2E test suite (ingest β†’ TOC build β†’ grip creation β†’ query route β†’ results)
- Tech debt cleanup (wire stub RPCs, fix session_count, agent field on teleport results)
- CI/CD improvements (E2E tests in GitHub Actions)

## What This Is

Expand Down Expand Up @@ -85,7 +88,21 @@ Agent Memory implements a layered cognitive architecture:

## Requirements

### Validated (v2.0.0 - Shipped 2026-02-07)
### Validated (v2.1 - Shipped 2026-02-10)

**Multi-Agent Ecosystem (v2.1)**
- [x] OpenCode plugin β€” 3 commands, 5 skills, navigator agent, event capture β€” v2.1
- [x] Gemini CLI adapter β€” hook handler, TOML commands, skills, install skill β€” v2.1
- [x] Copilot CLI adapter β€” hook handler, session synthesis, skills, navigator agent β€” v2.1
- [x] Agent-tagged events with Event.agent field and TocNode.contributing_agents β€” v2.1
- [x] Unified cross-agent queries (all agents by default, --agent filter) β€” v2.1
- [x] Agent discovery RPCs (ListAgents, GetAgentActivity) β€” v2.1
- [x] Agent-filtered topic queries (GetTopTopics with agent_filter) β€” v2.1
- [x] CLOD format spec and converter CLI (4 adapter generators) β€” v2.1
- [x] Cross-agent usage guide, adapter authoring guide, UPGRADING docs β€” v2.1

<details>
<summary>v2.0.0 Validated (Shipped 2026-02-07)</summary>

**Cognitive Layers (v2.0)**
- [x] Background scheduler with Tokio cron, timezone handling, overlap policy β€” v2.0
Expand All @@ -103,6 +120,8 @@ Agent Memory implements a layered cognitive architecture:
- [x] Fallback chains with graceful degradation β€” v2.0
- [x] Explainability payload for skill contracts β€” v2.0

</details>

<details>
<summary>v1.0.0 Validated (Shipped 2026-01-30)</summary>

Expand Down Expand Up @@ -148,31 +167,21 @@ Agent Memory implements a layered cognitive architecture:

</details>

### Active (v2.1 Multi-Agent Ecosystem)

**OpenCode Plugin**
- [ ] Query commands (/memory-search, /memory-recent, /memory-context)
- [ ] Event capture (conversation events to daemon)
- [ ] Navigator agent for complex queries

**Gemini CLI Adapter**
- [ ] Hook handler for Gemini CLI events
- [ ] Event capture to daemon
- [ ] Plugin/skill equivalent for queries
### Active (v2.2 Production Hardening)

**GitHub Copilot CLI Adapter**
- [ ] Hook handler for Copilot CLI events
- [ ] Event capture to daemon
- [ ] Plugin/skill equivalent for queries
**E2E Testing**
- [ ] Full pipeline E2E tests (ingest β†’ TOC β†’ grips β†’ query β†’ results)
- [ ] E2E tests run in CI (GitHub Actions)

**Cross-Agent Memory Sharing**
- [ ] Agent-tagged events (source agent in metadata)
- [ ] Unified query (see all agents by default)
- [ ] Filter-by-agent option for scoped queries
**Tech Debt Cleanup**
- [ ] Wire GetRankingStatus, PruneVectorIndex, PruneBm25Index stub RPCs
- [ ] Fix session_count in ListAgents (event scanning, not TOC-only)
- [ ] Add agent field to TeleportResult and VectorTeleportMatch
- [ ] CI/CD pipeline improvements

**Deferred (v2.2+)**
- Automated E2E tests in CI
**Deferred (future)**
- Performance benchmarks
- Cross-project unified memory

### Out of Scope

Expand Down Expand Up @@ -242,6 +251,12 @@ CLI client and agent skill query the daemon. Agent receives TOC navigation tools
| Local embeddings | all-MiniLM-L6-v2 via Candle; no API dependency | βœ“ Validated v2.0 |
| Graceful degradation | Tier detection enables fallback chains | βœ“ Validated v2.0 |
| Skills as control plane | Skills decide how to use layers; layers are passive | βœ“ Validated v2.0 |
| Adapter-per-agent plugins | Each agent gets its own plugin dir with native format | βœ“ Validated v2.1 |
| Fail-open shell hooks | trap ERR EXIT, background processes, exit 0 always | βœ“ Validated v2.1 |
| Agent field via serde(default) | Backward-compatible JSON parsing for agent tags | βœ“ Validated v2.1 |
| O(k) agent discovery | Aggregate from TocNode.contributing_agents, not O(n) events | βœ“ Validated v2.1 |
| CLOD as internal format | TOML-based portable command definition, not external standard | βœ“ Validated v2.1 |
| Skills portable across agents | Same SKILL.md works in Claude/OpenCode/Copilot | βœ“ Validated v2.1 |

---
*Last updated: 2026-02-08 after v2.1 milestone initialization*
*Last updated: 2026-02-10 after v2.2 milestone initialization*
Loading