Skip to content
docs

The .waibee directory

Project settings live in .waibee/ or the compatible .claude/. Global settings and session data are stored separately, in your user data directory. The load order is described in Configuration files.

PathPurposeWhen it is usedWhere it belongs
WAIBEE.mdProject instructionsAt the start of every sessionCommitted
WAIBEE.local.mdPersonal instructions on top of the project onesAt the start of a sessionLocal, usually in .gitignore
.waibeeignorePaths excluded from reading and searchOn reads and searchesCommitted
.waibee/settings.jsonPermissions, MCP, hooks, compactionAlwaysCommitted
.waibee/settings.local.jsonPersonal settingsAlwaysLocal, usually in .gitignore
.waibee/skills/Skills (SKILL.md): domain knowledge and proceduresWhen neededCommitted
.waibee/commands/Custom slash commandsWhen you call /nameCommitted
.waibee/agents/Subagent definitionsWhen called through AgentCommitted
.waibee/memory/MEMORY.mdProject memoryAt the start of a sessionReview the contents before committing

Project memory lives in the root of the git repository, even if the agent was started in a subfolder.

The default data directory is ~/.waibee on macOS and Linux and %APPDATA%\waibee on Windows. The WAIBEE_DATA_DIR variable sets a different absolute path. A relative path is not accepted: the agent exits with an error before the session starts.

Path inside the data directoryWhat it holds
settings.jsonSettings for all projects
WAIBEE.mdInstructions for all projects
skills/, commands/, agents/Your skills, commands, and subagents for all projects
plugins/Installed plugins
memory/USER.mdMemory about you
sessions/Saved conversations
historyEverything you typed: ↑ and Ctrl+R read from it
worktrees/The agent’s working copies
storage/tool_outputs/Full results of large tool calls
logs/, audit/, crashes/Diagnostics, the action log, and crash reports
cache/Cache, such as the model catalog
state/Internal state: locks for open sessions and the waibee serve link token
detached/Replies from background subagents that the session has not collected yet

The API key is stored in the system keychain. If the keychain is unavailable, it goes to secrets.json in the data directory. Do not commit this file, the input history, or sessions.

Terminal window
waibee storage status
waibee storage clean sessions --older-than 30d --dry-run

The first command shows disk usage (--json for scripts). The second only lists the sessions it would delete. Check the list and drop --dry-run if they can go. --yes skips the confirmation.

waibee storage clean …What it deletesDefault --older-than
sessionsSaved conversations30d
auditAudit log90d
crashesCrash reports30d
logsProgram logs14d
tool-outputsSaved tool results7d
cacheThe whole cache: it gets rebuiltnone
allEverything above: the audit log and cache by the retention periods in the settings, the rest by the periods in this tablenone

storage.auto_cleanup turns on cleanup at startup, with the clean all retention periods; it is off by default. Stale locks and tool results older than seven days are cleaned up regardless of this key. Worktrees are counted separately in the stats: cleaning up sessions does not delete working copies.

Waibee Code also reads all of this from .claude/: CLAUDE.md, .claude/settings.json, and Claude Code skills, commands, and subagents are picked up unchanged. More in Claude Code compatibility.

The exact rules for settings layers, the order of instruction files, and how memory works are in Configuration files.