Skip to content

feat(memory): MCP memory_note + memory stats (0.18.0)#35

Merged
Shahinyanm merged 1 commit into
mainfrom
feat/memory-p3-consolidation
Jun 12, 2026
Merged

feat(memory): MCP memory_note + memory stats (0.18.0)#35
Shahinyanm merged 1 commit into
mainfrom
feat/memory-p3-consolidation

Conversation

@Shahinyanm

Copy link
Copy Markdown
Member

What

  • MCP memory_note: the agent records a durable user preference / standing fact itself (delegates to memory::add_preference) — it learns how you work over time, not just when you type remember. De-duplicated; injected into every future session.
  • stats memory metrics: global cross-project recall index size + preference count.

Deferred (honestly, not lazily)

  • Consolidation (episodic → semantic/procedural facts): a good version needs the offline LLM backend for quality; a pure heuristic would manufacture noise. Tracked as a focused follow-up.
  • claude-mem/mem0 import: awaits their on-disk format + sample data rather than being guessed at.

Tests

stats surfaces the preference count (CLI); add_preference covered in core; the MCP tool is a thin delegate. Clean on default and --no-default-features. (Pre-existing WSL-only project_hash test failure unrelated; green in CI.)

🤖 Generated with Claude Code

- tj-mcp: new `memory_note` tool — the agent records a durable user
  preference / standing fact itself (delegates to memory::add_preference),
  so the journal learns how the user works without manual CLI calls. Adds
  chrono to tj-mcp for the timestamp.
- tj-cli: `stats` now reports the global memory state — cross-project recall
  index size and preference count.

Tests: stats surfaces preference count (CLI); add_preference covered in core;
MCP wrapper is a thin delegate. Clean on default and --no-default-features.

Consolidation (episodic -> semantic/procedural facts) is deferred on purpose:
quality needs the offline LLM backend, and a heuristic would manufacture
noise. claude-mem/mem0 import awaits their format + samples. Both tracked,
not guessed at.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Shahinyanm Shahinyanm merged commit 274114b into main Jun 12, 2026
7 checks passed
@Shahinyanm Shahinyanm deleted the feat/memory-p3-consolidation branch June 12, 2026 16:20
@Shahinyanm Shahinyanm restored the feat/memory-p3-consolidation branch June 13, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant