aboutsummaryrefslogtreecommitdiffstats
path: root/CLAUDE.md
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-28 20:07:05 -0800
committerbndw <ben@bdw.to>2026-02-28 20:07:05 -0800
commit9d192d16b7a4026b35ad2bcaff9edb9f2670de2b (patch)
tree2603dd04c3567074e84be271c448ede02ee7097d /CLAUDE.md
parent283013c09d4855529e846951a1e090f0f16030a8 (diff)
feat: git branches
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index e54032e..d2e968a 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -45,9 +45,19 @@ All renderer→main communication goes through named IPC channels registered in
45### Database 45### Database
46SQLite at `app.getPath("userData")/claude-flow.db`. Tables: `projects`, `sessions`, `messages`. Foreign keys ON, WAL mode enabled. 46SQLite at `app.getPath("userData")/claude-flow.db`. Tables: `projects`, `sessions`, `messages`. Foreign keys ON, WAL mode enabled.
47 47
48Schema migrations: `db/index.ts::getDb()` calls `initSchema()` which uses `CREATE TABLE IF NOT EXISTS`. **New columns require explicit `ALTER TABLE` migration** run after `initSchema()`.
49
50### SDK Permission Modes
51`PermissionMode` values: `'default' | 'acceptEdits' | 'bypassPermissions' | 'plan' | 'dontAsk'`
52
53**Known bug**: `permissionMode: 'bypassPermissions'` requires a companion flag `allowDangerouslySkipPermissions: true` in the `query()` options. This flag is currently missing from `claude/index.ts`.
54
55`allowedTools: string[]` in the SDK maps to Claude Code's `--allowedTools` CLI flag and supports patterns like `'Bash(git *)'` to auto-allow only specific Bash command forms.
56
48## Important Notes 57## Important Notes
49 58
50- `ANTHROPIC_API_KEY` env var must be set before launching 59- `ANTHROPIC_API_KEY` env var must be set before launching
51- Artifacts are stored in `.claude-flow/sessions/` inside the target project 60- Artifacts are stored in `.claude-flow/sessions/` inside the target project
52- `bypassPermissions` mode is a user-controlled toggle in implement phase only 61- `bypassPermissions` mode is a user-controlled toggle in implement phase only
53- Token usage (from `SDKResultMessage.usage`) is displayed in the ActionBar 62- Token usage (from `SDKResultMessage.usage`) is displayed in the ActionBar
63- No git library in dependencies — use Node.js `child_process` (built-in) for git operations