lauren-framework/lauren-ai/conversation-memory
Claude Code and agent skill by lauren-framework/lauren-ai
- community
Checking that the SKILL.md file is still in the repository.
Adds persistent multi-turn conversation history to agents using InMemoryConversationStore and ShortTermMemory sliding window. Use when an agent must remember prior turns within or across sessions, implementing sliding-window trimming to fit token budgets, or storing conversation history keyed by session/user ID.
Install
npx vskill@latest install lauren-framework/lauren-ai/conversation-memorySKILL.md
The same SKILL.md was published earlier as lauren-framework/lauren-ai/conversation-memory.
Usecodemap find "SymbolName"to locate any symbol before reading — it givesexact file + line range and is faster than grep across the whole repo.
Conversation Memory
Memory tiers at a glance
| Tier | Class | Scope | Notes | |
|---|---|---|---|---|
| In-run buffer | ShortTermMemory | Single runner.run() call | Automatic, no config needed | |
| Cross-run history | InMemoryConversationStore | Session (conversation_id) | Persists across calls |
Short-term memory (sliding window)
Pass memory=ShortTermMemory(max_tokens=N) to @agent() to share a buffer across runs or shrink the rolling window. Without this, each run() starts fresh.
The runner trims the oldest non-system messages automatically when token_estimate exceeds max_tokens.
Conversation store (cross-session history)
InMemoryConversationStore persists the full message exchange keyed by a conversation_id string. Pass it to @agent(conversation_store=...) and supply conversation_id on each runner.run() call.
Running with a conversation ID
Without conversation_id, the store is not consulted and history is not saved.
Per-request overrides
Pass memory= or conversation_store= directly to runner.run() to override the agent-level configuration for a single run:
Implementing a custom persistent store
Implement the ConversationStore protocol (two async methods):
Testing
Use AgentTestClient for integration testing. Queue two responses and verify the second call's messages include prior turns.
Reference
lauren_ai._memory:ShortTermMemory,ConversationStore,InMemoryConversationStorelauren_ai._memory._stores:InMemoryConversationStore- Skills:
managing-memory,long-term-vector-memory,conversation-state-db
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/conversation-memory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lauren-framework/lauren-ai/conversation-memory)