~/.codearchitect/sessions/. Creates a topic-named folder with summary.md and full.md files for better organization.
Recommended workflow: Export chat from Cursor/VS Code to ~/.codearchitect/exports/, then call store_session without parameters - it will auto-detect the export file.
Parameters
Optional. Conversation text or JSON array of messages. If not provided, tool automatically looks for export file in
~/.codearchitect/exports/.Optional. Pattern to match specific export file (case-insensitive). Example:
"resolve_mcp" matches cursor_resolve_mcp_configuration_issues.md or auth-implementation.json. If not provided, uses newest export file (modified in last 10 minutes).Optional session topic. Auto-extracted if not provided.
"plain" for text, "messages" for JSON array. Default: "plain".Optional. Project directory path. If specified, saves to BOTH main folder (
~/.codearchitect/sessions/) AND project folder (project/.codearchitect/sessions/). Always saves to main folder first.Response
Success
Always
true.Full path to
summary.md file in topic folder.Full path to
full.md file in topic folder.Topic folder name (e.g.,
authentication-implementation).Final topic used.
ISO date string.
Success message indicating folder location.
Error
Always
false.Error code (see below).
Human-readable error message.
Error Codes
| Code | Description |
|---|---|
NO_CONVERSATION_OR_EXPORT | No conversation provided and no recent export file found |
INVALID_INPUT | Missing or invalid conversation |
FILE_WRITE_ERROR | Cannot write file |
DIRECTORY_CREATION_ERROR | Cannot create directory |
UNKNOWN_ERROR | Unexpected error |
Examples
Using Export File (Recommended)
- Export chat from Cursor/VS Code to
~/.codearchitect/exports/ - Call
store_sessionwithout parameters - Tool auto-detects and processes export file
With Explicit Topic
With Direct Conversation
Storage Structure
Sessions are stored in topic-named folders with two files: Main location (always):~/.codearchitect/sessions/
- Windows:
C:\Users\YourName\.codearchitect\sessions\ - Linux/Mac:
~/.codearchitect/sessions/
project/.codearchitect/sessions/ (if projectDir specified)
Folder naming:
- Topic-based folder names (e.g.,
authentication-implementation) - Redundant suffixes automatically removed (
-summary,-session,-conversation,-chat) - Auto-numbered if folder name collision occurs
summary.md: Quick summary with key points and detailed request/response pairsfull.md: Complete conversation as JSON (TOON-optimized) + human-readable format
Limits
- Conversation size: Max 10MB (truncated to 1MB)
- Topic length: Max 100 chars (folder name sanitized)
- Folder collisions: Auto-numbered up to 1000 attempts
Storage Behavior
Main folder (always):~/.codearchitect/sessions/
- Always saves here regardless of other settings
- Reliable location that works across all projects
project/.codearchitect/sessions/
- Only if
projectDirparameter is explicitly provided - Saves to both main folder AND project folder
~/.codearchitect/exports/
- Tool automatically looks here for export files
- Supports both Cursor (
.md) and VS Code (.json) formats