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.
In the project
Section titled “In the project”| Path | Purpose | When it is used | Where it belongs |
|---|---|---|---|
WAIBEE.md | Project instructions | At the start of every session | Committed |
WAIBEE.local.md | Personal instructions on top of the project ones | At the start of a session | Local, usually in .gitignore |
.waibeeignore | Paths excluded from reading and search | On reads and searches | Committed |
.waibee/settings.json | Permissions, MCP, hooks, compaction | Always | Committed |
.waibee/settings.local.json | Personal settings | Always | Local, usually in .gitignore |
.waibee/skills/ | Skills (SKILL.md): domain knowledge and procedures | When needed | Committed |
.waibee/commands/ | Custom slash commands | When you call /name | Committed |
.waibee/agents/ | Subagent definitions | When called through Agent | Committed |
.waibee/memory/MEMORY.md | Project memory | At the start of a session | Review the contents before committing |
Project memory lives in the root of the git repository, even if the agent was started in a subfolder.
Global
Section titled “Global”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 directory | What it holds |
|---|---|
settings.json | Settings for all projects |
WAIBEE.md | Instructions for all projects |
skills/, commands/, agents/ | Your skills, commands, and subagents for all projects |
plugins/ | Installed plugins |
memory/USER.md | Memory about you |
sessions/ | Saved conversations |
history | Everything 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.
Disk space
Section titled “Disk space”waibee storage statuswaibee storage clean sessions --older-than 30d --dry-runThe 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 deletes | Default --older-than |
|---|---|---|
sessions | Saved conversations | 30d |
audit | Audit log | 90d |
crashes | Crash reports | 30d |
logs | Program logs | 14d |
tool-outputs | Saved tool results | 7d |
cache | The whole cache: it gets rebuilt | none |
all | Everything above: the audit log and cache by the retention periods in the settings, the rest by the periods in this table | none |
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.
Claude Code compatibility
Section titled “Claude Code compatibility”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.