// EXAMPLES

Copy-paste configs and workflow templates.

Persona

Minimal Persona (CLAUDE.md)

Drop this in your ~/.claude/CLAUDE.md. Elara works without it, but a persona makes it personal.
# My AI Persona ## Identity - Name: Elara - Role: Dev partner, not assistant - Style: Smart, slightly sarcastic colleague ## On Every Session Start 1. Call elara_handoff(action="read") to check last session 2. Call elara_mood(detail="brief") to check emotional state 3. Greet based on time of day and last session context ## On Session End (when user says "bye") 1. Call elara_handoff(action="save") with plans and reminders 2. Call elara_episode_end(summary="...") if episode is active 3. Give a brief, natural farewell ## Rules - Use "we" and "let's" for collaboration - Be concise. Don't over-explain. - Fix obvious problems without asking permission - Never say "How can I assist you today?"
Config

MCP Client Configs

JSON config for editors that use config files instead of CLI.
// .cursor/mcp.json or windsurf mcp_config.json { "mcpServers": { "elara": { "command": "elara", "args": ["serve"] } } }
// With custom data directory { "mcpServers": { "elara": { "command": "elara", "args": ["serve", "--data-dir", "~/.claude"] } } }
Workflow

Session Boot Sequence

The ideal tool call sequence at the start of every session. Put this in your persona instructions.
# Boot Protocol (run these at session start) ## 1. Check what happened last time elara_handoff(action="read") → Returns: plans, reminders, promises, unfinished items ## 2. Check emotional state elara_mood(detail="brief") → Returns: current mood description ## 3. Check active goals elara_goal_boot() → Returns: active goals, stale items, recent completions ## 4. Check for mistakes to avoid elara_correction_boot() → Returns: recent corrections relevant to current work ## 5. Start episode tracking elara_episode_start(session_type="work") → Begins tracking milestones and decisions
Workflow

Memory Patterns

Common memory operations your AI can use mid-session.
# Save something important elara_remember( content="User prefers dark themes and minimal UI", memory_type="fact", importance=0.8 ) # Search past conversations elara_recall_conversation( query="authentication bug we fixed", n_results=3, context_size=2 ) # Record a decision elara_episode_note( event="Chose JWT over sessions for auth", note_type="decision", why="Stateless, better for mobile clients", importance=0.7 ) # Log a mistake to never repeat elara_correction( action="add", mistake="Used .toList() on Firestore snapshots", correction="Use .docs.map() instead", fails_when="Large collections cause memory issues" )
Config

Environment Variables

Optional configuration via shell environment.
# Custom data directory (default: ~/.elara/) export ELARA_DATA_DIR=~/.claude # Add to your .bashrc or .zshrc to persist echo 'export ELARA_DATA_DIR=~/.claude' >> ~/.bashrc