Copy-paste configs and workflow templates.
~/.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?"
// .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"]
}
}
}
# 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
# 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"
)
# 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