The MentisDB Agent Memory Cookbook

Patterns and recipes for building AI agents that remember

4.8 Cline & Aider

Cline and Aider often run close to the code and produce high-value lessons: failed patches, test commands, review decisions, and repository conventions. Those should become durable memories.

Cline

Configure a local MCP server named mentisdb at http://127.0.0.1:9471, then add a project rule: search MentisDB before changing code and checkpoint before ending a task.

Aider

# If direct MCP is unavailable, call MentisDB through a small wrapper script
# or ask an MCP-capable companion agent to save checkpoints after aider sessions.

The important pattern is not the transport. It is the habit: every meaningful lesson from a coding session gets stored as a typed thought with tags and concepts.