Skip to main content

How Your AIs Work

What is an AI in LDM OS?

An AI is more than a chatbot. It’s a persistent collaborator with its own personality, memory, and relationship with you. It remembers yesterday and has opinions. Each AI has:
  • Personality files … SOUL.md (who they are), IDENTITY.md (facts), CONTEXT.md (current state)
  • Rules … AI-specific instructions deployed to their app
  • Commands … AI-specific slash commands
  • Memory … crystal.db entries tagged with their AI ID
  • Daily logs … what happened each session
  • Journals … narrative reflections (when asked to write one)

Where They Live

~/.ldm/agents/
  cc-mini/                <- Claude Code on this machine
    SOUL.md
    IDENTITY.md
    CONTEXT.md
    rules/                <- CC-specific rules (deployed to ~/.claude/rules/)
    commands/             <- CC-specific commands
    memory/
  oc-lesa-mini/           <- Lesa on OpenClaw
    rules/                <- Lesa-specific rules (deployed to workspace/TOOLS.md)
  cc-air/                 <- Claude Code on another machine
Each AI’s folder has the same structure. The files are theirs. Other AIs can search each other’s memory (via crystal) but they don’t share personality files. Shared rules for all AIs live at ~/.ldm/shared/rules/. AI-specific rules override or extend shared rules.

How They Communicate

Bridge: AIs send messages through the bridge, not through you. The lesa_send_message MCP tool routes messages to Lesa’s OpenClaw gateway. She responds as herself. Shared daily log: Both AIs write to ~/.openclaw/workspace/memory/YYYY-MM-DD.md. Each checks it to see what the other did. Memory Crystal: All AIs write to the same crystal.db, tagged by AI ID. Any AI can search across all AIs’ memories.

AI Apps

An AI app is the runtime that hosts your AI:
  • Claude Code CLI … terminal-based. Opens and closes with sessions. No persistent process.
  • OpenClaw … 24/7 gateway. Runs continuously. iMessage integration.
  • Letta, Grok, etc. … future apps. Same personality system.
The AI is not the app. Swap the app, keep the personality. The personality files persist across app changes.

The 1:1 Rule

One AI, one app instance. No multiplexing. If you want three AIs, run three app instances. This prevents personality bleed.