Getting Started

Install Soma, run your first session, understand the basics.

Install

npm install -g meetsoma

First Run

cd your-project
soma

On first run, Soma will ask to create a .soma/ directory. Say yes. She’ll write her own identity based on your workspace.

Session Modes

Fresh Session

soma

Starts clean. Loads identity only. No replay of previous context.

Resume Session

soma --continue
# or
soma -c

Resumes the last session. Loads identity + preload (what happened, what’s next).

Select a Session

soma --resume
# or
soma -r

Pick from previous sessions to resume.

Commands

CommandWhat it does
/exhaleSave state, write preload for next session (alias: /flush)
/inhaleStart fresh — reload identity + protocols without restarting
/pin <name>Pin a protocol/muscle to hot (stays loaded)
/kill <name>Kill a protocol/muscle (drops to cold)
/soma statusShow memory status (identity, preload, muscles, protocols)
/soma initCreate .soma/ in current directory
/preloadList available preload files
/statusShow session stats (context %, turns, uptime)
/auto-continueCreate new session with continuation preload

The .soma/ Directory

Created by soma init or on first run:

.soma/
├── identity.md              ← who Soma becomes (discovered through use)
├── STATE.md                 ← project architecture truth
├── settings.json            ← configurable thresholds (optional)
├── protocols/               ← behavioral rules (heat-tracked)
├── memory/
│   ├── muscles/             ← patterns learned from experience
│   ├── preload-next.md      ← continuation for next session
│   └── sessions/            ← daily logs
└── scripts/                 ← dev tooling (search, scan, etc.)

What’s Private vs Public

If you’re using Soma in a public repo:

  • Ships with repo: .soma/STATE.md, .soma/skills/
  • Gitignored (private): .soma/identity.md, .soma/memory/, .soma/sessions/

Templates ship. Instances don’t.

Tips

  • Let identity grow — don’t pre-write it. Let Soma discover who she becomes through your work.
  • Trust the breath — don’t worry about context limits. Soma flushes and continues automatically.
  • Read muscles — check .soma/memory/muscles/ to see what patterns Soma has learned.