lauren-framework/lauren-ai/agent-session-isolation
Claude Code and agent skill by lauren-framework/lauren-ai
- community
Checking that the SKILL.md file is still in the repository.
Implements per-tenant and per-user session isolation for agent conversations using namespaced conversation IDs. Use when building multi-tenant applications where different users or tenants must have fully isolated conversation histories that cannot bleed into each other.
Install
npx vskill@latest install lauren-framework/lauren-ai/agent-session-isolationSKILL.md
The same SKILL.md was published earlier as lauren-framework/lauren-ai/agent-session-isolation.
Usecodemap find "SymbolName"to locate any symbol before reading — it givesexact file + line range and is faster than grep across the whole repo.
Agent Session Isolation per User / Tenant
Overview
TenantIsolatedAgentRunner wraps AgentRunnerBase and prefixes every conversation_id with "{tenant_id}:{user_id}". Each tenant gets its own InMemoryConversationStore so histories cannot cross tenant boundaries.
Implementation
Why this is safe
conversation_id = f"{tenant_id}:{user_id}"ensures thatuser123in
tenant_a and user123 in tenant_b have different keys.
- Each tenant has its own
InMemoryConversationStoredict — there is no
shared mutable state.
- Switching to a Redis-backed store in production only requires replacing
InMemoryConversationStore with a RedisConversationStore.
Per-user isolation without multi-tenancy
When you only need user isolation (not tenant isolation), use the user ID directly as the conversation_id:
Each user's messages are stored under their own key in the same store.
Attaching to a Lauren controller
Reference files
| File | Contents | |
|---|---|---|
src/lauren_ai/_memory/_stores.py | InMemoryConversationStore | |
src/lauren_ai/_agents/_runner.py | run(conversation_id=, conversation_store=) |
Security
- Security scanPassed, 95 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/agent-session-isolation/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/agent-session-isolation)