@andorra-labs/code 0.1.10 → 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 (155) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +36 -0
  4. package/dist/src/app-server/protocol.d.ts +1 -0
  5. package/dist/src/app-server.d.ts +34 -1
  6. package/dist/src/app-server.js +264 -54
  7. package/dist/src/automation-service.js +1 -1
  8. package/dist/src/browser-session.d.ts +8 -0
  9. package/dist/src/browser-session.js +27 -1
  10. package/dist/src/browser-ui/app.js +237 -15
  11. package/dist/src/browser-ui/index.html +5 -5
  12. package/dist/src/browser-ui/style.css +110 -65
  13. package/dist/src/browser-ui/tokens.css +27 -26
  14. package/dist/src/coding-tools.d.ts +24 -0
  15. package/dist/src/coding-tools.js +71 -8
  16. package/dist/src/command-screens.js +1 -1
  17. package/dist/src/commands.js +1 -1
  18. package/dist/src/completion-gates.d.ts +42 -7
  19. package/dist/src/completion-gates.js +55 -9
  20. package/dist/src/completion.d.ts +8 -0
  21. package/dist/src/completion.js +19 -1
  22. package/dist/src/dashboard-view.js +2 -2
  23. package/dist/src/deadline.js +4 -0
  24. package/dist/src/graph-manager-chat.js +13 -13
  25. package/dist/src/graph-runner.js +39 -2
  26. package/dist/src/graph-server.js +9 -9
  27. package/dist/src/graph-sync.d.ts +8 -0
  28. package/dist/src/graph-sync.js +54 -3
  29. package/dist/src/graph-tool.js +1 -1
  30. package/dist/src/graph-ui/app.js +262 -93
  31. package/dist/src/graph-ui/controls.css +43 -22
  32. package/dist/src/graph-ui/controls.js +31 -1
  33. package/dist/src/graph-ui/embed.js +62 -13
  34. package/dist/src/graph-ui/icons.js +4 -0
  35. package/dist/src/graph-ui/index.html +3 -3
  36. package/dist/src/graph-ui/manager-state.js +2 -2
  37. package/dist/src/graph-ui/manager.css +19 -18
  38. package/dist/src/graph-ui/manager.js +11 -11
  39. package/dist/src/graph-ui/skill-picker.js +1 -1
  40. package/dist/src/graph-ui/studio-canvas.js +8 -8
  41. package/dist/src/graph-ui/studio.css +18 -15
  42. package/dist/src/graph-ui/studio.js +92 -35
  43. package/dist/src/graph-ui/style.css +122 -79
  44. package/dist/src/graph-ui/theme.js +2 -2
  45. package/dist/src/graph-ui/tokens.css +33 -29
  46. package/dist/src/graphs.d.ts +3 -2
  47. package/dist/src/graphs.js +3 -2
  48. package/dist/src/membership-errors.d.ts +7 -1
  49. package/dist/src/membership-errors.js +9 -3
  50. package/dist/src/pull-requests.d.ts +42 -6
  51. package/dist/src/pull-requests.js +11 -3
  52. package/dist/src/react-runtime.js +121 -14
  53. package/dist/src/read-document-doc.d.ts +20 -0
  54. package/dist/src/read-document-doc.js +524 -0
  55. package/dist/src/read-document-docx.d.ts +21 -0
  56. package/dist/src/read-document-docx.js +584 -0
  57. package/dist/src/read-document-text.d.ts +29 -0
  58. package/dist/src/read-document-text.js +67 -0
  59. package/dist/src/read-document-tool.d.ts +48 -0
  60. package/dist/src/read-document-tool.js +162 -0
  61. package/dist/src/read-document.d.ts +78 -0
  62. package/dist/src/read-document.js +353 -0
  63. package/dist/src/read-image.d.ts +29 -2
  64. package/dist/src/read-image.js +42 -17
  65. package/dist/src/runtime.d.ts +19 -0
  66. package/dist/src/runtime.js +10 -1
  67. package/dist/src/session-changes.d.ts +6 -1
  68. package/dist/src/session-changes.js +13 -5
  69. package/dist/src/side-panel.d.ts +6 -1
  70. package/dist/src/side-panel.js +12 -10
  71. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  72. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  73. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  74. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  75. package/dist/src/skills/bundled/provenance.json +4 -4
  76. package/dist/src/skills/runtime-skills.js +3 -3
  77. package/dist/src/stall-recovery.d.ts +6 -2
  78. package/dist/src/stall-recovery.js +7 -2
  79. package/dist/src/terminal-ui.js +2 -2
  80. package/dist/src/time-limit.d.ts +53 -0
  81. package/dist/src/time-limit.js +79 -0
  82. package/dist/src/tools.js +92 -7
  83. package/dist/src/transcript.js +1 -1
  84. package/dist/src/types.d.ts +6 -0
  85. package/dist/src/usage-analytics.d.ts +3 -1
  86. package/dist/src/usage-analytics.js +16 -2
  87. package/package.json +6 -26
  88. package/docs/README.md +0 -36
  89. package/docs/agents/README.md +0 -62
  90. package/docs/agents/install-for-agents.md +0 -56
  91. package/docs/agents/mcp-server.md +0 -212
  92. package/docs/agents/subagent-mode.md +0 -149
  93. package/docs/concepts/README.md +0 -47
  94. package/docs/concepts/jev-actionable-routing.md +0 -113
  95. package/docs/concepts/jev-decision-thresholds.md +0 -412
  96. package/docs/concepts/jev-efficiency.md +0 -217
  97. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  98. package/docs/concepts/limits.md +0 -52
  99. package/docs/concepts/memory.md +0 -10
  100. package/docs/concepts/security.md +0 -50
  101. package/docs/concepts/workspace-instructions.md +0 -29
  102. package/docs/getting-started/README.md +0 -82
  103. package/docs/getting-started/accounts.md +0 -78
  104. package/docs/getting-started/configure-providers.md +0 -132
  105. package/docs/guides/README.md +0 -13
  106. package/docs/guides/browser.md +0 -39
  107. package/docs/guides/desktop-app.md +0 -414
  108. package/docs/guides/extensions.md +0 -102
  109. package/docs/guides/graph-builder.md +0 -116
  110. package/docs/guides/headless.md +0 -46
  111. package/docs/guides/tui.md +0 -75
  112. package/docs/guides/update.md +0 -70
  113. package/docs/guides/web-search.md +0 -51
  114. package/docs/guides/windows-code-signing.md +0 -319
  115. package/docs/llms.txt +0 -45
  116. package/docs/reference/README.md +0 -7
  117. package/docs/reference/cli.md +0 -76
  118. package/docs/reference/config.md +0 -91
  119. package/docs/reference/slash-commands.md +0 -59
  120. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  121. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  122. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  123. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  124. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  125. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  126. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  127. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  128. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  129. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  130. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  131. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  132. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  133. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  134. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  135. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  136. package/scripts/jev-efficiency-eval.mjs +0 -187
  137. package/scripts/jev-efficiency-live.mjs +0 -193
  138. package/scripts/zcode-engine-replay.mjs +0 -223
  139. package/tests/agent-centric-mcp-test-plan.md +0 -208
  140. package/tests/analytics-settings-test-plan.md +0 -165
  141. package/tests/browser-cli-smoke.mjs +0 -276
  142. package/tests/browser-test-plan.md +0 -280
  143. package/tests/chat-side-panel-test-plan.md +0 -309
  144. package/tests/decision-engine-test-plan.md +0 -163
  145. package/tests/default-active-jev-test-plan.md +0 -85
  146. package/tests/harness-extensions-test-plan.md +0 -113
  147. package/tests/jev-all-decisions-test-plan.md +0 -156
  148. package/tests/jev-efficiency/criteria.json +0 -158
  149. package/tests/jev-efficiency/workloads.mjs +0 -242
  150. package/tests/jev-efficiency-test-plan.md +0 -198
  151. package/tests/permissions-sandbox-probe.mjs +0 -74
  152. package/tests/permissions-test-plan.md +0 -191
  153. package/tests/product-telemetry-test-plan.md +0 -536
  154. package/tests/thinking-stream-preview-test-plan.md +0 -136
  155. package/tests/zcode-react-engine-test-plan.md +0 -396
@@ -160,7 +160,7 @@ export function formatEvent(event) {
160
160
  if (event.type === 'agent.model.retry')
161
161
  return { text: `\u2022 ${actor}Provider request retry ${line(data.retry)}/${line(data.maxRetries)} in ${formatRetryDelay(data.delayMs)}: ${line(data.reason)}` };
162
162
  if (event.type === 'graph.node.started')
163
- return { text: `Node: ${line(data.nodeName ?? data.nodeId)}${Number(data.visit) > 1 ? ` (visit ${line(data.visit)})` : ''}` };
163
+ return { text: `Step: ${line(data.nodeName ?? data.nodeId)}${Number(data.visit) > 1 ? ` (visit ${line(data.visit)})` : ''}` };
164
164
  if (event.type === 'agent.modifier.iteration.started' && Number(data.maxIterations) > 1)
165
165
  return { text: `${line(data.nodeName ?? data.nodeId)} - loop ${line(data.iteration)}/${line(data.maxIterations)}` };
166
166
  if (event.type === 'agent.modifier.copy.started' && Number(data.copies) > 1)
@@ -211,6 +211,12 @@ export interface ToolContext {
211
211
  * surfaces with no live permission control, where presenting a plan cannot proceed.
212
212
  */
213
213
  approvePlan?: () => Promise<import('./permissions.js').PermissionMode>;
214
+ /**
215
+ * Run `work` as a wait on something outside the run (a reviewer on GitHub, say), with every enclosing wall-time
216
+ * budget suspended for its duration, the way a question to the user is. Set by `bindUserWaits`; a surface with no
217
+ * budget leaves it unset and the caller runs the work directly.
218
+ */
219
+ waitOutside?: <T>(work: () => Promise<T>) => Promise<T>;
214
220
  onApprovalEvent?: (type: string, data: Record<string, unknown>) => void | Promise<void>;
215
221
  /** Browser lifecycle observations, scoped to the current coding session, never a tool-supplied identity. */
216
222
  onBrowserEvent?: (type: string, data: Record<string, unknown>) => void | Promise<void>;
@@ -29,7 +29,8 @@ export interface UsageAnalytics {
29
29
  * `jevInputTokens`/`jevOutputTokens` are the measured tokens of the run/nodes Jev was enabled on
30
30
  * — the only usage a bypass could have replaced, and so the base of the avoidance rate.
31
31
  * `contextEstimatedTurns` counts the bypasses whose input came from the journaled context size
32
- * rather than the last-measured-input fallback.
32
+ * rather than the last-measured-input fallback. `jevCalls` counts the requests Jev answered
33
+ * (`decision.completed`) — most shape a request rather than replace one, so it is not `bypassedTurns`.
33
34
  */
34
35
  totals: {
35
36
  inputTokens: number;
@@ -38,6 +39,7 @@ export interface UsageAnalytics {
38
39
  savedInputEstimate: number;
39
40
  savedOutputEstimate: number;
40
41
  bypassedTurns: number;
42
+ jevCalls: number;
41
43
  unestimatedTurns: number;
42
44
  contextEstimatedTurns: number;
43
45
  jevInputTokens: number;
@@ -57,6 +57,7 @@ export function createUsageCollector(windowDays, now = new Date(), resolveProvid
57
57
  const jevNodes = new Set();
58
58
  let unestimatedTurns = 0;
59
59
  let contextEstimatedTurns = 0;
60
+ let jevCalls = 0;
60
61
  const dayFor = (date) => {
61
62
  let day = days.get(date);
62
63
  if (!day) {
@@ -128,6 +129,13 @@ export function createUsageCollector(windowDays, now = new Date(), resolveProvid
128
129
  // Jev was enabled there. Run-level notices carry no node and mark nothing.
129
130
  if (typeof data?.runId === 'string' && typeof data.nodeId === 'string')
130
131
  jevNodes.add(JSON.stringify([data.runId, data.nodeId]));
132
+ // An answered Jev request. Counted apart from the bypasses: a preflight answer picks tools and
133
+ // skills for a call that is still made, so most Jev calls skip nothing.
134
+ if (event.type === 'decision.completed') {
135
+ if (date >= cutoff)
136
+ jevCalls++;
137
+ return;
138
+ }
131
139
  if (event.type !== 'decision.turn_bypassed')
132
140
  return;
133
141
  const identity = typeof data?.runId === 'string' && typeof data.nodeId === 'string' ? JSON.stringify([data.runId, data.nodeId]) : undefined;
@@ -174,6 +182,7 @@ export function createUsageCollector(windowDays, now = new Date(), resolveProvid
174
182
  savedInputEstimate: orderedModels.reduce((sum, row) => sum + row.savedInputEstimate, 0),
175
183
  savedOutputEstimate: orderedModels.reduce((sum, row) => sum + row.savedOutputEstimate, 0),
176
184
  bypassedTurns: orderedDays.reduce((sum, day) => sum + day.bypassedTurns, 0),
185
+ jevCalls,
177
186
  unestimatedTurns,
178
187
  contextEstimatedTurns,
179
188
  jevInputTokens: 0,
@@ -200,8 +209,9 @@ const MAX_CACHE_RECORDS_TOTAL = 250_000;
200
209
  /**
201
210
  * 2: files are re-read once to capture the `j` markers version 1 never stored.
202
211
  * 3: and again for the bypass accounting fields (`i`, `p`, `m` on `b`) version 2 never stored.
212
+ * 4: and again for the answered Jev calls (`d`), which earlier versions folded into one `j` marker.
203
213
  */
204
- const CACHE_VERSION = 3;
214
+ const CACHE_VERSION = 4;
205
215
  const NAME_PATTERN = /^[a-zA-Z0-9_-]{1,64}\.jsonl$/;
206
216
  /** The largest window the collector accepts; files older than its bound are never replayed. */
207
217
  const MAX_WINDOW_DAYS = 365;
@@ -242,6 +252,8 @@ const slimOf = (record) => {
242
252
  if (typeof event?.type !== 'string' || !event.type.startsWith('decision.'))
243
253
  return undefined;
244
254
  const data = asObject(event.data);
255
+ if (event.type === 'decision.completed')
256
+ return { k: 'd', t: item.time, ...(typeof data?.runId === 'string' ? { r: data.runId } : {}), ...(typeof data?.nodeId === 'string' ? { n: data.nodeId } : {}) };
245
257
  if (event.type !== 'decision.turn_bypassed')
246
258
  return typeof data?.runId === 'string' && typeof data.nodeId === 'string'
247
259
  ? { k: 'j', t: item.time, r: data.runId, n: data.nodeId } : undefined;
@@ -265,7 +277,7 @@ const replayOf = (slim) => slim.k === 'r'
265
277
  : {
266
278
  type: 'runtime.event', time: slim.t,
267
279
  // The collector reads a marker's run and node only, so one type stands in for all of them.
268
- event: { type: slim.k === 'b' ? 'decision.turn_bypassed' : 'decision.ready', data: {
280
+ event: { type: slim.k === 'b' ? 'decision.turn_bypassed' : slim.k === 'd' ? 'decision.completed' : 'decision.ready', data: {
269
281
  ...(slim.r === undefined ? {} : { runId: slim.r }), ...(slim.n === undefined ? {} : { nodeId: slim.n }),
270
282
  ...(slim.k === 'b' && slim.i !== undefined ? { estimatedInputTokens: slim.i } : {}),
271
283
  ...(slim.k === 'b' && slim.p !== undefined ? { providerId: slim.p } : {}),
@@ -290,6 +302,8 @@ const validSlim = (value) => {
290
302
  && (item.p === undefined || typeof item.p === 'string') && (item.m === undefined || typeof item.m === 'string');
291
303
  if (item.k === 'j')
292
304
  return typeof item.r === 'string' && typeof item.n === 'string';
305
+ if (item.k === 'd')
306
+ return true;
293
307
  if (item.k !== 'r')
294
308
  return false;
295
309
  if (typeof item.p !== 'string' || typeof item.m !== 'string')
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@andorra-labs/code",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Terminal-first coding agent with a ReAct graph runtime",
5
+ "homepage": "https://andorracode.com",
5
6
  "license": "SEE LICENSE IN LICENSE.md",
6
7
  "type": "module",
7
8
  "bin": {
@@ -10,34 +11,12 @@
10
11
  },
11
12
  "files": [
12
13
  "dist/src",
13
- "README.md",
14
+ "dist/vendor/engine",
15
+ "dist/vendor/zcode",
14
16
  "LICENSE.md",
15
17
  "THIRD_PARTY_NOTICES.md",
16
18
  "licenses/ZCODE-APACHE-2.0.txt",
17
- "licenses/GEIST-OFL-1.1.txt",
18
- "docs",
19
- "tests/decision-engine-test-plan.md",
20
- "tests/jev-efficiency-test-plan.md",
21
- "tests/jev-efficiency/workloads.mjs",
22
- "tests/jev-efficiency/criteria.json",
23
- "scripts/jev-efficiency-eval.mjs",
24
- "scripts/jev-efficiency-live.mjs",
25
- "tests/default-active-jev-test-plan.md",
26
- "tests/jev-all-decisions-test-plan.md",
27
- "tests/permissions-test-plan.md",
28
- "tests/permissions-sandbox-probe.mjs",
29
- "tests/thinking-stream-preview-test-plan.md",
30
- "dist/vendor/engine",
31
- "dist/vendor/zcode",
32
- "tests/browser-test-plan.md",
33
- "tests/browser-cli-smoke.mjs",
34
- "scripts/zcode-engine-replay.mjs",
35
- "tests/zcode-react-engine-test-plan.md",
36
- "tests/harness-extensions-test-plan.md",
37
- "tests/chat-side-panel-test-plan.md",
38
- "tests/agent-centric-mcp-test-plan.md",
39
- "tests/analytics-settings-test-plan.md",
40
- "tests/product-telemetry-test-plan.md"
19
+ "licenses/GEIST-OFL-1.1.txt"
41
20
  ],
42
21
  "engines": {
43
22
  "node": ">=22.19.0"
@@ -77,6 +56,7 @@
77
56
  "@anthropic-ai/sdk": "0.124.0",
78
57
  "@colbymchenry/codegraph": "^1.6.0",
79
58
  "@google/genai": "2.21.0",
59
+ "@hyzyla/pdfium": "3.0.0",
80
60
  "@modelcontextprotocol/sdk": "^1.31.0",
81
61
  "@napi-rs/keyring": "^2.1.0",
82
62
  "@peculiar/x509": "2.1.0",
package/docs/README.md DELETED
@@ -1,36 +0,0 @@
1
- # Andorra Code
2
-
3
- Andorra Code is a terminal-first coding agent. Run `andorra` in a project folder and it researches the repository, asks what you need, and implements the work with your own model providers. Instead of one opaque agent loop, work runs on a **graph**: visible stages, decisions, and handoffs that you can inspect, edit, and rerun.
4
-
5
- ```sh
6
- # after installing (see Getting started)
7
- cd /path/to/your/project
8
- andorra
9
- ```
10
-
11
- ## Where to start
12
-
13
- | Page | What it covers |
14
- | --- | --- |
15
- | [Getting started](getting-started/README.md) | Install Andorra Code, configure a provider, run your first task |
16
- | [Give these instructions to an AI agent](agents/install-for-agents.md) | A copy-paste block that lets another coding agent install and set up Andorra Code for you |
17
- | [Accounts, membership, and hosted Jev](getting-started/accounts.md) | Signing in, free and paid access, the `/jev` routing service |
18
- | [Concepts](concepts/README.md) | Graphs, agent nodes, providers, memory, limits, and security boundaries |
19
- | [Guides](guides/README.md) | The TUI, the visual Graph Builder, headless runs, extensions, the browser and desktop clients |
20
- | [Reference](reference/README.md) | CLI commands and flags, slash commands, configuration files |
21
- | [For AI agents](agents/README.md) | How an agent should read this documentation |
22
-
23
- ## The short version
24
-
25
- - **CLI-first.** `andorra` opens the TUI. `andorra graph` opens the local browser Graph Builder. There is no required cloud service for the coding loop: it runs on your machine with your providers.
26
- - **Bring your own models.** OpenAI-compatible endpoints, Anthropic, Codex (ChatGPT subscription sign-in), and local servers such as LM Studio. See [Configure providers](getting-started/configure-providers.md).
27
- - **The graph is the harness.** Out of the box, `andorra` runs a single Andorra Agent on the bundled default graph. Free accounts can build one small custom graph; paid members can select the Orchestrator workflow (`/graph` or `--graph :andorra`) and build any number of custom graphs with per-agent models, tools, instructions, typed handoffs, loops, and joins. See [Concepts](concepts/README.md).
28
- - **Agent-readable.** Every page here is written in Markdown, and [`llms.txt`](/llms.txt) indexes them for AI agents. See [For AI agents](agents/README.md).
29
-
30
- ## Documentation map
31
-
32
- - **Getting started** — install, first run, providers, accounts.
33
- - **Concepts** — what the runtime actually does: the graph model, context handling, limits, security.
34
- - **Guides** — task-oriented how-tos for every client and mode.
35
- - **Reference** — exact CLI and configuration surface.
36
- - **For AI agents** — machine-facing entry points, including graph authoring over the local MCP server (the supported surface for agents; the Graph Builder is the editor for people).
@@ -1,62 +0,0 @@
1
- # For AI agents
2
-
3
- This page is written for AI agents (and the people who configure them). Andorra Code is an agent-centric tool, so its documentation is designed to be read by machines as well as humans.
4
-
5
- ## Reading these docs
6
-
7
- Every page you are reading is published on the documentation site. The rendered page is at `/docs/<page>`; the same page as plain markdown, exactly as it is written here, is at `/docs-md/<path>`:
8
-
9
- ```text
10
- /docs-md/getting-started/README.md
11
- ```
12
-
13
- `llms.txt` at the site root is a curated index of every page with a one-line description, following the emerging `llms.txt` convention. Start there, then fetch only the pages you need:
14
-
15
- ```text
16
- /llms.txt
17
- ```
18
-
19
- ## Authoring a graph: use the MCP server
20
-
21
- When an agent creates or edits a graph, the MCP server is the surface to use — not the Graph Builder. The Graph Builder is a browser application for people; the MCP server is the documented authoring API for agents, and it needs no browser, no mouse, and no UI state to coordinate.
22
-
23
- ```text
24
- andorra mcp-server --stdio
25
- ```
26
-
27
- - **It does not run the graph you authored and opens no network listener.** Authoring and running are separate steps: publish a revision over MCP, then run it with `andorra --graph <id>`.
28
- - **Graph access requires a signed-in account.** A free account is held to its allowance of one custom graph of up to three nodes; legacy and paid accounts are not. If the account signs out or switches during a call, the server fails closed with `AUTH_CHANGED` instead of disclosing another account's graphs.
29
- - **Every Agent node you create must name a provider ID from `andorra_providers_list`.** Never assume the session provider is inherited; `NODE_PROVIDER_MISSING` and `NODE_PROVIDER_INVALID` mean the node, not the call, is wrong.
30
- - **Read the architecture resource before designing.** `andorra_graph_guide` returns the node types, ports, edge rules, and error contract — including that `agent`, `condition`, `loop`, `approval`, `join`, `parallel`, `action`, and `end` are the node types, and that every declared outcome needs an outgoing edge unless the node sets `completion.requireRoutes: false`. Do not guess at node fields from an example alone, and do not add edges or End nodes just to satisfy a route an agent deliberately left terminal.
31
- - **Follow the documented sequence and never skip validation.** `andorra_graph_begin` → `andorra_graph_node_upsert` / `andorra_graph_edge_upsert` / `andorra_graph_patch` → `andorra_graph_validate` → `andorra_graph_publish`. Fix every reported issue; do not suppress them by widening schemas or dropping outcomes.
32
- - **Cycles need a ceiling.** A failure route back to an earlier node is a cycle, so set `limits.maxNodeVisits` (or a wall clock) and make the ceiling large enough for the intended reentries.
33
- - **Drafts are process-local and expire after an hour of disuse.** Exiting the MCP process discards unpublished work, so finish the sequence in one session.
34
- - **Publishing is local-first.** A successful `andorra_graph_publish` is durable locally but is **not** cloud confirmation; report the sync state rather than claiming the graph was backed up.
35
- - **Do not drive the Graph Builder UI to author a graph.** Open it only for human editing or to show a person the result visually. If you do use it, expect an online account check before it starts.
36
-
37
- ## What an agent should know
38
-
39
- - **Install and setup** — [Give these instructions to an AI agent](install-for-agents.md) is a deterministic, copy-pasteable procedure for installing Andorra Code and configuring a provider. Follow it verbatim; it lists every decision point.
40
- - **CLI surface** — [Reference: CLI](../reference/cli.md) lists every subcommand and flag; [Reference: slash commands](../reference/slash-commands.md) covers the in-TUI commands.
41
- - **Headless automation** — `andorra --prompt "..." --json --no-tui` runs one task and prints a machine-readable result object with status, run ID, usage, and tool count. Exit codes: `0` success, `1` failure/exhaustion, `130` cancellation, `143` termination (SIGTERM). See [Headless mode](../guides/headless.md).
42
- - **Workspace instructions** — Andorra reads project-root `ANDORRA.md`, falling back to `AGENTS.md` only when the preferred file is absent; names match in any case. If you are preparing a repository for Andorra, put workspace instructions in `ANDORRA.md`. See [Workspace instructions](../concepts/workspace-instructions.md).
43
- - **Driving Andorra over MCP** — The same local stdio MCP server (`andorra mcp-server --stdio`) is how an agent outside Andorra authors and inspects graphs and reports on sessions. An agent inside one of Andorra's own nodes uses the built-in `graphs` tool, which offers the same graph operations without a server. See [Agent MCP server](mcp-server.md).
44
-
45
- ### Choosing a surface
46
-
47
- | The task | Use |
48
- | --- | --- |
49
- | Create or edit a graph | MCP server (`andorra_graph_*` tools); inside Andorra, the built-in `graphs` tool |
50
- | Run one task and read a machine-readable result | `andorra --prompt "..." --json` |
51
- | Watch sessions, find a run that needs input | MCP session tools |
52
- | Edit a graph by hand, or show one to a person | Graph Builder (`andorra graph`) |
53
- | Answer an Orchestrator's intake questions | an interactive session; headless returns `needs_clarification` |
54
-
55
- ## Grounding rules for agents
56
-
57
- 1. Prefer this documentation over assumptions about CLI behavior; flags and commands change between revisions and the docs track the current `main`.
58
- 2. Do not run interactive TUI commands when automating; use the headless flags or the MCP server.
59
- 3. Author graphs over the MCP server, and read `andorra_graph_guide` before designing one. The Graph Builder is for people, not for agents.
60
- 4. Treat exit code `1` with status `needs_clarification` as a request for human input, not a retryable failure — answer it in an interactive session.
61
- 5. Never put credentials in handoff data, graph JSON, or workspace instruction files; provider keys live in the operating system credential store (`~/.andorracode/config.json` only where there is none) or in environment variables.
62
- 6. Report what you actually ran and saw. A build that compiles is not evidence that the change works, and a published revision is not evidence that the cloud copy exists.
@@ -1,56 +0,0 @@
1
- # Give these instructions to an AI agent
2
-
3
- If you use another AI coding agent (Hermes, Codex, Claude Code, etc.), paste the block below into it. The agent can then install Andorra Code on your machine, configure a provider, and verify the install without further decisions from you.
4
-
5
- Before pasting, fill in the bracketed value: which provider to configure. Everything else is deterministic.
6
-
7
- ````markdown
8
- Install Andorra Code (a terminal-first coding agent) on this machine and verify it works.
9
-
10
- Prerequisites you must check first:
11
- - Node.js 22.19 or newer (`node --version`). If missing or older, install the current LTS
12
- from nodejs.org (or via the system's package manager) before continuing. npm ships with it.
13
- - Network access to registry.npmjs.org and to the model provider endpoint below.
14
- - If the provider preset below is "ChatGPT / Codex": the official OpenAI Codex CLI must already be
15
- installed and signed in with ChatGPT (install @openai/codex and run `codex login`), or
16
- ANDORRA_CODEX_PATH must point at its executable. Without it, configuring the Codex
17
- provider fails — check this before step 3 when that preset is chosen.
18
-
19
- Steps (run verbatim, stopping to report if any step fails):
20
- 1. npm install -g @andorra-labs/code
21
- 2. Verify: `andorra --version` must print a version number. If `andorra` is not found, the
22
- npm global bin directory is not on PATH — report that; do not edit shell profiles silently.
23
-
24
- Provider configuration (interactive, needs the human once):
25
- 3. Tell the user to run `andorra` in any folder, type `/providers`, press Enter, choose
26
- "Add provider", select the "<provider preset, exactly as the picker labels it: DeepSeek | Kimi / Moonshot | Kimi For Coding (Global) | Kimi For Coding (China) | GLM Coding Plan (Z.ai) | OpenAI | Anthropic | Local server | ChatGPT / Codex | Claude subscription | Grok subscription (Grok CLI) | OpenCode (CLI sign-in) | OpenCode Go | Custom provider>"
27
- preset, and provide credentials one of these two ways:
28
- - Paste their API key into the masked **API key** field (saved locally), or
29
- - Enter a variable name (e.g. OPENAI_API_KEY) in the **Environment fallback** field AND
30
- export that variable in the shell before starting. Exporting alone does nothing: the
31
- fallback field is what tells Andorra to read the environment.
32
- Settings save only after choosing "Save changes".
33
-
34
- Verification (optional, non-interactive):
35
- 4. `andorra --version`
36
- 5. `andorra auth status` — reports the Andorra account session (signed out is fine;
37
- accounts are optional and only needed for hosted Jev and custom graphs).
38
-
39
- Notes:
40
- - To update later: run `andorra update` from any directory. It installs the latest npm
41
- release of @andorra-labs/code and never downgrades.
42
- - Configuration lives in ~/.andorracode (override with ANDORRACODE_HOME). Saved API keys
43
- go to the operating system credential store. On Linux without one they stay in
44
- ~/.andorracode/config.json, so never commit or share that file.
45
- ````
46
-
47
- ## What the human still has to do
48
-
49
- Two things cannot be automated away:
50
-
51
- 1. **The API key.** Provider keys are secrets; paste them yourself in the masked field, or export the environment variable yourself.
52
- 2. **The optional account.** Run `andorra login` yourself if you want hosted Jev routing or custom graphs — the browser sign-in is interactive. See [Accounts](../getting-started/accounts.md).
53
-
54
- ## Installing from source instead
55
-
56
- To run unreleased changes, clone and link the repository as [Getting started](../getting-started/README.md#install-from-source) describes. `andorra update` does not update a source checkout: pull and rebuild it yourself, or switch to the npm release with `npm install -g @andorra-labs/code@latest`.
@@ -1,212 +0,0 @@
1
- # Agent-centric MCP for Andorra Code
2
-
3
- ## How it works
4
-
5
- Andorra Code ships a **local stdio MCP server** for agents that author and inspect graphs from outside Andorra, such as Claude Code, Codex, Hermes and OpenClaw. **This is the supported surface for an outside agent to create or edit a graph.** Agents running inside one of Andorra's own graph nodes do not need it: the engine gives them the same graph operations as its built-in `graphs` tool (see [Inside Andorra](#inside-andorra-the-built-in-graphs-tool)). The [Graph Builder](../guides/graph-builder.md) is the same authoring capability for people, and both write to the same graph store; an agent should not drive that browser UI to author a graph. The server does **not** execute an arbitrary authored graph, and it opens no network listener. It
6
- does run one fixed graph — the bundled Andorra Agent harness — for hosts that want Andorra as
7
- a subagent (see [Subagent mode](subagent-mode.md)). That fixed harness is the only execution the
8
- server does: no surface of it selects a graph, and the run it does make permits writes by
9
- default, so a host that exposes the server to an agent is granting that agent write access to
10
- the workspace it names.
11
-
12
- 1. An MCP client starts Andorra with the command below, discovers the tools, and reads the graph architecture resource.
13
- 2. The agent lists valid providers and graphs, starts a new or existing ephemeral graph draft, and creates or edits nodes and links.
14
- 3. Each Agent node authored through MCP must name a configured provider ID. Older published graphs may inherit the session provider; this does not change their persisted semantics.
15
- 4. The agent validates the draft. Missing provider and outcome edges receive named error codes with node IDs and ports.
16
- 5. The agent publishes. Publication saves the next immutable revision locally and then synchronizes to the cloud in the background, so a successful publication is locally durable but is **not** cloud confirmation.
17
-
18
- ### Installation and MCP clients
19
-
20
- Build/install Andorra Code, sign in to your Andorra account to edit graphs (a free account holds one custom graph of up to three nodes), and configure providers from Andorra's /providers screen. Then connect the server from the agent host:
21
-
22
- ```bash
23
- npm install
24
- npm run build
25
- andorra login
26
- andorra
27
- ```
28
-
29
- Illustrative client configuration (adapt the field names to the MCP host's format):
30
-
31
- ```json
32
- {
33
- "mcpServers": {
34
- "andorra-code": {
35
- "command": "andorra",
36
- "args": ["mcp-server", "--stdio"]
37
- }
38
- }
39
- }
40
- ```
41
-
42
- For a repository checkout, an equivalent executable is node <checkout>/dist/src/cli.js mcp-server --stdio. The protocol is stdin/stdout; do not parse the process's stdout as human terminal text. Don't accidentally configure the same server as a recursively self-launched Andorra runtime tool.
43
-
44
- ## MCP subagent tools
45
-
46
- Four tools run Andorra as a subagent for the calling agent. They execute the bundled Software
47
- Engineer graph and nothing else: no graph is named, offered or selectable.
48
-
49
- | Tool | Input | Answers |
50
- | --- | --- | --- |
51
- | `andorra_subagent_start` | `prompt` (required), `provider?`, `model?`, `permissions?` (`full-access` or `read-only`), `workspace?` | the run's id, session id, provider, model and permissions |
52
- | `andorra_subagent_status` | `runId` (required) | the run: state, current node, recent events |
53
- | `andorra_subagent_result` | `runId` (required), `waitMs?` (0–60000) | the finished result, or `running` |
54
- | `andorra_subagent_cancel` | `runId` (required) | whether a run was cancelled |
55
-
56
- A provider/model is mandatory. Without one the start is refused with `PROVIDER_NOT_SET` and the
57
- error carries every configured provider with its models, so the calling agent can show the list to
58
- its user and retry with the choice. The full contract is in [Subagent mode](subagent-mode.md).
59
-
60
- ## Inside Andorra: the built-in `graphs` tool
61
-
62
- An agent running in an Andorra graph node gets every graph operation below as one built-in tool, `graphs`, with no server to configure and no `andorra` command needed on PATH. It calls `graphs` with `action` set to the operation's name and the operation's arguments in `args`:
63
-
64
- ```json
65
- { "action": "andorra_graph_begin", "args": { "mode": "create", "id": "qa-flow", "name": "QA Flow" } }
66
- ```
67
-
68
- - The tool runs the same backend as this server, in the engine's own process. It is loaded the first time a graph action runs, shared by every task in that process, and closed after an hour without graph actions; tasks that never touch graphs pay nothing beyond its one schema.
69
- - Like other external tools it needs a node with shell permission and is not given to delegated subagents.
70
- - `andorra_graph_publish`, `andorra_graph_delete` and `andorra_graph_restore` ask for permission like an automation change, and are refused in plan mode. Drafts and reads do not ask.
71
- - The session, project and subagent tools stay MCP-only.
72
-
73
- ## MCP graph tools
74
-
75
- | Tool | Purpose |
76
- | --- | --- |
77
- | andorra_graph_guide | Returns the architecture, examples, node ports and machine-readable error contract |
78
- | andorra_providers_list | Provider IDs, models and types, **no credentials** |
79
- | andorra_graphs_list | List published graph IDs, names and revisions; deleted graphs only with `includeDeleted: true` |
80
- | andorra_graph_get | Read the exact saved latest or selected immutable revision, without editor-only migration |
81
- | andorra_graph_begin | Begin new or existing graph draft (mode create/edit, id, name for create); returns draftId |
82
- | andorra_graph_node_upsert | Create/replace a whole node with prompt, provider, completion, permissions and other settings |
83
- | andorra_graph_node_patch | Change a node's prompt/instruction/systemPrompt, provider, model or completion without replacing unrelated fields |
84
- | andorra_graph_node_remove | Remove a non-entry node and its edges |
85
- | andorra_graph_edge_upsert | Create/update an edge source -> target with an explicit named outcome |
86
- | andorra_graph_edge_remove | Delete an edge by ID |
87
- | andorra_graph_patch | Set entry, name, limits, schemas, widgets and metadata |
88
- | andorra_graph_validate | Validate without saving; return all missing-provider and missing-outcome issues, plus structural error |
89
- | andorra_graph_publish | Validate and save the next immutable revision, or report revision conflict |
90
- | andorra_graph_discard | Drop an uncommitted draft |
91
- | andorra_graph_delete | Soft-delete a graph (`id`, `expectedRevision`, `confirm` repeating the id) after the user confirms in chat |
92
- | andorra_graph_restore | Restore a soft-deleted graph (`id`, `expectedRevision`) |
93
-
94
- Graph architecture is also exposed as a resource with URI andorra://graph/architecture. A third-party agent should read this before trying to design workflows. Agent completion outcomes may be pass/fail or custom names, Condition uses true/false ports, Loop uses body/done ports and bounded iteration counts, Approval uses approved/rejected, and Join all cannot wait for mutually exclusive branches. All nodes must be reachable from entry and every declared required outcome must route. See the resource for the full node and edge rules.
95
-
96
- ### Example authoring sequence
97
-
98
- 1. Call andorra_providers_list and use one of its IDs (the value "local" below is only an example).
99
- 2. Call andorra_graph_begin with:
100
-
101
- ```json
102
- {"mode":"create","id":"ci-qa","name":"CI QA"}
103
- ```
104
-
105
- 3. Call andorra_graph_node_upsert with the returned draftId:
106
-
107
- ```json
108
- {
109
- "draftId": "<draftId>",
110
- "node": {
111
- "id": "check",
112
- "name": "Run QA",
113
- "type": "agent",
114
- "provider": "local",
115
- "instruction": "Run tests and report pass or fail with evidence.",
116
- "completion": {"mode": "outcomes", "outcomes": ["pass", "fail"]}
117
- }
118
- }
119
- ```
120
-
121
- 4. Create two End nodes (IDs accepted, review). Call andorra_graph_patch with patch {"entry":"check"}.
122
- 5. Call andorra_graph_edge_upsert twice:
123
-
124
- ```json
125
- {"draftId":"<draftId>","edge":{"id":"pass-edge","source":"check","outcome":"pass","target":"accepted"}}
126
- ```
127
- ```json
128
- {"draftId":"<draftId>","edge":{"id":"fail-edge","source":"check","outcome":"fail","target":"review"}}
129
- ```
130
-
131
- 6. Call andorra_graph_validate. After valid=true, call andorra_graph_publish.
132
-
133
- To make a Loop, create a Loop node with loop.maxIterations and link its body and done ports. Node visits are unlimited by default: `graph.limits.maxNodeVisits` is absent, and `0` there means the same thing. A graph with a return connection still needs a ceiling, so set `graph.limits.maxNodeVisits` high enough for each cycle/reentry, or set `graph.limits.wallTimeMs` to bound the run by the clock instead. The existing graph validator remains the authority for reachable links, cycles, schemas and Join dependencies.
134
-
135
- ### Deleting and restoring a graph
136
-
137
- Deleting is a soft delete. `andorra_graph_delete` publishes the next revision with `metadata.deletedAt` set; no file is removed, and every earlier revision stays stored locally and in the cloud. Cloud sync carries that revision to the account's other machines like any publish. Removing the files instead would not work: sync restores every graph the account holds.
138
-
139
- A deleted graph leaves `andorra_graphs_list` (unless `includeDeleted` is true), `/graph`, the desktop graph picker and the Graph Builder, and new runs refuse it with "Graph <name> was deleted. Restore it before running it." A saved default selection that names it falls back to the Default graph until it is restored. Sessions that already ran it keep resuming. `andorra_graph_get` still reads it and reports `deletedAt`; `andorra_graph_begin` with `mode=edit` refuses it.
140
-
141
- `andorra_graph_restore` publishes the next revision without the marker. A deleted graph still counts toward a free account's one custom graph, so a free account restores it rather than replacing it.
142
-
143
- Refusals: `DEFAULT_GRAPH` (the Default graph or the Andorra preset), `CONFIRMATION_MISMATCH` (`confirm` is not the id), `GRAPH_IN_USE` (an automation runs the graph; `automations` lists them), `GRAPH_DELETED` (already deleted, or an edit of a deleted graph), `GRAPH_NOT_DELETED` (restore of a live graph), and `REVISION_CONFLICT` when `expectedRevision` is not the latest. `metadata.deletedAt` is reserved: `andorra_graph_patch`, publishing and Graph Builder saves refuse it (`RESERVED_METADATA`), so a graph is deleted only through the delete tool.
144
-
145
- ### Validation errors
146
-
147
- Every MCP tool returns a JSON text payload with ok/data or ok/error. A failed call sets MCP isError=true. For example, omitting a fail branch yields:
148
-
149
- ```json
150
- {
151
- "ok": false,
152
- "error": {
153
- "code": "NODE_ROUTE_MISSING",
154
- "nodeId": "check",
155
- "port": "fail",
156
- "message": "Node check: fail does not have a valid path. Please set a valid path for fail.",
157
- "issues": [
158
- {"code":"NODE_ROUTE_MISSING","nodeId":"check","port":"fail","message":"Node check: fail does not have a valid path. Please set a valid path for fail."}
159
- ]
160
- }
161
- }
162
- ```
163
-
164
- Creating or modifying an Agent node without a provider returns NODE_PROVIDER_MISSING with nodeId and the text "Provider not set. Please select a valid provider." Untouched Agent nodes in previously saved graphs can continue to inherit the session provider; renaming the graph or changing an edge does not require backfilling their providers. Invalid explicit provider IDs return NODE_PROVIDER_INVALID. Other distinct errors include GRAPH_NOT_FOUND (unknown published graph ID/revision), EDGE_SOURCE_MISSING, EDGE_TARGET_MISSING, EDGE_OUTCOME_INVALID, EDGE_DUPLICATE, NODE_NOT_FOUND, ENTRY_NOT_FOUND, DRAFT_NOT_FOUND, AUTH_CHANGED (account switched during entitlement verification), and REVISION_CONFLICT. The latter is corrected by reopening latest, replaying the changes and publishing again: no silent overwrite. `GRAPH_INVALID` is reserved for actual graph-validator failures. Failures reading installation data instead return `STORAGE_ERROR` (filesystem access) or `BACKEND_ERROR` (unexpected backend/configuration failure), including for non-graph MCP tools; these errors do not instruct an agent to repair a graph.
165
-
166
- Drafts belong to the MCP process and expire after one hour since last use; a maximum of 24 are permitted. Exiting the MCP process discards any unpublished work. Cloud save and other GUI edits are reconciled by expected revision when publishing.
167
-
168
- ## MCP sessions and monitoring
169
-
170
- | Tool | Function |
171
- | --- | --- |
172
- | andorra_projects_list | List registered projects and workspaces discovered from saved sessions |
173
- | andorra_sessions_list | Filter all local saved sessions by projectName, projectPath, status, lookbackMinutes, updatedAfter, updatedBefore, includeArchived, offset and limit |
174
- | andorra_session_get | Fetch one session's status and bounded recent turn excerpts (historyLimit max 20) |
175
- | andorra_sessions_attention | Find required_input and incomplete sessions for a supervising agent |
176
-
177
- Session status values:
178
- - **completed** — latest saved attempt succeeded; missing completion status means normal success
179
- - **pending** — empty session with no attempted turn
180
- - **running** — an active run with a living owner and no currently pending interaction
181
- - **required_input** — a live approval or question, or a stopped needs_clarification attempt
182
- - **incomplete** — cancelled/interrupted/exhausted/infrastructure failure, or a saved running marker with no live owner
183
-
184
- Examples:
185
- - Sessions for a project: {"projectName":"SparkAccel"}
186
- - Sessions updated in the last 15 minutes: {"lookbackMinutes":15}
187
- - Human feedback needed for a project: andorra_sessions_attention with {"projectName":"SparkAccel","lookbackMinutes":120}
188
- - All incomplete sessions: andorra_sessions_list with {"status":"incomplete"}
189
- - Latest 25 completed sessions in one workspace: {"projectPath":"/path/to/project","status":"completed","limit":25}
190
-
191
- Filtering by projectName uses an exact case-insensitive display-name match, and resolves an unregistered workspace by its folder name. Duplicate display names fail with AMBIGUOUS_PROJECT so an agent can specify projectPath instead. Result pages include total and nextOffset, limit max 100. Archived records are included by default; set includeArchived=false to exclude them.
192
-
193
- The app-server persists a minimal per-run sidecar during a pending **question** or **approval**, then removes it once settled. It contains the kind, a bounded prompt, IDs and timestamp, never tool arguments or provider credentials. A sidecar only signals live required input when the run claim is active; a stale file does not create a false request. A terminal-only CLI prompt does not currently use this app-server sidecar, so those live waits may be reported as running until an outcome is saved.
194
-
195
- A Hermes/OpenClaw supervisor can poll andorra_sessions_attention and notify the user when session ID/status/run ID changes. **Andorra MCP does not itself schedule polling or send alerts.** That belongs to the external agent. The server only inspects sessions persisted in the local ANDORRACODE_HOME. It does not aggregate histories from other remote-workspace hosts, and does not expose an MCP tool for automatically approving or answering a user question.
196
-
197
- ## Behavior guarantees
198
-
199
- - **Revisions are immutable.** `andorra_graph_get` returns the unchanged published snapshot for the selected revision. Older schema revisions are not automatically migrated in read results; only `andorra_graph_begin mode=edit` produces an editor-ready draft for modification. This prevents an external agent from reasoning about an Orchestrator or route that did not exist in the requested immutable revision.
200
- - **The account is rechecked.** `andorra_graphs_list`, `andorra_graph_get`, and graph draft initialization recheck the current authenticated account after their storage reads. If you sign out or switch accounts in that window, the call fails closed with `AUTH_CHANGED` instead of disclosing the former account's graphs. A `revision` passed to `andorra_graph_get` must be a positive safe integer: invalid values such as `"1"`, `null`, fractions, and zero return `INVALID_ARGUMENTS` rather than silently selecting the latest revision.
201
- - **A crashed run is reported as such.** A run that dies before its turn is saved is reported as `incomplete` with a `crashedAttempt` run ID and timestamp, instead of continuing to show the older `completed` turn. Crash markers hold IDs and timestamps only, never task data or credentials, and only the newest unresolved marker per session is kept.
202
- - **Providers are rechecked before publishing.** A removed provider profile cannot be published, and a graph published after a provider reload still names the provider that was checked.
203
-
204
- ## Security and limitations
205
-
206
- - Only trusted local MCP clients should launch the server. Session names, tasks and summarized content may reveal confidential project details.
207
- - Graph access requires a signed-in account that the membership service has confirmed — free accounts within the free graph allowance, legacy and paid accounts without it — with a verdict bound to the **same account subject** that owns the graph directory; an account switch during verification or pre-publish synchronization fails closed. Provider credentials are not returned. Providers are rechecked after pre-publish synchronization so a removed profile cannot be published.
208
- - Edits are drafts until publication. Graph revisions are immutable and conflict-protected. The graph authoring tools never execute submitted code.
209
- - The subagent tools execute only the bundled Andorra Agent graph, and only with a provider and model the caller named (or the saved `externalSubagent` setting). They never edit a graph, never select one, and never run a paid or custom workflow.
210
- - Graph publication is local-first; cloud sync can be delayed. The returned sync state describes whether it is pending/offline.
211
- - Open interactive inputs are recognized from the app-server sidecars, not every possible terminal prompt.
212
- - Session scope is local; remote-workspace/global session aggregation and streaming notifications are future extensions.