You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -121,9 +131,10 @@ claude --plugin-dir ./apps/hook
121
131
|`PLANNOTATOR_SHARE`| Set to `disabled` to turn off URL sharing entirely. Default: enabled. |
122
132
|`PLANNOTATOR_SHARE_URL`| Custom base URL for share links (self-hosted portal). Default: `https://share.plannotator.ai`. |
123
133
|`PLANNOTATOR_PASTE_URL`| Base URL of the paste service API for short URL sharing. Default: `https://plannotator-paste.plannotator.workers.dev`. |
124
-
|`PLANNOTATOR_ORIGIN`| Explicit agent-origin override at the top of the detection chain. Valid values: `claude-code`, `opencode`, `codex`, `copilot-cli`, `gemini-cli`. Invalid values silently fall through to env-based detection. Unset by default. |
134
+
|`PLANNOTATOR_ORIGIN`| Explicit agent-origin override at the top of the detection chain. Valid values: `claude-code`, `amp`, `droid`, `opencode`, `codex`, `copilot-cli`, `gemini-cli`, `kiro-cli`, `pi`. Invalid values silently fall through to env-based detection. Unset by default. |
125
135
|`PLANNOTATOR_JINA`| Set to `0` / `false` to disable Jina Reader for URL annotation, or `1` / `true` to enable. Default: enabled. Can also be set via `~/.plannotator/config.json` (`{ "jina": false }`) or per-invocation via `--no-jina`. |
126
136
|`JINA_API_KEY`| Optional Jina Reader API key for higher rate limits (500 RPM vs 20 RPM unauthenticated). Free keys include 10M tokens. |
137
+
|`PLANNOTATOR_DATA_DIR`| Override the base data directory. Supports `~` expansion. Default: `~/.plannotator`. All data (plans, history, drafts, config, hooks, sessions, debug logs, IPC registry) is stored under this directory. |
127
138
|`PLANNOTATOR_VERIFY_ATTESTATION`|**Read by the install scripts only**, not by the runtime binary. Set to `1` / `true` to have `scripts/install.sh` / `install.ps1` / `install.cmd` run `gh attestation verify` on every install. Off by default. Can also be set persistently via `~/.plannotator/config.json` (`{ "verifyAttestation": true }`) or per-invocation via `--verify-attestation`. Requires `gh` installed and authenticated. |
128
139
129
140
**Config-only settings (`~/.plannotator/config.json`)**: Some settings have no env-var equivalent and are toggled by editing the config file directly:
@@ -173,6 +184,23 @@ Send Feedback → feedback sent to agent session
173
184
Approve → "LGTM" sent to agent session
174
185
```
175
186
187
+
## Ask AI Provider Defaults
188
+
189
+
Ask AI providers are detected independently from installed/authenticated local CLIs, then the UI picks a default from the detected Plannotator origin. The mapping lives in `packages/shared/agents.ts` and is applied by `packages/ui/utils/aiProvider.ts`:
190
+
191
+
| Origin | Preferred Ask AI provider |
192
+
|--------|---------------------------|
193
+
|`claude-code`|`claude-agent-sdk`|
194
+
|`amp`| no dedicated provider; fallback to saved/server default |
195
+
|`droid`| no dedicated provider; fallback to saved/server default |
196
+
|`codex`|`codex-sdk`|
197
+
|`opencode`|`opencode-sdk`|
198
+
|`pi`|`pi-sdk`|
199
+
|`copilot-cli`| no dedicated provider; fallback to saved/server default |
200
+
|`gemini-cli`| no dedicated provider; fallback to saved/server default |
201
+
202
+
Per-origin choices are persisted in cookies, so a user can override the automatic match for one agent without changing the default for another.
203
+
176
204
## Annotate Flow
177
205
178
206
```
@@ -235,6 +263,12 @@ During normal plan review, an Archive sidebar tab provides the same browsing via
235
263
|`/api/draft`| GET/POST/DELETE | Auto-save annotation drafts to survive server crashes |
236
264
|`/api/editor-annotations`| GET | List editor annotations (VS Code only) |
237
265
|`/api/editor-annotation`| POST/DELETE | Add or remove an editor annotation (VS Code only) |
266
+
|`/api/ai/capabilities`| GET | Check if AI features are available |
267
+
|`/api/ai/session`| POST | Create or fork an AI session |
268
+
|`/api/ai/query`| POST | Send a message and stream the response (SSE) |
269
+
|`/api/ai/abort`| POST | Abort the current query |
270
+
|`/api/ai/permission`| POST | Respond to a permission request |
271
+
|`/api/ai/sessions`| GET | List active sessions |
238
272
|`/api/external-annotations/stream`| GET | SSE stream for real-time external annotations |
239
273
|`/api/external-annotations`| GET | Snapshot of external annotations (polling fallback, `?since=N` for version gating) |
240
274
|`/api/external-annotations`| POST | Add external annotations (single or batch `{ annotations: [...] }`) |
@@ -293,6 +327,12 @@ During normal plan review, an Archive sidebar tab provides the same browsing via
293
327
|`/api/doc`| GET | Serve linked .md/.mdx/.html file or code file (`?path=<path>&base=<dir>`) |
0 commit comments