@andorra-labs/code 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +56 -0
  4. package/dist/src/app-server/protocol.d.ts +109 -1
  5. package/dist/src/app-server/protocol.js +8 -1
  6. package/dist/src/app-server.d.ts +59 -1
  7. package/dist/src/app-server.js +418 -63
  8. package/dist/src/auth/index.d.ts +1 -1
  9. package/dist/src/auth/index.js +1 -1
  10. package/dist/src/auth/store.d.ts +17 -1
  11. package/dist/src/auth/store.js +25 -2
  12. package/dist/src/automation-service.js +1 -1
  13. package/dist/src/browser-session.d.ts +8 -0
  14. package/dist/src/browser-session.js +27 -1
  15. package/dist/src/browser-ui/app.js +255 -33
  16. package/dist/src/browser-ui/index.html +9 -9
  17. package/dist/src/browser-ui/style.css +110 -65
  18. package/dist/src/browser-ui/tokens.css +27 -26
  19. package/dist/src/cli.js +10 -5
  20. package/dist/src/coding-tools.d.ts +24 -0
  21. package/dist/src/coding-tools.js +71 -8
  22. package/dist/src/command-screens.js +1 -1
  23. package/dist/src/commands.d.ts +1 -1
  24. package/dist/src/commands.js +2 -2
  25. package/dist/src/completion-gates.d.ts +42 -7
  26. package/dist/src/completion-gates.js +55 -9
  27. package/dist/src/completion.d.ts +9 -1
  28. package/dist/src/completion.js +20 -2
  29. package/dist/src/dashboard-view.js +2 -2
  30. package/dist/src/deadline.js +4 -0
  31. package/dist/src/decision/checks.js +1 -1
  32. package/dist/src/file-diff.d.ts +105 -0
  33. package/dist/src/file-diff.js +244 -0
  34. package/dist/src/graph-manager-chat.js +4 -4
  35. package/dist/src/graph-runner.js +39 -2
  36. package/dist/src/graph-sync.d.ts +8 -0
  37. package/dist/src/graph-sync.js +54 -3
  38. package/dist/src/graph-tool.js +1 -1
  39. package/dist/src/graph-ui/app.js +303 -129
  40. package/dist/src/graph-ui/controls.css +43 -22
  41. package/dist/src/graph-ui/controls.js +31 -1
  42. package/dist/src/graph-ui/embed.js +56 -7
  43. package/dist/src/graph-ui/icons.js +5 -0
  44. package/dist/src/graph-ui/index.html +3 -3
  45. package/dist/src/graph-ui/manager-state.js +2 -2
  46. package/dist/src/graph-ui/manager.css +19 -18
  47. package/dist/src/graph-ui/manager.js +5 -5
  48. package/dist/src/graph-ui/skill-picker.js +5 -5
  49. package/dist/src/graph-ui/studio-canvas.js +16 -16
  50. package/dist/src/graph-ui/studio.css +18 -15
  51. package/dist/src/graph-ui/studio.js +99 -42
  52. package/dist/src/graph-ui/style.css +125 -80
  53. package/dist/src/graph-ui/theme.js +2 -2
  54. package/dist/src/graph-ui/tokens.css +33 -29
  55. package/dist/src/graphs.d.ts +10 -3
  56. package/dist/src/graphs.js +15 -4
  57. package/dist/src/mcp.d.ts +75 -0
  58. package/dist/src/mcp.js +240 -8
  59. package/dist/src/membership-errors.d.ts +7 -1
  60. package/dist/src/membership-errors.js +9 -3
  61. package/dist/src/provider-keys.d.ts +5 -1
  62. package/dist/src/provider-keys.js +7 -3
  63. package/dist/src/provider-settings.d.ts +4 -1
  64. package/dist/src/provider-settings.js +46 -5
  65. package/dist/src/pull-requests.d.ts +42 -6
  66. package/dist/src/pull-requests.js +11 -3
  67. package/dist/src/qa/guidance.js +6 -19
  68. package/dist/src/qa/index.d.ts +0 -2
  69. package/dist/src/qa/index.js +0 -2
  70. package/dist/src/qa/profile/QaProfile.d.ts +5 -1
  71. package/dist/src/qa/profile/QaProfile.js +6 -2
  72. package/dist/src/qa/tools.d.ts +19 -1
  73. package/dist/src/qa/tools.js +20 -145
  74. package/dist/src/react-runtime.js +134 -16
  75. package/dist/src/read-document-doc.d.ts +20 -0
  76. package/dist/src/read-document-doc.js +524 -0
  77. package/dist/src/read-document-docx.d.ts +21 -0
  78. package/dist/src/read-document-docx.js +584 -0
  79. package/dist/src/read-document-text.d.ts +29 -0
  80. package/dist/src/read-document-text.js +67 -0
  81. package/dist/src/read-document-tool.d.ts +48 -0
  82. package/dist/src/read-document-tool.js +162 -0
  83. package/dist/src/read-document.d.ts +78 -0
  84. package/dist/src/read-document.js +353 -0
  85. package/dist/src/read-image.d.ts +29 -2
  86. package/dist/src/read-image.js +42 -17
  87. package/dist/src/remote/engine-pool.js +18 -6
  88. package/dist/src/runtime.d.ts +19 -0
  89. package/dist/src/runtime.js +10 -1
  90. package/dist/src/screen-selection.d.ts +38 -0
  91. package/dist/src/screen-selection.js +103 -0
  92. package/dist/src/session-changes.d.ts +122 -0
  93. package/dist/src/session-changes.js +804 -0
  94. package/dist/src/side-panel.d.ts +6 -1
  95. package/dist/src/side-panel.js +12 -10
  96. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  97. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  98. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  99. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  100. package/dist/src/skills/bundled/provenance.json +4 -4
  101. package/dist/src/skills/runtime-skills.js +3 -3
  102. package/dist/src/stall-recovery.d.ts +15 -0
  103. package/dist/src/stall-recovery.js +17 -0
  104. package/dist/src/telemetry/schema.d.ts +1 -1
  105. package/dist/src/telemetry/schema.js +1 -2
  106. package/dist/src/terminal-ui.d.ts +64 -20
  107. package/dist/src/terminal-ui.js +312 -82
  108. package/dist/src/time-limit.d.ts +53 -0
  109. package/dist/src/time-limit.js +79 -0
  110. package/dist/src/tool-diff-stats.d.ts +9 -0
  111. package/dist/src/tool-diff-stats.js +20 -0
  112. package/dist/src/tool-names.d.ts +1 -1
  113. package/dist/src/tool-result-filter.js +1 -1
  114. package/dist/src/tools.js +118 -9
  115. package/dist/src/transcript.d.ts +11 -0
  116. package/dist/src/transcript.js +15 -3
  117. package/dist/src/types.d.ts +12 -0
  118. package/dist/src/usage-analytics.d.ts +3 -1
  119. package/dist/src/usage-analytics.js +16 -2
  120. package/package.json +6 -26
  121. package/dist/src/qa/api/http-runner.d.ts +0 -3
  122. package/dist/src/qa/api/http-runner.js +0 -47
  123. package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
  124. package/dist/src/qa/git/ChangeDetector.js +0 -177
  125. package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
  126. package/dist/src/qa/git/DiffReviewer.js +0 -115
  127. package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
  128. package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
  129. package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
  130. package/dist/src/qa/orchestrator/MergeGate.js +0 -40
  131. package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
  132. package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
  133. package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
  134. package/dist/src/qa/runners/CommandRunner.js +0 -96
  135. package/dist/src/qa/runners/TestRunner.d.ts +0 -21
  136. package/dist/src/qa/runners/TestRunner.js +0 -66
  137. package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
  138. package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
  139. package/dist/src/qa/runtime-detect.d.ts +0 -10
  140. package/dist/src/qa/runtime-detect.js +0 -72
  141. package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
  142. package/dist/src/qa/security/DependencyScanner.js +0 -167
  143. package/dist/src/qa/security/SecretScanner.d.ts +0 -3
  144. package/dist/src/qa/security/SecretScanner.js +0 -55
  145. package/docs/README.md +0 -36
  146. package/docs/agents/README.md +0 -62
  147. package/docs/agents/install-for-agents.md +0 -56
  148. package/docs/agents/mcp-server.md +0 -212
  149. package/docs/agents/subagent-mode.md +0 -149
  150. package/docs/concepts/README.md +0 -47
  151. package/docs/concepts/jev-actionable-routing.md +0 -113
  152. package/docs/concepts/jev-decision-thresholds.md +0 -412
  153. package/docs/concepts/jev-efficiency.md +0 -217
  154. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  155. package/docs/concepts/limits.md +0 -52
  156. package/docs/concepts/memory.md +0 -10
  157. package/docs/concepts/security.md +0 -50
  158. package/docs/concepts/workspace-instructions.md +0 -29
  159. package/docs/getting-started/README.md +0 -82
  160. package/docs/getting-started/accounts.md +0 -78
  161. package/docs/getting-started/configure-providers.md +0 -132
  162. package/docs/guides/README.md +0 -13
  163. package/docs/guides/browser.md +0 -39
  164. package/docs/guides/desktop-app.md +0 -414
  165. package/docs/guides/extensions.md +0 -102
  166. package/docs/guides/graph-builder.md +0 -116
  167. package/docs/guides/headless.md +0 -46
  168. package/docs/guides/tui.md +0 -75
  169. package/docs/guides/update.md +0 -70
  170. package/docs/guides/web-search.md +0 -51
  171. package/docs/guides/windows-code-signing.md +0 -319
  172. package/docs/llms.txt +0 -45
  173. package/docs/reference/README.md +0 -7
  174. package/docs/reference/cli.md +0 -76
  175. package/docs/reference/config.md +0 -91
  176. package/docs/reference/slash-commands.md +0 -59
  177. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  178. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  179. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  180. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  181. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  182. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  183. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  184. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  185. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  186. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  187. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  188. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  189. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  190. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  191. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  192. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  193. package/scripts/jev-efficiency-eval.mjs +0 -187
  194. package/scripts/jev-efficiency-live.mjs +0 -193
  195. package/scripts/zcode-engine-replay.mjs +0 -223
  196. package/tests/agent-centric-mcp-test-plan.md +0 -208
  197. package/tests/analytics-settings-test-plan.md +0 -165
  198. package/tests/browser-cli-smoke.mjs +0 -276
  199. package/tests/browser-test-plan.md +0 -280
  200. package/tests/chat-side-panel-test-plan.md +0 -309
  201. package/tests/decision-engine-test-plan.md +0 -163
  202. package/tests/default-active-jev-test-plan.md +0 -85
  203. package/tests/harness-extensions-test-plan.md +0 -113
  204. package/tests/jev-all-decisions-test-plan.md +0 -156
  205. package/tests/jev-efficiency/criteria.json +0 -158
  206. package/tests/jev-efficiency/workloads.mjs +0 -242
  207. package/tests/jev-efficiency-test-plan.md +0 -198
  208. package/tests/permissions-sandbox-probe.mjs +0 -74
  209. package/tests/permissions-test-plan.md +0 -191
  210. package/tests/product-telemetry-test-plan.md +0 -536
  211. package/tests/thinking-stream-preview-test-plan.md +0 -136
  212. package/tests/zcode-react-engine-test-plan.md +0 -396
@@ -1,78 +0,0 @@
1
- # JEV A/B evaluation: 2026-11-01 start, 2026-11-02 completion
2
-
3
- The evaluation at commit `23565f1f` passed all 16 workload checks. JEV used 4.2% fewer input tokens but 7.9% more output tokens and one more model request. This is not evidence of a reliable token-efficiency improvement: only three of eight pairs used less input, and the aggregate reduction depends on the second service pair. No model turn was bypassed by JEV.
4
-
5
- ## Method and reproducibility
6
-
7
- Built a clean dedicated worktree at `23565f1f` on Windows with Node.js v24.13.1 and the configured GX10 OpenAI-compatible provider, model `glm-5.3-flash`. Used the real signed-in home required by the hosted decision service. `jevEnabled` was true and `efficiency` absent, so the JEV arm exercised shipped defaults; flag-only arms did not change configuration. Two repetitions rotate arm order and use fresh seeded workspaces.
8
-
9
- Commands run:
10
-
11
- ```text
12
- npm ci --ignore-scripts
13
- npm run build
14
- node dist/src/cli.js --version
15
- node dist/src/cli.js auth status
16
- node eval/jev-ab.mjs --arms jev,nojev --workloads greenfield,bugfix,investigate,service --reps 2 --set build-23565f1f --out <installation-checkout>/eval/results/2026-11-01 --json
17
- node --test eval/analyze.test.mjs
18
- ```
19
-
20
- The analyzer test file passed 7/7 tests with no skips; `git diff --check` passed. CLI version was 0.1.3; build passed and authentication reported signed in with paid membership. Raw artifacts remain local and gitignored in `eval/results/2026-11-01/`: `report.md`, `summary.json`, `INDEX.md`, `runs/build-23565f1f/`, and `trajectories/build-23565f1f/`. They contain provider/workspace data and are deliberately not published. Each row below maps to `<workload>-<arm>-r<rep>.json` and the corresponding `.run.jsonl` / `.trajectory.jsonl` files. See [suite instructions](../../eval/README.md).
21
-
22
- ## Validity and lifecycle limitations
23
-
24
- All 16 final records succeeded and passed their executable checks; no final records were excluded. Five discarded automatic attempts are outside these totals: one greenfield NOJEV health timeout; two investigate JEV provider-health failures; one service NOJEV infrastructure failure after two model requests (9,998 input and 28,729 output tokens); and one service NOJEV health failure. Thus the table measures successful retained cells, not the total cost of running the experiment. No cells were manually rerun to improve a result.
25
-
26
- Three service CLI processes remained alive after their graphs completed. Both repetition-zero service cells reached the suite's 25-minute process deadline, then passed the independent service checks. Two verified orphan console children of the JEV repetition-zero process were stopped during diagnosis, without releasing the CLI. The NOJEV repetition-one process tree was terminated after persisted graph success to release the runner; its check then passed. The final JEV service exited normally. Graph success and functional checks do not establish clean CLI shutdown. The generated report's wall seconds measure graph execution, not total CLI/suite elapsed time; no end-to-end latency improvement is claimed.
27
-
28
- Two repetitions are exploratory, not a statistically stable estimate. Provider-health instability, nondeterministic long responses, and tool-output differences further limit causal attribution. These runs do not benchmark the optional `jeveff` arm.
29
-
30
- ## Results
31
-
32
- | Workload | Rep | Arm | Requests | Input tokens | Output tokens | Check |
33
- |---|---:|---|---:|---:|---:|---|
34
- | greenfield | 0 | JEV | 7 | 168,082 | 20,593 | pass |
35
- | greenfield | 0 | NOJEV | 5 | 74,763 | 8,417 | pass |
36
- | greenfield | 1 | JEV | 7 | 180,653 | 22,881 | pass |
37
- | greenfield | 1 | NOJEV | 7 | 120,418 | 10,525 | pass |
38
- | bugfix | 0 | JEV | 10 | 130,514 | 5,221 | pass |
39
- | bugfix | 0 | NOJEV | 8 | 105,912 | 5,657 | pass |
40
- | bugfix | 1 | JEV | 8 | 122,227 | 9,734 | pass |
41
- | bugfix | 1 | NOJEV | 8 | 144,404 | 11,643 | pass |
42
- | investigate | 0 | JEV | 4 | 49,677 | 5,963 | pass |
43
- | investigate | 0 | NOJEV | 5 | 65,136 | 7,812 | pass |
44
- | investigate | 1 | JEV | 8 | 149,065 | 23,556 | pass |
45
- | investigate | 1 | NOJEV | 6 | 73,691 | 7,071 | pass |
46
- | service | 0 | JEV | 24 | 1,706,849 | 63,752 | pass |
47
- | service | 0 | NOJEV | 21 | 1,373,633 | 59,175 | pass |
48
- | service | 1 | JEV | 15 | 579,343 | 34,483 | pass |
49
- | service | 1 | NOJEV | 22 | 1,263,842 | 62,254 | pass |
50
-
51
- | Scope | Request delta | Input delta | Output delta |
52
- |---|---:|---:|---:|
53
- | All eight pairs | +1.2% | -4.2% | +7.9% |
54
- | Greenfield | +16.7% | +78.7% | +129.5% |
55
- | Bugfix | +12.5% | +1.0% | -13.6% |
56
- | Investigate | +9.1% | +43.2% | +98.3% |
57
- | Service | -9.3% | -13.3% | -19.1% |
58
-
59
- JEV totals: 83 requests, 3,086,410 input tokens, 186,183 output tokens, 2,456,051 cache-read tokens, 155 tools. NOJEV: 82 requests, 3,221,799 input, 172,554 output, 2,627,522 cache-read tokens, 129 tools. JEV used fewer requests in 2/8 pairs, less input in 3/8, and less output in 4/8. Both service and investigate reversed direction between repetitions; greenfield increased tokens in both. Cache reads are reported separately, not added to input or interpreted as a monetary saving. The OpenAI-compatible usage normalization in `src/providers.ts` treats prompt tokens as inclusive of cached tokens. Subtracting reported cache reads gives 630,359 uncached input tokens for JEV versus 594,277 for NOJEV (+6.1%). Thus lower total input did not mean less uncached input in this cohort.
60
-
61
- ## What JEV actually did
62
-
63
- The generated report records eight preflight rounds, 120 questions and 66 decisive answers (55%). Family routing omitted 12 schemas across runs. All 83 JEV requests carried a preflight block.
64
-
65
- Of 66 post-tool rounds, 53 answered and 13 fell back with `decision_service_unavailable`. Of 318 boolean answers, 29 were decisive (9%), only two affirmative. Three requests carried a post-tool directive, all in `investigate-jev-r1`: gather missing evidence. That run used more requests and tokens than its matched NOJEV run; this association is not proof the directive caused the difference. No repeats or task-constraint directives were withheld.
66
-
67
- There were two `prepare_steps` calls and zero `decision.turn_bypassed` events. JEV did not save a model turn through prepared continuation anywhere in this cohort. All 53 post-tool responses arrived during the next request rather than before its construction, so applied guidance was delayed by one request. Average fixed overhead was 1,928 characters/request from the preparation schema and preflight guidance; characters are not token measurements. Total recorded decision-service latency was 61,421 ms, including 9,375 ms on the critical path.
68
-
69
- ## Optimization priorities to validate next
70
-
71
- 1. **Reduce irrelevant tool-result replay.** The JEV service repetition-zero trajectory includes a roughly 24,857-character Git listing from above its empty temporary workspace, replayed in later requests. Bound Git discovery to the intended workspace and summarize/cap irrelevant listings while retaining a retrieval path. This is a harness opportunity in both arms, not a demonstrated JEV saving. Never publish the raw listing. Re-evaluate in fresh isolated repositories so ambient parent Git state cannot distort the workload.
72
- 2. **Make prepared continuations measurably useful before paying for their schema every turn.** Two preparation calls produced zero bypasses. Inspect why candidates expired or never received an actionable decision; evaluate conditional schema inclusion and candidate-only postflight as separate variants. Preserve capability, confidence, permission, and verification gates rather than lowering thresholds from this small cohort.
73
- 3. **Keep postflight advice relevant when it arrives.** Every answered postflight round missed construction of the immediate next request. Check whether the advice is already satisfied before delivering it one request later, particularly the read-only investigation directive. Compare reduced repeated investigation against the existing executable coverage check; do not suppress necessary evidence gathering solely to save tokens.
74
- 4. **Measure long first responses separately from replay.** In `service-jev-r0`, the first response accounted for 47,724 of 63,752 output tokens, about 75%. Investigate provider reasoning/output configuration and instruction verbosity independently of JEV decisions; no postflight directive was delivered in that run. Repeated terminal-shutdown probes and tool-schema errors also deserve focused reproduction.
75
- 5. **Fix lifecycle and reporting before larger experiments.** Bound cleanup after successful final output, preserve result/check collection, and surface timed-out or manually terminated CLI lifecycles alongside graph success. Report discarded-attempt usage and failures explicitly. Fix the underlying handle/cleanup cause rather than treating forced process termination as a successful runtime fix.
76
-
77
- These are evidence-based follow-ups, not implemented or validated token optimizations. A subsequent change should run the whole paired suite under a new set name, retain all attempts, preserve check success, and compare quality, cached/uncached usage, output tokens and lifecycle outcomes independently.
78
-
@@ -1,52 +0,0 @@
1
- # Limits
2
-
3
- By default a run has **no model-iteration ceiling, no attempt deadline, no tool-call ceiling**, a model-derived context allowance (unless explicitly tightened), and four completion repairs. A run continues until it finishes, the same tool call fails repeatedly, its context exceeds the bound, or you cancel it. This is deliberate: a task that legitimately runs for hours must not be killed for being slow, and time spent waiting on you is never charged to a deadline.
4
-
5
- ## Configuring limits
6
-
7
- To bound an installation, add a `limits` block to `config.json`:
8
-
9
- ```json
10
- {
11
- "limits": {
12
- "wallTimeMs": 3600000,
13
- "maxIterations": 200,
14
- "maxToolCalls": 500,
15
- "maxContextChars": 400000,
16
- "maxCompletionRepairs": 2
17
- }
18
- }
19
- ```
20
-
21
- | Key | Meaning |
22
- | --- | --- |
23
- | `wallTimeMs` | Wall-clock bound per run. `0` means unlimited. |
24
- | `maxIterations` | Model-iteration ceiling per Agent invocation. `0` means unlimited. |
25
- | `maxToolCalls` | Tool-call ceiling per run. `0` is a real ceiling that refuses every tool call. |
26
- | `maxContextChars` | Context bound. Exceeding it stops the run with the specific reason. |
27
- | `maxCompletionRepairs` | How many times an invalid completion object may be repaired. |
28
-
29
- A graph carries its own `limits` block, and its `maxNodeVisits` is the ceiling on how many times one node may run. It is **unlimited by default**: absent, or `0`, means no ceiling. A graph with a return connection still needs a ceiling of some kind — a finite `maxNodeVisits`, or the run's `wallTimeMs` — and is rejected at validation without one.
30
-
31
- A graph or node limit can tighten whatever the configuration sets but never loosen it.
32
-
33
- ## Checks on the completion that ends a run
34
-
35
- An agent ends its node by calling `complete_agent`. When that completion ends the run (a root agent whose outcome leads straight to an End node) and the agent has acted (it ran at least one tool or wrote the plan), the host checks two things before accepting it:
36
-
37
- - **A written summary.** The summary is the answer you read. A completion that carries only `outcome` and `output` is sent back for one.
38
- - **A finished plan.** If the run's todo list still has an item that is not completed, the completion is sent back. The agent finishes the work, corrects the list, or leaves the item open and names it under `## Not done`.
39
-
40
- Each check sends a completion back at most twice, then lets it through and records the waiver (`agent.completion.gate.waived` in the run log). On the last iteration `maxIterations` allows, both checks are waived at once, because a completion sent back there would end the run with no answer. These checks are separate from `maxCompletionRepairs`: they never spend a repair and never fail a run. Not checked: a subagent, an Orchestrator (its `delivered` outcome has its own checks), a node that hands off to another node, one iteration or copy of a loop or parallel modifier, and a node that answers without running any tool, such as a classifier or a structured step whose output is its product.
41
-
42
- ## Request-level bounds
43
-
44
- - **File reads** return at most 2,000 lines per call, truncate any single displayed line beyond 2,000 characters, and always stay inside the 24,000-character tool-output budget — a page with long lines stops at the last whole line that fits. A longer file is read by following the `Use offset=N to continue` line each page reports until the whole file has been read; `Write` and `Edit` accept an existing file only after that complete read, so an agent that stops half-way is told which lines are still unread. Those offsets are only suggested while the file still matches the last read; a file that changed means reading it again. The window is fixed, not a configuration key.
45
- - **Shell timeout** defaults to 30 seconds and can be raised per call up to 10 minutes, with process-tree cancellation.
46
- - **Provider HTTP requests** are bounded at 10 minutes by default so an endpoint that never answers cannot hang a run. Set `requestTimeoutMs` on a provider (milliseconds, up to one day), or `0` to remove it for an endpoint you would rather cancel by hand. This bound ends one unanswered request; it is not a run budget.
47
- - **Stream inactivity** (`streamIdleTimeoutMs` per provider) follows `requestTimeoutMs` while it is unset. Once set, it stays armed even when `requestTimeoutMs` is `0`: a stream that stops delivering bytes ends the call instead of hanging the run. Keep it above the endpoint's normal thinking pause.
48
- - **Model discovery** keeps its own 30-second bound regardless, so `/model` cannot wait minutes on an unresponsive endpoint.
49
-
50
- ## Token totals are telemetry, not budgets
51
-
52
- There is no cumulative token budget. Every ReAct iteration resends the whole conversation, so a running input+output total measures repeated context rather than one giant prompt — search loops can inflate it quickly while each individual request still fits. Configured iteration, wall-time, tool-call, and context limits bound a run instead. Totals remain visible through `/usage` and the footer purely as provider-reported telemetry.
@@ -1,10 +0,0 @@
1
- # Memory
2
-
3
- Andorra does not ship a persistent project-memory service. Each run starts from the repository itself, its workspace instructions, and CodeGraph.
4
-
5
- - **CodeGraph** indexes current code structure and is the primary source-discovery path when available; native grep/search remains the textual fallback.
6
- - **Command lessons.** When a shell command fails in a recognizable way, the CLI records a short, local lesson for that repository and offers it to later runs. Lessons stay on this machine. Set `"commandMemory": false` in `config.json` to turn them off.
7
-
8
- ## Graphiti settings from earlier releases
9
-
10
- Earlier releases could connect to an external Graphiti service for persistent memory. That provider has been removed. A `config.json` that still names it — `"provider": "graphiti"` or a `memory.graphiti` block — still loads, and so does an environment that sets `ANDORRA_GRAPHITI_URL` or `ANDORRA_MEMORY_PROVIDER=graphiti`. Those settings are ignored, persistent memory stays off, and each run shows one notice: `Graphiti support was removed; its settings are ignored`. Delete the settings to clear the notice.
@@ -1,50 +0,0 @@
1
- # Security and permissions
2
-
3
- Andorra Code runs on your machine with your credentials. This page describes the boundaries it enforces — and the ones it does not.
4
-
5
- ## Tool boundaries
6
-
7
- File tools validate workspace containment, including symlink resolution, in every permission mode except Full Access. Full Access — which is what YOLO selects — reaches host files outside the workspace. Reads, searches, and output are bounded; searches skip `.git`, `node_modules`, `.andorracode`, and symlinks. These checks are not a hardened OS sandbox and do not protect against concurrent hostile filesystem changes.
8
-
9
- Shell executes as your OS user. In the restricted modes a command runs inside the OS sandbox, which blocks network access and writes outside the workspace, without a prompt; a command that requests host and network access asks for approval first. Under Full Access shell runs on the host without approval. It receives an allowlisted environment without provider credential variables — but shell commands can still access credential files on disk.
10
-
11
- **Use a disposable environment for untrusted repositories.**
12
-
13
- ## Approvals and YOLO
14
-
15
- The default mode is **Ask for approval**: file edits inside the workspace and sandboxed shell commands run without a prompt, and an action outside the sandbox — host or network access, protected repository metadata — asks first. `/yolo on` (or `--yolo`) switches the current session to **Full Access**: host files, shell, and network without approval. YOLO retains tool allowlists, argument checks, and execution limits, but not file-tool containment — it is not a separate graph and not a sandbox. It is never persisted.
16
-
17
- Headless runs have no interactive approver, so whatever would have prompted receives a permission-denied observation instead. Under the default mode in-workspace edits and sandboxed shell commands still run; save `/permissions read-only` for a workspace to deny writes there. See [Headless mode](../guides/headless.md#permissions).
18
-
19
- ## Workspace permissions
20
-
21
- `/permissions` chooses a permission mode and remembers it per workspace (`workspacePermissions` in `config.json`). A workspace with nothing saved uses Ask for approval.
22
-
23
- | Mode | Behavior |
24
- | --- | --- |
25
- | `read-only` (Read Only) | Read workspace files; approval required for edits or internet access. |
26
- | `plan` (Plan) | Research read-only and present a plan; edits run after the plan is approved. |
27
- | `ask-for-approval` (Ask for approval) | Read, edit and run commands in the workspace; approval required outside the sandbox or for internet access. |
28
- | `approve-for-me` (Approve for me) | Automatically allow sandboxed actions; ask for potentially unsafe actions outside the sandbox. |
29
- | `full-access` (Full Access) | Access the host filesystem and internet without approval. Use with caution. |
30
-
31
- A mode changed while a task runs applies to that task from its next decision on. In the desktop app (`run.setPermissions`), approvals the task is already waiting on are also checked again under the new mode: one the new mode allows goes through, and one it still requires is asked again. The change is recorded in the run journal as `run.permissions.changed`, followed by the decisions it led to. An escalated shell command approved this way runs on the host only while Full Access is still in force when it starts. A sandboxed command never leaves the sandbox because of a later switch.
32
-
33
- ## Secrets
34
-
35
- - Saved provider API keys live in the operating system credential store (service `Andorra Code provider keys`, one entry per provider in each Andorra home); `config.json` records only `"providerKeys": "keyring"` in their place. A `config.json` from an older version that still holds keys has them moved on the next load. Where Linux or another Unix system has no credential store, or `ANDORRA_CREDENTIAL_STORE=file` is set, keys stay in the owner-only `config.json` as before; on macOS and Windows a locked or failing store is an error rather than a reason to write them there. Keys can also be referenced by environment-variable name. They are never added to command history or displayed in provider summaries.
36
- - Andorra account tokens live in the operating system credential store. On macOS and Windows a missing or locked credential store is an error and there is no fallback. On Linux and other Unix machines with no credential store at all (a VPS, a container: no Secret Service or no D-Bus session), tokens go to an owner-only file (0600) in the Andorra home instead; a locked or failing store is an error, never a reason to write the file, and login says so; `ANDORRA_CREDENTIAL_STORE=keyring` forbids that file.
37
- - Codex provider sign-in is delegated to the official Codex CLI app-server; subscription tokens are never copied into Andorra configuration.
38
- - Do not put credentials in handoff data, graph JSON, `--run-input`/`--run-state` files, or workspace instruction files.
39
-
40
- ## Completion validation
41
-
42
- Completion is a validated `{ "summary": "...", "tests": [] }` object. This validates the output contract, not the truth of model claims. Todo updates and progress describe reported progress, not independent proof that tests or implementation succeeded.
43
-
44
- ## Destructive actions
45
-
46
- Treat every shell command and every file write you did not expect as a destructive action. Read the approval prompt before approving it: the prompt carries the full arguments, so you can see the exact command or path that is about to run.
47
-
48
- An approval is an explicit action, and only an explicit action counts. Text typed into the conversation — by you or by the agent — never satisfies an approval gate on its own, and a report that permission was granted is not the same as a granted permission. When a run is asked to do something irreversible, narrow the scope yourself — a disposable workspace, a branch you can discard — rather than relying on the prompt to catch it.
49
-
50
- Because the agent reads and writes files with your credentials and your network access, content inside a repository can attempt to steer a run: instructions found in a file, an issue, or a web page are data, not orders. The tool boundaries above limit what such content can reach, but they are not a substitute for reviewing approvals.
@@ -1,29 +0,0 @@
1
- # Workspace instructions
2
-
3
- Andorra reads workspace instructions — persistent guidance for every agent in a project — from the repository root, before each task.
4
-
5
- ## File selection
6
-
7
- The default agent reads project-root `ANDORRA.md`, falling back to `AGENTS.md` **only when the preferred file is absent**:
8
-
9
- 1. `ANDORRA.md` — preferred.
10
- 2. `AGENTS.md` — used only if `ANDORRA.md` does not exist.
11
-
12
- Names match regardless of case on every platform, so `andorra.md`, `Agents.md` and `agents.md` are found too. If a case-sensitive filesystem holds more than one spelling of the same name, the uppercase spelling (`ANDORRA.md`, `AGENTS.md`) wins, and otherwise the first in code-unit order (`Agents.md` before `agents.md`).
13
-
14
- The files are never combined. An existing unreadable or empty `ANDORRA.md` does not activate a fallback. Nested instruction discovery (instructions in subdirectories) is not yet implemented.
15
-
16
- ## What goes in the file
17
-
18
- Anything a teammate would need before touching the codebase:
19
-
20
- - Build, test, and lint commands.
21
- - Branch, commit, and PR conventions.
22
- - Architectural constraints and cautions.
23
- - Roles: what the Orchestrator should clarify, what the Engineer should verify.
24
-
25
- Guidance is delivered through the bounded workspace reader and limited to **16,000 characters**; unreadable or unsafe guidance is omitted. Keep the file concise and put detail in files the agent can read on demand.
26
-
27
- ## Overriding per node
28
-
29
- Workspace instructions apply to all agents in a project. A specific Agent node's instructions are edited in the Graph Builder: select the node and change its **Prompt** (saved before that graph runs). Node prompts refine the agent's role; workspace instructions and runtime permissions still apply.
@@ -1,82 +0,0 @@
1
- # Getting started
2
-
3
- This page installs Andorra Code from npm, configures one model provider, and runs your first task. Total time is a few minutes on a machine that already has Node.js.
4
-
5
- If you want another AI coding agent to do this for you, skip to [Give these instructions to an AI agent](../agents/install-for-agents.md).
6
-
7
- ## What you need
8
-
9
- | Requirement | Notes |
10
- | --- | --- |
11
- | Node.js 22.19 or newer | The engine declares `node >=22.19.0`. Check with `node --version`. |
12
- | npm | Ships with Node.js. |
13
- | git | Andorra reads Git state for its status displays; also needed to install from source. |
14
- | A model provider | An API key for an OpenAI-compatible or Anthropic endpoint, a ChatGPT subscription (Codex provider), or a local server such as LM Studio. See [Configure providers](configure-providers.md). |
15
-
16
- ## Install
17
-
18
- ```sh
19
- npm install -g @andorra-labs/code
20
- ```
21
-
22
- This installs two global commands, `andorra` and the alias `andorracode`. Keep them current with `andorra update`, which installs the latest npm release; see [Update](../guides/update.md).
23
-
24
- ### Install from source
25
-
26
- To run unreleased changes, build the GitHub repository instead:
27
-
28
- ```sh
29
- git clone https://github.com/Andorra-Labs/Andorra-Code
30
- cd Andorra-Code
31
- npm ci
32
- npm run build
33
- npm link
34
- ```
35
-
36
- `npm link` points `andorra` and `andorracode` at this checkout. `andorra update` does not update a checkout; pull and rebuild it yourself (`git pull --ff-only`, `npm ci`, `npm run build`), or switch to the npm release with `npm install -g @andorra-labs/code@latest`.
37
-
38
- Alternatives without linking:
39
-
40
- ```sh
41
- # run the built CLI directly
42
- node /path/to/Andorra-Code/dist/src/cli.js --cwd /path/to/project
43
-
44
- # or from inside the repository, after building
45
- npm start
46
- ```
47
-
48
- ## Configure a provider
49
-
50
- Providers are configured inside the TUI — there is no separate setup wizard.
51
-
52
- 1. Run `andorra` in any folder. On first launch nothing is configured yet.
53
- 2. Type `/providers` and press Enter.
54
- 3. Choose **Add provider**, select a preset (DeepSeek, Kimi / Moonshot, Kimi For Coding, GLM Coding Plan (Z.ai), OpenAI, Anthropic, Local server, ChatGPT / Codex, and others), and edit its connection and model.
55
- 4. For hosted APIs choose **API key** and paste the key. Choose **Save changes**.
56
-
57
- Saved keys go to the operating system credential store, not to `config.json`. On Linux without a credential store they stay in the owner-only `config.json` under `~/.andorracode` (see [Reference: configuration](../reference/config.md)), so keep that file private. You can also use an environment-variable name such as `OPENAI_API_KEY` instead of a stored key.
58
-
59
- Full details, including local servers and model discovery: [Configure providers](configure-providers.md).
60
-
61
- ## Run your first task
62
-
63
- ```sh
64
- cd /path/to/your/project
65
- andorra
66
- ```
67
-
68
- The default command opens a full-screen terminal UI with a welcome panel, conversation and tool transcript, an input composer, and a live status bar. Out of the box it runs a single Andorra Agent on the bundled default graph; paid members can select the Orchestrator intake workflow with `/graph` or `--graph :andorra` (see [Accounts](accounts.md)).
69
-
70
- - Answer questions with Up/Down + Enter; Escape cancels.
71
- - Approve file writes and shell commands when prompted, or enable `/yolo on` for the session to skip approvals.
72
- - Press Ctrl+C to stop a run; Ctrl+C again to exit.
73
- - Type `/help` for every command.
74
-
75
- An Andorra account is optional: signing in enables hosted Jev decision routing and, custom graphs in the graph editor: one small graph on the free tier, and any number with paid membership. See [Accounts, membership, and hosted Jev](accounts.md).
76
-
77
- ## Where to go next
78
-
79
- - [Concepts](../concepts/README.md) — how the graph, agents, and context routing fit together.
80
- - [Guides](../guides/README.md) — the TUI in depth, the Graph Builder, headless automation, skills/MCP/plugins.
81
- - [Reference](../reference/README.md) — every CLI flag, slash command, and configuration file.
82
- - [Update an existing installation](../guides/update.md) — `andorra update` installs the latest npm release.
@@ -1,78 +0,0 @@
1
- # Andorra accounts and managed decisions
2
-
3
- Andorra runs the agent loop and tools on your machine. Your configured LLM provider still receives LLM requests directly. An Andorra account enables the hosted Jev decision service without distributing the shared Jev API key.
4
-
5
- ## Sign in
6
-
7
- Passwords require at least 8 characters, including uppercase, lowercase, a number, and a symbol. MFA is disabled. Email verification is still required for new accounts.
8
-
9
- Run `andorra login` before starting the harness, or enter `/login` in an interactive session. On a remote machine, see [Sign in on a remote machine or VPS](#sign-in-on-a-remote-machine-or-vps). Your browser opens the Andorra sign-in page; choose **Sign up** to create an account and verify your email. After successful login the browser returns to a loopback callback on your machine. You can close that browser tab.
10
-
11
- After login, the account label shows `Signed in | Free | your@email.com` (or `Legacy`, or `Paid`) using your verified email address. The same identity appears in the welcome screen, the persistent account label, and the output of the account commands. If the service cannot supply an email, the label still shows the verified membership status. Logout removes the email from the displayed account status.
12
-
13
- Run `andorra auth status` or `/auth status` to inspect your saved session. Run `andorra logout`, `/logout` or `/auth logout` to remove it from this machine and revoke its refresh token; nothing of it is left in the credential store. Each Andorra home (`ANDORRACODE_HOME`) signs in separately, and a plain logout only knows its own; `andorra logout --all` (or `/logout --all`) also deletes every other Andorra sign-in the OS credential store holds on this machine. These standalone commands do not require an LLM provider, and none of them signs out of an LLM provider; `/logout codex` does that for Codex.
14
-
15
- To switch accounts, run `/logout`, then `/login`. Sign-in always asks for credentials, even when the browser still has a session for the previous account, so you can enter another account's email or create a new one.
16
-
17
- The harness stores tokens in the operating system credential store, not in `config.json`. It renews access tokens automatically. Sessions have no application idle timeout. Expiration, administrative revocation, disabled accounts, or credential-store removal require signing in again. Other machines have separate sessions.
18
-
19
- On macOS and Windows a missing or locked credential store is an error, and the harness never writes a token file. On Linux and other Unix machines with no credential store at all (no Secret Service, or no D-Bus session), which is what a VPS or container usually is, the session is saved instead to `credentials-<id>.json` in the Andorra home (`~/.andorracode`, or `ANDORRACODE_HOME`), created readable only by your user (mode 0600, in a 0700 directory). `andorra login` names the file when it does this. A credential store that exists but is locked or failing is still an error, because it may hold your session: unlock it, or set `ANDORRA_CREDENTIAL_STORE=file`. Once that file exists it stays the store for that home; `andorra logout` overwrites it with a token-free record, and also revokes and clears a session left in the other store (the keyring, or a file from an earlier fallback), so switching `ANDORRA_CREDENTIAL_STORE` never brings an old login back. Set `ANDORRA_CREDENTIAL_STORE=file` to use the file even where a credential store works, or `ANDORRA_CREDENTIAL_STORE=keyring` to forbid the file and get the old error instead.
20
-
21
- Login needs an available local callback port 43187 and HTTPS access to the hosted account service.
22
-
23
- ## Sign in on a remote machine or VPS
24
-
25
- Over SSH, or on a Unix machine without a graphical display, `andorra login` does not try to open a browser. It prints the sign-in address so you can open it in a browser on any device, such as your laptop. Pass `--no-browser` (`andorra login --no-browser`, or `/login --no-browser`) to get the same behavior anywhere. Either of these finishes the sign-in:
26
-
27
- - **Paste the address back.** After you sign in, the browser goes to `http://localhost:43187/callback?code=…`. That page will not load on your laptop, which is expected. Copy the whole address from the address bar and paste it at the prompt in the remote terminal. Only an address carrying this login's own state is accepted.
28
- - **Forward the port.** Connect with `ssh -L 43187:localhost:43187 <host>` before running `andorra login`. The browser's redirect then reaches the remote listener through the tunnel, and the sign-in completes on its own.
29
-
30
- A login waiting on another device times out after 10 minutes (2 minutes when a browser opened locally). Press Ctrl+C to cancel it.
31
-
32
- ## Plans
33
-
34
- There are three plans, and the account label names the one you are on: `Signed in | Free`, `Signed in | Legacy`, or `Signed in | Paid`.
35
-
36
- - **Free** is the standard plan. It unlocks hosted Jev decisions at 250 per UTC day. The premium features stay locked.
37
- - **Legacy** is the free plan that carries the premium features, and it is the plan every account that signs up now is on. It is **free of charge** and carries the premium features: the Orchestrator workflow, saved custom graphs, and the graph editor, at the paid daily allowance. The accounts that were created before Andorra Code was released keep it when the promotion ends.
38
- - **Paid** is a paying account, and carries the same premium features.
39
-
40
- Legacy needs nothing to request or migrate: the premium promotion puts every account on it while it runs, and the accounts created before Andorra Code was released keep it afterwards, decided from your account's own creation date.
41
-
42
- Default always runs the single Andorra Agent, for signed-out, free, legacy, and paid users. Legacy and paid users can explicitly select Andorra from `/graph` (or use `--graph :andorra`) for the Orchestrator workflow. Legacy and paid membership enables the Orchestrator workflow, saved custom graphs, and the graph editor (`andorra graph`, `--configure`, `/graph`, and custom `--graph` selections). Free accounts can build one custom graph of up to 3 nodes, not counting Done, without the Orchestrator; after a downgrade the oldest custom graph is the one that stays editable and runnable. Membership is checked against the authenticated service. Editing local configuration or cached token claims does not grant premium access. If the membership service is unavailable, premium-only entry points fail closed and the default workflow uses the free agent.
43
-
44
- There is no checkout or automated billing integration in this release: paid access is granted on the account, not purchased from the app.
45
-
46
- ## Your account, your profile, and your usage
47
-
48
- The desktop app has an **account portal**: open it from the account name in the rail, or from **Account** in the rail's list. It shows three things.
49
-
50
- **Profile.** Your name, first name, and last name are stored with the account, so they are the same on every machine you sign in on. Your email address is your identity and cannot be changed there. Saving writes to the account service, not to this machine.
51
-
52
- **Usage.** Hosted Jev decisions are counted by the account service: how many you have used today against your allowance, and how many have been counted since the counter was introduced. Sessions, turns, projects, tokens, and model requests are counted on this machine, because that is where the work ran. Saved sessions are the ones still on disk, so deleting one takes it out of the count.
53
-
54
- **Billing.** Your plan, and the control that opens your billing page once subscription billing exists. There is no checkout in this release, so no payment method is on file and there is nothing to manage yet; the portal says so rather than showing a control that does nothing.
55
-
56
- The CLI shows the same plan in its account label, and `/auth status` prints the membership and the daily quota.
57
-
58
- ## Hosted Jev decisions
59
-
60
- Jev needs a signed-in account, free or paid. Sign in with `/login` and start a task. With global Jev enabled and no explicit `decisions` override, the CLI checks your membership for each run and uses hosted Jev in **active** mode by default for signed-in free, legacy, and paid members. No personal Jev API key is needed. Signed-out users, and users whose membership cannot be verified, get no decision service at all, hosted or a configured local one, and keep ordinary retrieval routing.
61
-
62
- Free, legacy, and paid users can enter `/jev on` to enable Jev, `/jev off` to disable it, or `/jev status` (or a bare `/jev`, which changes nothing) to inspect the setting. The desktop app's **Jev** switch in the chat composer changes the same setting. This persists the global `jevEnabled` preference in CLI configuration; omission means enabled. Off suppresses both hosted and local calls on every node; On resumes the stored provider/mode, including explicit off/none, for the nodes that turn Jev on. Changing the setting while a task runs saves it at once, but that task keeps the setting it started with until it ends or is interrupted; the CLI and the desktop both say so. The footer shows `[Enabled]` or `[Disabled]` alongside server-provided quota. Enabled is a preference, not proof of a successful request: login, quota and service availability still apply.
63
-
64
- Active Jev decides whether eligible Agent invocations should retrieve automatic CodeGraph context. The coding LLM still runs the agent loop and implements the task. Jev cannot grant tool permissions, change graph edges, bypass approval, or remove required verification. Skipping unnecessary retrieval can reduce context sent to the coding model, but token savings and prediction quality have not been measured.
65
-
66
- Jev runs only on Agent nodes that turn it on. Select an Agent in the graph builder and tick **Jev decisions**; this stores `jevEnabled: true` on the node. Unticked nodes, and nodes in graphs saved before this setting was opt-in, carry no setting and do not use Jev until they are ticked. The bundled Andorra Agent ("Default") and Andorra presets cannot be edited, so their Agents ship with Jev turned on and the global switch is their control. Free, legacy, and paid accounts all get per-node control.
67
-
68
- The CLI honors top-level `decisions` selections, including off, shadow, direct Jev and Laya. Local Laya/Jev uses its configured endpoint and model and needs a signed-in account like the hosted service; direct Jev remains shadow-only. Global `jevEnabled: false` disables both hosted and local decisions. Configure local details in **Settings > Runtime > Jev decisions > Configure decisions**, or follow [decision-provider configuration](../../design/decision-engine.md). With no override, verified signed-in members retain the hosted default.
69
-
70
- For the hosted `andorra` selection, the managed endpoint, model, and shared credentials are controlled by the service: do not put a Jev key, custom endpoint or model alias in that configuration block. Local providers instead use their own endpoint/model and optional credential environment-variable name. Authentication failures, an exhausted quota, service errors, invalid answers, low-confidence answers, timeouts and cancellation all fall back to ordinary routing, so a run is never blocked by the hosted service. Public `[Jev]` activity shows requests, completion and safe fallback reasons; completion alone does not prove routing changed.
71
-
72
- Task runs using the enabled hosted service send a compact, question-scoped routing snapshot to that service: bounded excerpts of the task text and the node instructions, plus only the capability metadata the current questions need. Retrieved source, memory payloads and conversation history are not included. The service does not log request bodies or credentials. The default allowance is 250 requests per free member per UTC day and 1,000 per legacy or paid member per UTC day; failed upstream attempts can consume quota. Unavailable usage is shown as unknown rather than zero.
73
-
74
- Hosted decisions are skipped when no enabled retrieval capability is available, including for internal subagents. Long task and instruction prose is compacted before it is sent, and ordinary context routing stays available.
75
-
76
- The interactive terminal shows account status and a sign-in notice when signed out. Run `/login` for hosted Jev access; legacy or paid membership additionally enables the Orchestrator and graph features. `/auth status` refreshes the displayed membership and the server-provided daily quota. Limits count batched API requests, reset at midnight UTC, and retain the same usage counter across membership upgrades or downgrades. These quotas apply to the hosted Andorra service; direct provider use through an embedded runtime is not billed to the shared service.
77
-
78
- In the interactive CLI, open `/graph` and choose **Create new graph** to open a new draft in the browser. After saving, reopen `/graph` to select it. Creating a draft leaves the current conversation and graph selection unchanged. The editor server closes when the CLI exits.
@@ -1,132 +0,0 @@
1
- # Configure providers
2
-
3
- Andorra Code talks to your model providers directly. A provider entry stores a protocol type, an endpoint, credentials, and a default model. Everything is configured from the `/providers` screen inside the TUI — the old standalone `andorra setup` wizard has been removed.
4
-
5
- ## Add or edit a provider
6
-
7
- Run `andorra`, then enter `/providers`. Each provider occupies one row. Up/Down moves the highlight; Enter selects the active provider. Press **Right Arrow** or **e** on a provider to open its settings. Endpoint and protocol details live in that editor instead of cluttering the provider list.
8
-
9
- Use **Add provider** to configure your first provider or add another. Select a preset such as DeepSeek, Kimi / Moonshot, Kimi For Coding (Global or China), GLM Coding Plan (Z.ai), OpenAI, Anthropic, Local server, or ChatGPT / Codex, then edit the connection and model. You can enter an exact model ID when model discovery is unavailable. Settings remain a draft until you choose **Save changes**; Escape from the settings menu returns without saving the draft. **Delete provider** asks for confirmation and shows the replacement active provider; deleting the final provider returns to the unconfigured state.
10
-
11
- ## Credentials
12
-
13
- For hosted APIs, choose **API key** and paste the **actual API key** into the masked field. The key is saved locally with the provider and reused after restarting Andorra. It is not added to command history or displayed in provider summaries. Configuration is stored in `config.json` under `ANDORRACODE_HOME` (default `~/.andorracode`); saved API keys are kept in the operating system credential store, not in that file. On Linux without a credential store (or with `ANDORRA_CREDENTIAL_STORE=file`) they stay in the owner-only `config.json`, so keep it private and do not commit or share it. The separate **Environment fallback** field accepts a variable name. A saved key takes precedence; **Remove authentication** clears both.
14
-
15
- Preset endpoints: DeepSeek uses `https://api.deepseek.com`; Kimi uses `https://api.moonshot.ai/v1`; Kimi For Coding (Global) uses `https://api.kimi.ai/coding/v1` and Kimi For Coding (China) uses `https://api.kimi.com/coding/v1`; GLM Coding Plan (Z.ai) uses `https://api.z.ai/api/coding/paas/v4`. The coding-plan presets come pre-filled with the plan's default model (`kimi-for-coding`, `glm-5.3`) and take the API key from that plan's console — the Kimi Code Console or the Z.ai coding-plan page — not the standard platform key. Codex uses the installed Codex CLI's managed ChatGPT sign-in; subscription tokens are not copied into provider configuration.
16
-
17
- ### Claude Console sign-in
18
-
19
- An **Anthropic** provider can sign in with a Claude Console account instead of an API key. Requests are billed as API usage to the Console organization and workspace you pick in the browser; this is not a Claude Pro or Max subscription.
20
-
21
- 1. Install the Anthropic CLI (`ant`) from [github.com/anthropics/anthropic-cli/releases](https://github.com/anthropics/anthropic-cli/releases) and make sure it is on PATH. `ANDORRA_ANT_PATH` can name the executable instead.
22
- 2. In Desktop, add or edit an **Anthropic** provider, set **Credential** to **Claude Console sign-in**, save, then choose **Sign in with Claude Console** on the provider. In `/providers`, set **Credential** to **Claude Console sign-in** and choose **Sign in with Claude Console**.
23
- 3. Your browser opens. Pick the organization and workspace, then return to Andorra. The provider shows the signed-in email, organization and workspace.
24
-
25
- Andorra runs `ant auth login` with `ANTHROPIC_CONFIG_DIR` set to `~/.andorracode/anthropic-accounts/<provider id>`, so each provider keeps its own login and your own `ant` profiles are never read or changed. The Anthropic SDK refreshes the access token from that directory; Andorra never handles the OAuth exchange. **Sign out**, or removing the provider, deletes the directory. New Anthropic providers start on `claude-opus-5-5`; **Discover Models** lists the rest.
26
-
27
- ### Sign in or use an API key
28
-
29
- In Desktop, **+ Add Provider** lists one card per vendor. A vendor with a subscription sign-in shows two choices side by side before anything is saved: **Sign in with …** (a subscription the vendor's own CLI holds) or **Use an API key**. Choosing one switches the draft's type and endpoint; **Save provider** adds it to the list.
30
-
31
- | Card | Sign in with … | Use an API key |
32
- | --- | --- | --- |
33
- | ChatGPT / OpenAI | ChatGPT Plus or Pro through Codex (`codex`) | OpenAI API key (`openai-compatible`) |
34
- | Claude | Claude Pro or Max through Claude Code (`claude`) | Anthropic API key or Claude Console sign-in (`anthropic`) |
35
- | Grok / xAI | SuperGrok through the Grok CLI (`grok`) | xAI API key (`openai-compatible`) |
36
- | OpenCode | The providers connected in the OpenCode CLI (`opencode`) | OpenCode Go key (`opencode-go`) |
37
-
38
- The sign-in panel runs the vendor CLI's own login on the engine's machine. The login and its tokens stay with that CLI; Andorra never copies them. After a sign-in in the add form, **Discover Models** runs once so the first model can be picked. Sign-in runs only for a local engine; for a remote workspace, sign in with the CLI on that machine.
39
-
40
- ### Claude subscription
41
-
42
- Choose **Claude**, then **Sign in with Claude**, in Desktop, or **Claude subscription** in `/providers`. Install the native Claude Code CLI. Desktop's **Sign in with Claude** runs `claude auth login --claudeai`, which opens your browser; if the page shows a code instead, paste it into the panel. In the terminal, run `claude auth login` yourself first. Andorra reuses that CLI's managed sign-in; it never copies OAuth access or refresh tokens into its configuration. `ANDORRA_CLAUDE_PATH` can select a native CLI executable when it is not on PATH.
43
-
44
- **Discover Models** reads the models available to the installed Claude CLI. The CLI must support safe mode, structured JSON output, and the stream-json control protocol. Andorra sends one model step at a time with native tools, MCP servers, hooks, plugins, and workspace customizations disabled. Andorra retains tool execution and permissions. Images use native image blocks. Changing providers does not change JEV or graph selection.
45
-
46
- In Desktop, Claude and Go drafts can discover models before saving: choose the provider type, select and add the first model, then save the complete entry. This requires an engine advertising draft discovery; older engines display an update instruction.
47
-
48
- Auxiliary requests such as titles, model-health checks, graph generation, and context summaries use a separate tool-free mode with an explicit output cap. This requires native output/budget controls and matching stream usage metadata; incompatible CLI behavior is rejected. An explicit output cap combined with tool execution is not supported.
49
-
50
- ### Grok subscription
51
-
52
- Choose **Grok / xAI**, then **Sign in with Grok**, in Desktop, or **Grok subscription (Grok CLI)** in `/providers`. Install the Grok CLI. Desktop runs `grok login --device-auth`, opens the xAI page and shows the code to confirm there; in the terminal, run `grok login` yourself. The fixed marker base is `https://api.x.ai`; requests go through the signed-in CLI. `ANDORRA_GROK_PATH` selects the executable when it is neither on PATH nor in `~/.grok/bin`.
53
-
54
- Andorra sends one model step at a time through `grok --prompt-file … --output-format streaming-messages-json --json-schema …` with built-in tools, subagents, memory, plan mode and web search off, and refuses any native tool call. `XAI_API_KEY` is removed from the CLI's environment, so a signed-out CLI fails instead of billing an API key. Images in the conversation are not forwarded yet; the model is told how many were left out. To use an xAI API key instead, choose **Use an API key** on the same card.
55
-
56
- ### OpenCode
57
-
58
- Choose **OpenCode**, then **Sign in with OpenCode**, in Desktop, or **OpenCode (CLI sign-in)** in `/providers`. Install the OpenCode CLI (`npm install -g opencode-ai`). Andorra starts a private `opencode serve` on loopback behind a random password the first time it is needed, stops it after five idle minutes, and stops it when the engine exits. Models are every model of every provider OpenCode has connected, named `provider/model` (for example `opencode/big-pickle`).
59
-
60
- The panel lists the providers OpenCode has connected and the browser sign-ins it offers (ChatGPT, GitHub Copilot, Poe, xAI SuperGrok and others); **Sign in to …** runs that provider's sign-in inside OpenCode and stores the credential where OpenCode keeps it. A sign-in that needs typed input, such as a GitHub Enterprise URL, is left to `opencode auth login` in a terminal. `ANDORRA_OPENCODE_PATH` selects the executable.
61
-
62
- Each step is a throwaway OpenCode session on an Andorra agent with every built-in tool off and a JSON-schema answer; the session is deleted afterwards. When an upstream provider is rate limited, OpenCode retries on its own schedule, which can be hours away: Andorra fails the step with the provider's reason instead of waiting.
63
-
64
- ### OpenCode Go
65
-
66
- Choose **OpenCode Go (all model APIs)** and save your Go API key. Its fixed base is `https://opencode.ai/inference/go`. Discovery includes the live Go catalog. The adapter selects Chat Completions, Responses, Anthropic Messages, or Gemini according to verified model metadata. Requests stay on Go endpoints; failures never fall back to pay-as-you-go service. New models with unknown protocol metadata fail explicitly until their metadata is available.
67
-
68
- Go's model catalog is public. **Test connection** and per-model **Test** verify catalog reachability and listing membership, not authentication or account entitlement; the UI labels this distinction. Run a small task to verify access. Inference reports a sanitized error on failure and does not automatically retry transient errors. Model availability and subscription limits remain controlled by OpenCode.
69
-
70
- Changing an existing provider into or out of OpenCode Go clears its previous credential. Enter a key for the new connection. To reuse a previous environment-variable name, save the type change first and then set the variable; an unchanged fallback is not carried to a different provider.
71
-
72
- ## Choose a model
73
-
74
- `/model` opens the model selection screen, which fetches the active provider's available models; Escape cancels loading. `/model list` queries the model endpoint directly, and `/model <id>` selects an exact ID.
75
-
76
- The model must support function/tool calling. Hosted defaults are configurable examples, not an account entitlement or availability guarantee. OpenAI-compatible providers use Chat Completions; Anthropic uses Messages. Protocol references: [OpenAI Chat](https://developers.openai.com/api/reference/resources/chat), [Anthropic Messages](https://platform.claude.com/docs/en/api/messages/create).
77
-
78
- Reasoning effort is per provider: `/reasoning` inspects it, `/reasoning high` (or another supported level: `default|none|minimal|low|medium|high|xhigh|max`) saves an explicit override for an OpenAI-compatible, Anthropic, or OpenCode Go provider, and `/reasoning default` clears the override. An unset value shows as `provider default`; the CLI cannot infer the server's actual default. Effort support depends on the model and server; Go rejects values absent from the selected model's verified reasoning options before inference. Changing models clears the old override.
79
-
80
- ## Model discovery and context windows
81
-
82
- For OpenAI-compatible and Anthropic API-key providers, model discovery (Desktop **Discover Models**, `/model list`) asks `GET <baseUrl>/models`; a base URL ending in `/v1` therefore calls `/v1/models`. The request is bounded by the shorter of a positive `requestTimeoutMs` and 30 seconds, or 30 seconds otherwise. A failed discovery names the endpoint and the reason — HTTP status, timeout, unreachable, or invalid JSON.
83
-
84
- Managed Claude and Codex discovery use their native CLIs. Go reads its public listing and protocol metadata under one shared deadline, using the same shorter-of-provider-and-30-seconds rule. Cancellation or expiration stops both reads; an ordinary metadata-service outage can still use verified bundled metadata.
85
-
86
- An endpoint that reports a limit (`max_model_len`, `context_window`, `context_length`, or `max_context_length`) has it shown per model; SparkDeck deployment metadata and LM Studio's native listing are used as fallbacks. The desktop settings screen saves the limit per configured model in `modelContextWindows`, so switching models does not inherit another model's window and an offline endpoint keeps the last known value. Each model row also has its own **Test** button, which checks that the model appears in the listing without spending tokens.
87
-
88
- ## Local servers
89
-
90
- The local provider uses `http://127.0.0.1:1234/v1` with no key (an LM Studio-style server). Its placeholder model must be replaced with your server's model ID:
91
-
92
- ```text
93
- /providers local
94
- /model list
95
- /model your-served-model
96
- ```
97
-
98
- Private-network endpoints (including Tailscale addresses) may use HTTP; remote endpoints require HTTPS, and URLs cannot contain embedded credentials.
99
-
100
- ## Model health checks
101
-
102
- Loading a graph checks each model with a small inference request, including startup's saved graph, agent overrides, retry fallbacks, and enabled subagent roles. Unavailable models are listed with their affected nodes, and tasks are blocked to prevent downstream errors. Open `/graph` and choose **Edit Graphs** to repair the model selections. Saving and reselecting the graph, or submitting the next task, reloads and rechecks it. Provider/model changes also trigger a check. Each probe has a 30-second deadline and may consume provider quota; probe usage is separate from task usage totals.
103
-
104
- The desktop app's engines remember a model that answered. Before a task, a provider/model pair that answered a check, or one of a task's own requests, within the last ten minutes is not probed again, so a follow-up message and a task started soon after another one do not pay for the round trip twice. Only an answer is remembered: a model that failed or timed out is asked again by the next task. The record is `model-health.json` in the configuration home, shared by every engine on that home; it holds digests and timestamps, never a provider name, an address, or a credential, and changing a provider's address, credential, or account asks its models again. Selecting a graph always probes. Set `ANDORRA_MODEL_HEALTH_TTL_MS` to another window in milliseconds, or to `0` to probe before every task.
105
-
106
- ## Editing `config.json` directly
107
-
108
- Saving setup creates `~/.andorracode/config.json` (override the directory with `ANDORRACODE_HOME`). `/providers` and `/model` save selections there. Add compatible providers by editing the shared registry:
109
-
110
- ```json
111
- {
112
- "version": 1,
113
- "provider": "local",
114
- "providers": [
115
- {
116
- "id": "local",
117
- "type": "openai-compatible",
118
- "baseUrl": "http://127.0.0.1:1234/v1",
119
- "model": "your-served-model"
120
- },
121
- {
122
- "id": "hosted",
123
- "type": "openai-compatible",
124
- "baseUrl": "https://your-provider.example/v1",
125
- "apiKeyEnv": "YOUR_PROVIDER_API_KEY",
126
- "model": "your-model"
127
- }
128
- ]
129
- }
130
- ```
131
-
132
- Supported adapter types are `openai-compatible`, `anthropic`, `codex`, `claude`, `grok`, `opencode`, and `opencode-go`. Managed CLI providers reject API-key overrides and HTTP timeout fields. The full configuration surface, including limits, memory, and request timeouts, is in [Reference: configuration](../reference/config.md).
@@ -1,13 +0,0 @@
1
- # Guides
2
-
3
- Task-oriented how-tos for every client and mode.
4
-
5
- - [The TUI](tui.md) — the `andorra` terminal interface: transcript, composer, side panel, todos, dashboard.
6
- - [Graph Builder](graph-builder.md) — building custom graphs in the local browser editor: nodes, routing, loops, joins, cloud backup.
7
- - [Headless mode](headless.md) — one-shot runs with `--prompt`, `--json`, exit codes, and `needs_clarification`.
8
- - [Extensions](extensions.md) — skills, MCP servers, and plugins.
9
- - [Browser workspace](browser.md) — the `/browser` local web client.
10
- - [Web search](web-search.md) — the `web_search` tool and its search services.
11
- - [Desktop client](desktop-app.md) — the Tauri desktop application.
12
- - [Windows code signing](windows-code-signing.md) — Authenticode signing of the desktop bundles with Azure Artifact Signing, and how to verify a signature.
13
- - [Update](update.md) — keeping the npm installation current with `andorra update`.
@@ -1,39 +0,0 @@
1
- # Browser workspace
2
-
3
- From an interactive Andorra Code CLI session, run `/browser`. Andorra starts a local application on an ephemeral loopback port and opens your default browser. The CLI continues working, including when `/browser` is launched during an active run.
4
-
5
- Projects in the left sidebar are folders used by CLI sessions. Select a session to inspect its conversation, recent expandable tool activity and progress. Activity keeps the newest 200 events within a 256 KiB budget per session; older activity leaves this window while full conversation turns remain retained. Send a task in an idle session, steer a running session from the composer, cancel it, or answer questions and approval requests. After cancellation, a browser-owned run remains Cancelling until its provider or tool settles; additional cancellation and steering are disabled during that time. Answers in the terminal and browser share the same pending runtime question.
6
-
7
- New session accepts an existing local folder path. Browser-created sessions use your configured default graph and provider/model, plus saved permissions for that workspace. Use CLI `/providers`, `/model`, `/graph` and `/permissions` to edit configuration. Permission and paid-graph gates continue to run in the existing runtime.
8
-
9
- Settings controls maximum days since last activity (30 by default; 0 means all history) and light/dark/system appearance, persisted across server restarts. Active sessions remain visible regardless of age. Filtering hides records without deleting them. New sessions retain all task/outcome turns; older records only contain what earlier versions saved. Model resume context is stored separately and uses at most six turns, preserving `/clear`, provider/model/graph resets, and `/compact` summaries without deleting the displayed transcript.
10
-
11
- The application belongs to the CLI that launched it. Closing its browser tab leaves runs active; exiting the owner CLI stops the application and cancels its browser-owned runs. Another live CLI is discovered through authenticated local endpoints. A historical run whose owner has disappeared is displayed as disconnected and can be resumed as a fresh run.
12
-
13
- The printed URL includes a capability token in its fragment. Keep it private. The server binds only to 127.0.0.1, validates request host/origin and bearer authorization, and uses existing trajectory sanitization for stored tool activity. It does not provide remote access or a cloud relay.
14
-
15
-
16
- ## Importing a sign-in from Firefox (desktop Browser panel)
17
-
18
- Some sites refuse to show their sign-in page to the panel's browser. If you are signed in to the site in Firefox on the same machine, the desktop app's Browser panel can copy that one site's cookies into the project's browser profile: open any page of the site in the panel, choose the cookie button in the panel toolbar, confirm the profile and the site, and choose Import. The page reloads with the cookies.
19
-
20
- - Only the site you name and its subdomains are read, from a temporary copy of Firefox's cookie file. Cookie values stay inside the engine; the app only shows a count.
21
- - The cookies go into the project profile, so every session of that project, and agents using its Browser panel, are signed in. Import is refused in an incognito or temporary browser.
22
- - Only you can start an import, from the panel. No agent tool reaches it.
23
- - Firefox must have the sign-in saved on disk: a session that ends when Firefox closes may not be there. Firefox containers and private windows are not read.
24
- - Chrome and Edge cannot be read this way. Their cookie stores are encrypted so that only the browser itself can open them.
25
- - A site can still ask you to sign in again when it sees a new browser.
26
-
27
- The steps to test this are in `tests/browser-cookie-import-test-plan.md`.
28
-
29
- ## Captcha solving with CapSolver
30
-
31
- Agents can solve captchas on pages open in their headless browser (`qa.browser_session`) with the `browser.solve_captcha` tool, using your own [CapSolver](https://www.capsolver.com/) account. The tool supports reCAPTCHA v2 and v3, Cloudflare Turnstile, and image-to-text captchas. With `type` left at `auto`, it reads the widget and its site key from the page, sends the task to CapSolver, writes the returned token into the page's response field and calls the widget's callback. The agent then submits the form. The desktop's Browser panel is not supported.
32
-
33
- The key is optional. Without one, the tool reports that CapSolver is not configured. To add a key:
34
-
35
- - In the desktop app, open **Settings → Browser**, paste the key and click **Save**. **Remove** deletes it.
36
- - Or add `"browser": { "capsolverApiKey": "<key>" }` to `~/.andorracode/config.json`.
37
- - Or set `CAPSOLVER_API_KEY` in the environment. It is used only when no key is saved.
38
-
39
- The saved key lives in the configuration file (`config.json`). The engine reports only whether a key exists and which one is in use, never the key itself. Each solve spends CapSolver credit and goes through the run's normal approval for browser tools. Use it only on sites you are permitted to automate.