agentmemory
agentmemory copied to clipboard
docs: memory_lesson_save MCP tool exists but is completely undocumented (confidence, decay, reinforcement lifecycle)
Description
The memory_lesson_save MCP tool exists and is functional — it accepts confidence, content, context, project, tags parameters and provides a full lesson lifecycle (confidence scoring, decay rate, automatic reinforcement on duplicate content). However, it is not listed in the README tool inventory, the AGENTS.md template, or any documentation.
The only documented way to save a lesson is via memory_save with type: "pattern", which lacks the dedicated lesson lifecycle features (confidence decay, reinforcement counting, automatic decay sweep).
Impact
- AI agents following the documentation use
memory_savewithtype: "pattern"instead ofmemory_lesson_save, losing confidence scoring and decay features - Users don't know the lesson lifecycle system exists
- The undocumented state encourages workarounds that bypass the built-in lesson infrastructure
Evidence
- Tool description from the MCP/plugin interface: "Save a lesson learned from this session. Lessons have confidence scores that strengthen when reinforced and decay when not used. Duplicate content auto-strengthens the existing lesson."
- Parameters:
confidence(0.0-1.0),content,context,project,tags - README only shows
memory_saveas the lesson persistence mechanism - AGENTS.md in project templates only references
memory_savefor lessons
To Reproduce
- Query available MCP tools (e.g. via
mcp::tools::listor plugin tool listing) memory_lesson_saveappears with full lesson lifecycle parameters- Search the README and docs for "lesson_save" — no results
- Only
memory_saveis documented as the lesson-saving mechanism
Expected
memory_lesson_saveshould be listed in the MCP tool inventory in the README- Documentation should explain when to use
memory_lesson_savevsmemory_savefor lessons - The AGENTS.md template should reference the correct tool
Environment
@agentmemory/agentmemoryversion: as shown bynpm view @agentmemory/agentmemory version- Server status: healthy (
curl http://localhost:3111/agentmemory/healthreturns{"status":"healthy"}) - Agent: OpenCode with agentmemory plugin
Notes
Related existing issues about lesson visibility/documentation:
- #274 Lessons not created in flow-compress, consolidate, and consolidation-pipeline
- #457 Lessons not auto-injected into agent context
- #473 fix(visibility): surface lessons in smart-search
None of these cover
memory_lesson_savebeing undocumented as an MCP tool.