@andorra-labs/code 0.1.10 → 0.1.12
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.
- package/README.md +31 -205
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/src/agent-execution.js +50 -2
- package/dist/src/agent-mcp.js +5 -0
- package/dist/src/app-server/protocol.d.ts +9 -1
- package/dist/src/app-server/protocol.js +1 -1
- package/dist/src/app-server.d.ts +49 -1
- package/dist/src/app-server.js +353 -64
- package/dist/src/automation-service.js +1 -1
- package/dist/src/browser-panel-tool.d.ts +24 -3
- package/dist/src/browser-panel-tool.js +80 -6
- package/dist/src/browser-runner.js +3 -1
- package/dist/src/browser-session.d.ts +8 -0
- package/dist/src/browser-session.js +27 -1
- package/dist/src/browser-ui/app.js +237 -15
- package/dist/src/browser-ui/index.html +5 -5
- package/dist/src/browser-ui/style.css +110 -65
- package/dist/src/browser-ui/tokens.css +27 -26
- package/dist/src/browser-view.d.ts +16 -0
- package/dist/src/browser-view.js +38 -2
- package/dist/src/claude-provider.js +15 -2
- package/dist/src/cli.d.ts +2 -1
- package/dist/src/cli.js +175 -43
- package/dist/src/code-intelligence/CodeIntelligenceManager.js +1 -1
- package/dist/src/codex-provider.js +6 -3
- package/dist/src/coding-tools.d.ts +26 -1
- package/dist/src/coding-tools.js +104 -33
- package/dist/src/command-screens.js +1 -1
- package/dist/src/commands.js +1 -1
- package/dist/src/completion-gates.d.ts +42 -7
- package/dist/src/completion-gates.js +55 -9
- package/dist/src/completion.d.ts +51 -1
- package/dist/src/completion.js +164 -5
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.js +2 -0
- package/dist/src/dashboard-view.js +2 -2
- package/dist/src/deadline.js +4 -0
- package/dist/src/decision/PreparedSteps.js +1 -1
- package/dist/src/delegation-changes.js +19 -2
- package/dist/src/diff-preview.d.ts +1 -0
- package/dist/src/diff-preview.js +12 -3
- package/dist/src/engine-streams.d.ts +22 -0
- package/dist/src/engine-streams.js +16 -0
- package/dist/src/extensions.js +17 -6
- package/dist/src/file-read-key.d.ts +8 -0
- package/dist/src/file-read-key.js +12 -0
- package/dist/src/graph-editor-session.js +2 -1
- package/dist/src/graph-health.d.ts +21 -0
- package/dist/src/graph-health.js +46 -0
- package/dist/src/graph-manager-chat.d.ts +52 -3
- package/dist/src/graph-manager-chat.js +62 -17
- package/dist/src/graph-runner.js +62 -5
- package/dist/src/graph-server.d.ts +1 -1
- package/dist/src/graph-server.js +48 -27
- package/dist/src/graph-sync.d.ts +8 -0
- package/dist/src/graph-sync.js +54 -3
- package/dist/src/graph-tool.js +1 -1
- package/dist/src/graph-ui/app.js +362 -123
- package/dist/src/graph-ui/controls.css +95 -22
- package/dist/src/graph-ui/controls.js +31 -1
- package/dist/src/graph-ui/embed.js +62 -13
- package/dist/src/graph-ui/icons.js +7 -0
- package/dist/src/graph-ui/index.html +4 -4
- package/dist/src/graph-ui/manager-state.js +143 -5
- package/dist/src/graph-ui/manager.css +21 -20
- package/dist/src/graph-ui/manager.js +337 -75
- package/dist/src/graph-ui/model-picker.js +279 -0
- package/dist/src/graph-ui/provider-glyphs/alibaba-cloud.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/anthropic.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/aws-bedrock.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/claude.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/deepseek.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/fireworks.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/kimi.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/minimax.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/openai.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/opencode.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/openrouter.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/xai.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/xiaomi-mimo.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/zai.png +0 -0
- package/dist/src/graph-ui/skill-picker.js +1 -1
- package/dist/src/graph-ui/studio-canvas.js +8 -8
- package/dist/src/graph-ui/studio.css +18 -15
- package/dist/src/graph-ui/studio.js +92 -35
- package/dist/src/graph-ui/style.css +122 -79
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +33 -29
- package/dist/src/graphs.d.ts +5 -2
- package/dist/src/graphs.js +10 -9
- package/dist/src/mcp.d.ts +52 -14
- package/dist/src/mcp.js +285 -128
- package/dist/src/membership-errors.d.ts +7 -1
- package/dist/src/membership-errors.js +9 -3
- package/dist/src/memory/ProjectMemory.d.ts +77 -0
- package/dist/src/memory/ProjectMemory.js +310 -0
- package/dist/src/memory/index.d.ts +1 -0
- package/dist/src/memory/index.js +1 -0
- package/dist/src/opencode-provider.js +5 -6
- package/dist/src/package-name.d.ts +3 -0
- package/dist/src/package-name.js +3 -0
- package/dist/src/provider-engine.js +2 -2
- package/dist/src/pull-requests.d.ts +42 -6
- package/dist/src/pull-requests.js +11 -3
- package/dist/src/qa/runtime/PtyManager.js +2 -1
- package/dist/src/react-runtime.js +137 -22
- package/dist/src/read-document-doc.d.ts +20 -0
- package/dist/src/read-document-doc.js +524 -0
- package/dist/src/read-document-docx.d.ts +21 -0
- package/dist/src/read-document-docx.js +584 -0
- package/dist/src/read-document-text.d.ts +29 -0
- package/dist/src/read-document-text.js +67 -0
- package/dist/src/read-document-tool.d.ts +48 -0
- package/dist/src/read-document-tool.js +162 -0
- package/dist/src/read-document.d.ts +78 -0
- package/dist/src/read-document.js +353 -0
- package/dist/src/read-image.d.ts +29 -2
- package/dist/src/read-image.js +42 -17
- package/dist/src/remote/cert.d.ts +1 -1
- package/dist/src/remote/cert.js +2 -7
- package/dist/src/remote/client.js +1 -1
- package/dist/src/remote/pem.d.ts +6 -0
- package/dist/src/remote/pem.js +11 -0
- package/dist/src/run-records.js +49 -10
- package/dist/src/runtime.d.ts +21 -0
- package/dist/src/runtime.js +10 -1
- package/dist/src/session-changes.d.ts +6 -1
- package/dist/src/session-changes.js +13 -5
- package/dist/src/sessions.d.ts +3 -1
- package/dist/src/sessions.js +5 -3
- package/dist/src/side-panel.d.ts +6 -1
- package/dist/src/side-panel.js +12 -10
- package/dist/src/sign-in-detection.d.ts +82 -0
- package/dist/src/sign-in-detection.js +197 -0
- package/dist/src/sign-in-offer.d.ts +35 -0
- package/dist/src/sign-in-offer.js +116 -0
- package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
- package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +59 -7
- package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
- package/dist/src/skills/bundled/provenance.json +4 -4
- package/dist/src/skills/runtime-skills.d.ts +6 -0
- package/dist/src/skills/runtime-skills.js +16 -3
- package/dist/src/stall-recovery.d.ts +6 -2
- package/dist/src/stall-recovery.js +7 -2
- package/dist/src/stray-files.d.ts +14 -0
- package/dist/src/stray-files.js +81 -0
- package/dist/src/subagent-run.js +6 -1
- package/dist/src/terminal-ui.d.ts +1 -1
- package/dist/src/terminal-ui.js +11 -5
- package/dist/src/time-limit.d.ts +53 -0
- package/dist/src/time-limit.js +79 -0
- package/dist/src/tool-activity.js +1 -1
- package/dist/src/tool-schema-compatibility.d.ts +7 -2
- package/dist/src/tool-schema-compatibility.js +8 -4
- package/dist/src/tools.js +92 -7
- package/dist/src/transcript.d.ts +5 -0
- package/dist/src/transcript.js +12 -4
- package/dist/src/types.d.ts +8 -0
- package/dist/src/untracked-file-removal.d.ts +3 -0
- package/dist/src/untracked-file-removal.js +125 -0
- package/dist/src/update-check.js +1 -1
- package/dist/src/update.d.ts +11 -1
- package/dist/src/update.js +27 -5
- package/dist/src/usage-analytics.d.ts +3 -1
- package/dist/src/usage-analytics.js +16 -2
- package/dist/src/workspace-git-metadata.d.ts +15 -0
- package/dist/src/workspace-git-metadata.js +50 -1
- package/dist/src/workspace-instructions.js +1 -1
- package/package.json +6 -26
- package/docs/README.md +0 -36
- package/docs/agents/README.md +0 -62
- package/docs/agents/install-for-agents.md +0 -56
- package/docs/agents/mcp-server.md +0 -212
- package/docs/agents/subagent-mode.md +0 -149
- package/docs/concepts/README.md +0 -47
- package/docs/concepts/jev-actionable-routing.md +0 -113
- package/docs/concepts/jev-decision-thresholds.md +0 -412
- package/docs/concepts/jev-efficiency.md +0 -217
- package/docs/concepts/jev-eval-2026-11-01.md +0 -78
- package/docs/concepts/limits.md +0 -52
- package/docs/concepts/memory.md +0 -10
- package/docs/concepts/security.md +0 -50
- package/docs/concepts/workspace-instructions.md +0 -29
- package/docs/getting-started/README.md +0 -82
- package/docs/getting-started/accounts.md +0 -78
- package/docs/getting-started/configure-providers.md +0 -132
- package/docs/guides/README.md +0 -13
- package/docs/guides/browser.md +0 -39
- package/docs/guides/desktop-app.md +0 -414
- package/docs/guides/extensions.md +0 -102
- package/docs/guides/graph-builder.md +0 -116
- package/docs/guides/headless.md +0 -46
- package/docs/guides/tui.md +0 -75
- package/docs/guides/update.md +0 -70
- package/docs/guides/web-search.md +0 -51
- package/docs/guides/windows-code-signing.md +0 -319
- package/docs/llms.txt +0 -45
- package/docs/reference/README.md +0 -7
- package/docs/reference/cli.md +0 -76
- package/docs/reference/config.md +0 -91
- package/docs/reference/slash-commands.md +0 -59
- package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
- package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
- package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
- package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
- package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
- package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
- package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
- package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
- package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
- package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
- package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
- package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
- package/scripts/jev-efficiency-eval.mjs +0 -187
- package/scripts/jev-efficiency-live.mjs +0 -193
- package/scripts/zcode-engine-replay.mjs +0 -223
- package/tests/agent-centric-mcp-test-plan.md +0 -208
- package/tests/analytics-settings-test-plan.md +0 -165
- package/tests/browser-cli-smoke.mjs +0 -276
- package/tests/browser-test-plan.md +0 -280
- package/tests/chat-side-panel-test-plan.md +0 -309
- package/tests/decision-engine-test-plan.md +0 -163
- package/tests/default-active-jev-test-plan.md +0 -85
- package/tests/harness-extensions-test-plan.md +0 -113
- package/tests/jev-all-decisions-test-plan.md +0 -156
- package/tests/jev-efficiency/criteria.json +0 -158
- package/tests/jev-efficiency/workloads.mjs +0 -242
- package/tests/jev-efficiency-test-plan.md +0 -198
- package/tests/permissions-sandbox-probe.mjs +0 -74
- package/tests/permissions-test-plan.md +0 -191
- package/tests/product-telemetry-test-plan.md +0 -536
- package/tests/thinking-stream-preview-test-plan.md +0 -136
- package/tests/zcode-react-engine-test-plan.md +0 -396
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# Graph Builder
|
|
2
|
-
|
|
3
|
-
The Graph Builder is a local browser application for composing custom graphs: agents with their own instructions, models, and tools, wired together with typed handoffs, conditions, loops, and joins. A free account can save one custom graph of up to 3 nodes (Done does not count) without the Orchestrator; the Create graph button is disabled once it has one. Paid membership lifts both limits.
|
|
4
|
-
|
|
5
|
-
It is the editor for people. An agent should author and edit graphs through the local MCP server instead — the same store, the same validation and revisions, driven by tool calls instead of a canvas. See [Agent MCP server](../agents/mcp-server.md); use this page for hands-on editing and for showing a graph to a person.
|
|
6
|
-
|
|
7
|
-
## Opening it
|
|
8
|
-
|
|
9
|
-
Run `andorra`, open `/providers`, and choose **Add provider** if nothing is configured yet — missing or empty provider configuration directs you to `/providers` before anything opens (this checks saved configuration, not live connectivity). Then:
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
andorra graph # start the local server and open your browser
|
|
13
|
-
andorra graph --no-open # print the launch URL instead
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
The URL grants access to the local editor for this server session — keep it private. Ctrl+C shuts down the server; closing the tab leaves it running. Graphs are stored in `~/.andorracode/graphs` (or under `ANDORRACODE_HOME`). From inside the TUI, `/graph` selects saved graphs, and its **Edit Graphs** action opens this builder; `/graph` → **Create new graph** starts a new draft.
|
|
17
|
-
|
|
18
|
-
## Building a graph
|
|
19
|
-
|
|
20
|
-
The searchable Node Library creates Agents manually or from editable shared presets. Use the Inspector for instruction/model, completion outcomes, capabilities, context, typed input/output contracts, subagent roles and budgets. Click or drag an Agent onto the canvas (drop coordinates account for pan and zoom). Outcome ports can connect to multiple nodes; Join all/any expresses synchronization. Select an edge to configure explicit input mappings. Every Agent owns an independent executor invocation.
|
|
21
|
-
|
|
22
|
-
New graphs start with an optional Orchestrator that inspects the codebase and asks about requirements and design choices before handing work to its configured successor. Select it and use Remove node or Delete to start directly at its successor instead. When deleting any starting node, the first surviving outgoing connection supplies the new start; if none survives, the first remaining node in the node list becomes the start. Undo restores the node, connections and previous start together. Version 3 graphs saved without an Orchestrator keep their ordinary starting node when reopened or run.
|
|
23
|
-
|
|
24
|
-
Structured inputs pass through explicit `$source.output.field`/`$run.input.task` mappings or constants. Cycles require a finite graph visit limit. Child capabilities cannot exceed the parent; shared read-only and isolated worktree policies are enforced at runtime. Custom graphs with extra required run inputs or initial shared state can receive JSON object files:
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
andorra --graph my-workflow --prompt "Verify staging" --run-input inputs.json --run-state state.json
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
For example, `inputs.json` can contain `{"environment":"staging"}` and `state.json` can contain `{"ticket":123}`. The runtime validates both against the selected graph contracts before invoking its entry node. Do not put credentials in handoff data.
|
|
31
|
-
|
|
32
|
-
## Modifiers and concurrency
|
|
33
|
-
|
|
34
|
-
Condition, Loop, and Parallel are optional Agent modifiers. Condition routes matching output fields to true and nonmatching output to false. Loop repeats an agent until its configured outcome or output value matches, bounded by Maximum attempts; exhaustion stops instead of reporting success. Parallel has two modes — directly connected downstream Agents, or independent read-only copies of the same Agent — each honoring its own concurrency cap and the graph ceiling, including nested copies. Copy results appear in `output.results` in copy-index order; all copies must return the same outcome, and copies cannot write to the shared workspace. Ordinary top-level stages run serially.
|
|
35
|
-
|
|
36
|
-
Concurrent siblings and copies receive fixed shares of the remaining token/tool budget; unused shares are not redistributed. Budget exhaustion or cancellation stops new work and prevents a successful downstream handoff.
|
|
37
|
-
|
|
38
|
-
## Route frontend, backend, and DevOps work
|
|
39
|
-
|
|
40
|
-
All branches belong to the same graph canvas. Select the Orchestrator, find **Routing** outside Advanced, and set **Routing behavior** to **Choose outcome using written criteria**. Configure outcome names and their **Written criteria for <outcome>** fields:
|
|
41
|
-
|
|
42
|
-
| Outcome name | Written criteria |
|
|
43
|
-
| --- | --- |
|
|
44
|
-
| `frontend` | Choose when the confirmed request requires UI, styling, or browser interaction changes without backend changes. |
|
|
45
|
-
| `backend` | Choose when the confirmed request requires API, database, or server behavior changes without frontend changes. |
|
|
46
|
-
| `devops` | Choose when the confirmed request concerns GitHub Actions or infrastructure configuration. |
|
|
47
|
-
| `fullstack` | Choose when the confirmed request requires both frontend and backend changes. |
|
|
48
|
-
|
|
49
|
-
Keep the shared intake instructions in the Orchestrator's **Prompt**, for example:
|
|
50
|
-
|
|
51
|
-
> Research the request and confirm its acceptance criteria with the user. Ask for clarification when the scope is ambiguous. Choose exactly one outcome using its written criteria. Hand off the confirmed task, relevant files, acceptance criteria, and verification requirements. Do not implement or deploy during intake.
|
|
52
|
-
|
|
53
|
-
Add Agents named Frontend Software Engineer, Frontend QA, Backend Software Engineer, Backend QA, and DevOps, each with its own task instructions and verification criteria. Connect the Orchestrator's outcomes to the engineers/DevOps (`fullstack` connects to both engineers). Connect each engineer's `completed` output to its QA node; give each QA `pass`/`fail`/`blocked` outcomes with written criteria; connect `pass` to Done, `fail` back to its engineer, and `blocked` to a separate End node. Because the fail routes create cycles, set **Graph → Maximum visits per node**, for example to `3`. Use a Join if a later stage must wait for multiple branch results.
|
|
54
|
-
|
|
55
|
-
Written criteria guide the model's judgment; they are not automatic assertions or permission grants. A blank criteria field falls back to the node's Prompt. Keep **Require a route for every outcome** enabled. Naming a node "DevOps" grants no access — configure **Advanced → Permissions** for the actual task. Test the routing with a dry-run prompt before authorizing external changes.
|
|
56
|
-
|
|
57
|
-
## Reuse conversation between Agent stages
|
|
58
|
-
|
|
59
|
-
The visible **Conversation** selector defaults to **Reuse with the same provider and model**. A direct Agent-to-Agent handoff can carry the preceding conversation, including tool calls and results, when both resolve to the same provider profile and model. The next node gets its current role instructions and task, its own permitted tools, and fresh per-node execution counters. Reuse does not give QA the engineer's write permissions or reset shared graph budgets.
|
|
60
|
-
|
|
61
|
-
Choose **Start an isolated conversation** to prevent reuse into and out of that node. Fan-out destinations receive separate snapshots of the shared predecessor history. Joins, intervening control/action nodes, and convergence of pending activations conservatively start isolated conversations. **Advanced → Context sharing → Include previous task summaries** controls summaries from earlier user tasks; it is separate from this run's conversation reuse.
|
|
62
|
-
|
|
63
|
-
## Skills in prompts
|
|
64
|
-
|
|
65
|
-
Type `/` in an Agent's **Prompt**, its **Advanced → System prompt**, or the **Instructions** of **Add agent** to open the skills on this machine: the skills you installed (Settings → Skills) first, then Andorra's own. Keep typing to filter by command, name or description; Up/Down chooses, Enter or Tab inserts the `/command`, and Escape closes the list (a second Escape leaves full screen). A `/name` can sit anywhere in the prompt, for example `Check the diff with /review, then summarize.`
|
|
66
|
-
|
|
67
|
-
When the node runs, it loads every skill its prompts name with the `Skill` tool before working, and it is asked to load any it skipped before it completes. A skill loaded this way is active for later nodes like any other loaded skill (see below).
|
|
68
|
-
|
|
69
|
-
A `/name` that no skill on this machine answers to never blocks the graph. The editor shows a warning under the field instead of a validation error: **not found on this machine**, **turned off in Skills settings**, or **installed but cannot be loaded**. The graph still saves and runs; at run time the node is told to do the task without that skill, and the run shows a warning row naming it. A graph built on one machine can therefore run on another, and a project's own skills (`.agents/skills` or `.andorra/skills`) are found when the run starts in that project even though the editor cannot see them. Paths such as `/usr/bin` or `/notes.txt` and built-in commands such as `/model` are not treated as skills.
|
|
70
|
-
|
|
71
|
-
## Skill inheritance between graph nodes
|
|
72
|
-
|
|
73
|
-
The **Skill inheritance** selector on each Agent defaults to **Inherit active workflow skills**. Explicit slash-invoked skills at run entry, and skills successfully loaded via `Skill` or `read_skill_resource` during the run, become available to later Agent nodes as active skill references. This context is separate from conversation history: it survives isolated conversations, different providers or models, control nodes, and parallel branches.
|
|
74
|
-
|
|
75
|
-
A receiving Agent is instructed to load each inherited skill before doing its own work, and to apply it to **its own role only**, rather than restarting the previous Agent's playbook. Skill content is still untrusted task reference data. It cannot expand the node's tools, permissions, or approval authority. Missing required skills surface as execution errors rather than silently dropping the workflow mode.
|
|
76
|
-
|
|
77
|
-
Select **Do not inherit skills** on a node to keep that node's skill context independent. This also suppresses explicit slash-skill guidance and predecessor conversation reuse for that node, so a prior skill body cannot leak through the transcript. It does not disable installed skills or prevent the node from choosing its own skills. Active skill IDs are journaled so a stopped run resumes with the same inherited workflow references. A skill activated in one branch is run-wide for later graph nodes; use node opt-outs for roles that must not receive it.
|
|
78
|
-
|
|
79
|
-
## Editor usability
|
|
80
|
-
|
|
81
|
-
- The editor renders the same appearance as the Andorra Code desktop client: the same surfaces, type and measurements, in dark. It follows your operating system's light or dark preference, and the **Light** or **Dark** button in the status bar switches it and remembers the choice for the session. Opened inside the desktop client, the editor takes the client's appearance and offers no switch of its own.
|
|
82
|
-
- Drag the left sidebar's right edge to resize it (or focus **Resize library sidebar** and use Left/Right, Home, End). The browser remembers the width.
|
|
83
|
-
- The **Agents** section lists built-in presets first and saved variants after, all at one level. **Copy** on any Agent row creates a new Agent starting from that row's settings under a name you choose.
|
|
84
|
-
- Library changes save independently of graph revisions and do not change nodes already on the canvas. Save a selected node as a named variant from the Agent inspector.
|
|
85
|
-
- Select a node or connection and press Delete to remove it, then Undo to restore. Delete inside a text field edits text. Deleting every remaining node is prevented so the draft retains a start.
|
|
86
|
-
- Connections use orthogonal routes around node cards and indicate direction with arrowheads. Every connection is the same neutral line whatever its outcome; the outcome rides it as a label, and hovering or selecting a connection traces it. Separate overlapping cards when their ports are enclosed by another card. If a return edge creates an unbounded cycle, the inspector explains it and offers a finite visit limit.
|
|
87
|
-
- Move around the canvas by dragging its background or scrolling (two fingers on a trackpad; Shift + mouse wheel scrolls sideways). Pinch, or hold Ctrl (Cmd on macOS) while scrolling, to zoom about the pointer. The dot grid moves and scales with the cards, and with **Snap to grid** on a dragged card lands on a dot. Zoom in, Zoom out, Fit graph and Arrange ease the view to where it is going.
|
|
88
|
-
- Inside the desktop client, the window's own shortcuts work while the editor has focus: Ctrl/Cmd+K opens the command palette, Ctrl/Cmd+N starts a new task and Ctrl/Cmd+, opens Settings (each saves the graph draft first when it leaves the editor).
|
|
89
|
-
- Ctrl-click (Cmd-click on macOS) matching node types to select several nodes. Under Output Node, select their shared outcome and use Route all N to, then click the destination.
|
|
90
|
-
|
|
91
|
-
Schema versions 1/2 remain executable with their original semantics; opening them in the editor adds an Orchestrator before the existing entry, and saving creates a version 3+ revision without rewriting history.
|
|
92
|
-
|
|
93
|
-
## Graph Manager
|
|
94
|
-
|
|
95
|
-
Graph Manager is an assistant that sits beside the graph you have open and builds or changes it with you. It is the same graph-design skill an agent uses in a regular task, placed next to the canvas.
|
|
96
|
-
|
|
97
|
-
- **Opening it.** A **Graph Manager** button is in the toolbar, beside **Save Revision**, whenever a graph is open. Click it to open a chat panel on the right; the canvas narrows to make room. Drag the panel's left edge to resize it. The first time you create a new graph, a tip beside the button reminds you it is there; close the tip or open the panel and it does not come back.
|
|
98
|
-
- **Choosing a provider and model.** The two selects at the top of the panel choose the provider and model Graph Manager itself runs on. They start on your last choice, or on the model of the graph's first agent. Graph Manager also uses that model for new agent nodes unless you ask for another. A change applies from your next message.
|
|
99
|
-
- **What it sees.** Every message carries the open graph's name and id and the canvas exactly as it is on your screen, including edits you have not saved. You can change something by hand and ask about it straight away. A very large graph cannot be sent; the panel says so and nothing is started.
|
|
100
|
-
- **Approvals.** Graph Manager asks before anything lasting happens. Publishing a revision, deleting a graph and restoring a graph each show a card with **Approve** and **Deny**, and nothing is saved until you approve. It does not connect your MCP servers. **Stop** ends what it is doing.
|
|
101
|
-
- **When it saves.** If the canvas has not changed since your message, the new revision opens in place. If you edited the canvas in the meantime, or the message came from another window, a bar asks "Graph Manager saved revision N. Load it?" and your edits stay until you click **Load**. Nothing on the canvas is replaced without that click.
|
|
102
|
-
- **The bundled preset.** The built-in default graph cannot be changed, so there Graph Manager creates a new graph based on what you see and a bar offers to open it: "Graph Manager created <name>. Open it?". The preset stays open until you click **Open**; the conversation then continues on the new graph.
|
|
103
|
-
- **Conversations.** One conversation is shared by every window of the same editor, and a reload brings it back. **New Chat** starts a fresh one. Opening another graph offers to start a new chat about it and keeps the current one until you agree.
|
|
104
|
-
- **Where it runs.** Graph Manager works in a folder of its own, `<home>/graph-manager/workspace` (`<home>` is `~/.andorracode`, or `ANDORRACODE_HOME`). Its sessions are named `Graph Manager: <graph name>` and are filed under that folder, so they stay out of your projects' task lists. It runs on a separate engine that stops with the editor, and after ten minutes with the panel closed and nothing pending, so a task you have running elsewhere is not held up.
|
|
105
|
-
|
|
106
|
-
## Cloud backup and draft recovery
|
|
107
|
-
|
|
108
|
-
For paid accounts, the graph builder saves revisions and drafts locally, then automatically synchronizes them to your Andorra account. The sidebar reports cloud status separately from local save success; connection failures retain the local queue and retry every 30 seconds while the builder is open. Open the Graph Builder to refresh cloud graphs on another installation; in the desktop app, opening a task's graph list does the same, so a graph saved on another machine is listed there without opening the builder first.
|
|
109
|
-
|
|
110
|
-
Incomplete graphs are autosaved as drafts after a short pause, even when validation prevents saving an executable revision. A new or duplicated graph is not drafted until you change it. Drafts are listed under **Unsaved drafts** below your saved graphs: the newest one for each graph, and only while it holds work its saved revision does not. Right-click a draft and choose **Clear draft**, or use **Clear** beside the heading, to take drafts off the list; saved graphs and revisions are unaffected. Open a draft from the sidebar, or choose **Show draft history** for earlier and conflicting versions. Remote revisions keep their original IDs and history; a conflicting revision is preserved as a separate graph — existing files are never silently overwritten.
|
|
111
|
-
|
|
112
|
-
The first paid graph refresh assigns existing local graphs to the current account. Later accounts on the same installation use separate graph directories. Cloud storage is private to the verified account. Agent-library definitions and model credentials are not synchronized; configure the required model profiles on each installation. Starting the builder requires an online account check: a signed-in account the membership service confirms, free or paid.
|
|
113
|
-
|
|
114
|
-
## Model health
|
|
115
|
-
|
|
116
|
-
Loading a graph checks each model with a small inference request, including agent overrides, retry fallbacks, and enabled subagent roles. Unavailable models are listed with their affected nodes and tasks are blocked; open `/graph` → **Edit Graphs** to repair the selections. Each probe has a 30-second deadline and may consume provider quota.
|
package/docs/guides/headless.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Headless mode
|
|
2
|
-
|
|
3
|
-
Headless mode runs one task non-interactively: no TUI, one result, machine-readable output. It is the right surface for scripts, CI, and other agents.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
andorra --prompt "Explain this repository" --provider local --model your-model
|
|
9
|
-
andorra --prompt "Fix the failing test" --yolo --json
|
|
10
|
-
andorra --prompt "Fix the failing test" --yolo --json --jev off # this run without Jev; the saved preference is unchanged
|
|
11
|
-
andorra --prompt "Ship it" --no-tui --json --graph my-workflow \
|
|
12
|
-
--run-input inputs.json --run-state state.json
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
`--no-tui --prompt ...` and `--json --prompt ...` are both accepted. `--json` emits one result object on stdout with status, run ID, graph revision, completion, usage, and tool count. Startup errors go to stderr.
|
|
16
|
-
|
|
17
|
-
## Subagent runs
|
|
18
|
-
|
|
19
|
-
`andorra subagent` is a narrower contract for agents that drive Andorra (Claude CLI, Codex CLI, a
|
|
20
|
-
script): it runs only the built-in Andorra Agent graph, and it requires a provider/model —
|
|
21
|
-
either per call or from the saved `/subagent` setting. Without one it answers
|
|
22
|
-
`PROVIDER_NOT_SET` with the list of configured providers and models, so the calling agent can ask
|
|
23
|
-
its user and retry. See [Subagent mode](../agents/subagent-mode.md).
|
|
24
|
-
|
|
25
|
-
## Exit codes
|
|
26
|
-
|
|
27
|
-
| Code | Meaning |
|
|
28
|
-
| --- | --- |
|
|
29
|
-
| `0` | Success. |
|
|
30
|
-
| `1` | Failure, limit exhaustion, or `needs_clarification`. |
|
|
31
|
-
| `130` | Cancellation (Ctrl+C). |
|
|
32
|
-
| `143` | Termination (SIGTERM). |
|
|
33
|
-
|
|
34
|
-
## `needs_clarification`
|
|
35
|
-
|
|
36
|
-
Graphs that start with an Orchestrator — the paid Andorra workflow (`--graph :andorra`) or custom graphs that keep intake — return `needs_clarification` with exit code 1, because the intake answer is interactive. The default graph is a single Andorra Agent and does not require intake. Use `andorra` or `andorra --graph <id>` interactively to answer Orchestrator intake. A noninteractive clarification input/resume protocol is not included yet.
|
|
37
|
-
|
|
38
|
-
## Permissions
|
|
39
|
-
|
|
40
|
-
A headless run uses the workspace's saved permission mode (`/permissions`), or **Ask for approval** when none is saved. In that mode file edits inside the workspace and sandboxed shell commands run without a prompt. Whatever would have asked — a shell command that requests host or network access outside the sandbox, for example — receives a permission-denied observation, because no interactive approver is present. `--yolo` runs the session in Full Access: host files, shell, and network without approval. It retains tool allowlists and argument checks, but not workspace containment.
|
|
41
|
-
|
|
42
|
-
A workspace with a **saved Full-Access permission mode** (`/permissions full-access`) keeps automatic approvals in headless runs even without `--yolo`. For automation that must not mutate a workspace, save `/permissions read-only` for it first: writes are then denied.
|
|
43
|
-
|
|
44
|
-
## Headless notes
|
|
45
|
-
|
|
46
|
-
Headless runs use the saved model configuration without the interactive context-window discovery refresh. Custom graphs can receive `--run-input`/`--run-state` JSON files (see [Graph Builder](graph-builder.md)).
|
package/docs/guides/tui.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# The TUI
|
|
2
|
-
|
|
3
|
-
The default `andorra` command opens a full-screen terminal UI: a welcome panel, conversation and tool transcript, a bordered input composer, and a live status bar. While a task runs, the transcript shows public assistant progress, tool actions, and compact result previews.
|
|
4
|
-
|
|
5
|
-
- Press **Ctrl+O** to expand or collapse tool and approval details.
|
|
6
|
-
- Scroll with the mouse wheel/trackpad or Page Up/Page Down, in every state. Select text by dragging; releasing the button copies it.
|
|
7
|
-
- File proposals show numbered green additions and red removals; edit numbers are relative to the replaced snippets. Errors are red and tool headings are cyan. Approval prompts retain the full arguments in expandable details.
|
|
8
|
-
- Updates appear after each model response; token-by-token streaming is not supported. `--json` remains machine-readable and does not include display formatting.
|
|
9
|
-
- Text wraps at word boundaries where possible; tokens wider than the terminal still split safely.
|
|
10
|
-
|
|
11
|
-
## Welcome panel and footer
|
|
12
|
-
|
|
13
|
-
The welcome panel uses an Andorra ASCII wordmark and shows your workspace, session, and graph. It scrolls upward as messages arrive. The footer keeps the selected provider/model, Git branch, approval mode, activity, provider-reported session usage, the known context window, the selected graph (`Graph: Default` until changed with `/graph`), the permissions profile, and the configured thinking effort visible. Session token totals are cumulative usage, not a measurement of the current context fill.
|
|
14
|
-
|
|
15
|
-
Once a run's first request completes, the usage line also shows generation speed as `· N tok/s`, held between LLM calls (providers report token counts only as a request finishes; the footer keeps the previous value rather than dropping or aging it toward zero). The number is a request average spread over the seconds the request ran — a response that burst its tokens at the end and one that trickled them read the same — and only provider-reported totals are used, never estimates. It is absent at idle, while a run's first request is in flight, and after a run ends or is cancelled.
|
|
16
|
-
|
|
17
|
-
## Composer, questions, and approvals
|
|
18
|
-
|
|
19
|
-
Agent questions and tool approvals replace the composer with a selection menu. Use Up/Down and Enter to answer, or Escape to cancel; questions include a custom-answer option. While execution is active, a gray/white animated Working indicator and elapsed time appear above the composer; it pauses while waiting for input. While a run streams with no prompt pending, Up/Down scroll the transcript alongside Page Up/Page Down.
|
|
20
|
-
|
|
21
|
-
Type `/` as the first character to open command suggestions. Typing filters the list; Up/Down highlights a match, Enter runs the highlighted command, and Tab fills it into the composer so an argument can be added by hand. Use arrow keys to edit, Up/Down for input history, and Enter to submit. Pasted multiline text stays in the composer until you submit it.
|
|
22
|
-
|
|
23
|
-
**Ctrl+C** stops the active run (paused runs resume from your next message); Ctrl+C again — or a press while idle — exits, with a hard-exit backstop if a run refuses to unwind. **Ctrl+D** exits from an empty prompt. Terminal resizing adjusts the layout, and exiting restores the terminal.
|
|
24
|
-
|
|
25
|
-
## Mouse, selection and scrolling
|
|
26
|
-
|
|
27
|
-
Andorra holds the mouse for the whole session, so the wheel is always a wheel:
|
|
28
|
-
|
|
29
|
-
- **The wheel scrolls** the transcript at the idle prompt, while a run streams, and while an approval or clarification question is open. On a selection, settings or usage screen it scrolls the screen or moves the highlight. Page Up/Page Down scroll from the keyboard.
|
|
30
|
-
- **Up/Down recall input history** at the prompt, or move the caret inside a multi-line draft. They never scroll there. While a run streams with nothing typed they scroll the transcript, because there is no history to recall.
|
|
31
|
-
- **Dragging selects text** on the screen and draws it in reverse video. Releasing the button copies the selection to the clipboard; the highlight stays until the next key, click or wheel tick. Double-click copies the word under the pointer. A drag that starts in the conversation stays out of the side panel.
|
|
32
|
-
- **The copy** goes to the system clipboard, and falls back to an OSC 52 sequence that asks the terminal to set its clipboard. Over SSH only the OSC 52 path is used, since the system clipboard there belongs to the remote machine. A terminal that ignores OSC 52 copies nothing over SSH; use its own selection there.
|
|
33
|
-
- **Your terminal's own selection** is still available through its bypass: Shift+drag in Windows Terminal, GNOME Terminal and most others, Option+drag in iTerm2 and Terminal.app. Right-click and middle-click are swallowed; paste with the terminal's paste shortcut.
|
|
34
|
-
|
|
35
|
-
The mouse is held because of how terminals report an uncaptured wheel in a full-screen program: under *alternate scroll mode* they send the same bytes as the Up and Down keys. Windows Terminal, GNOME Terminal and iTerm2 have that mode on by default, so an uncaptured wheel either recalls the previous prompt on every tick or has to be switched off, which left it doing nothing at the idle prompt. A selection is taken from the rows as drawn, so text that wrapped on screen is copied with a line break at each wrap, and a drag does not scroll the transcript past the edge of the screen. The composer additionally has its own keyboard selection (Shift with an arrow, Home or End; Ctrl+C copies, Ctrl+X cuts).
|
|
36
|
-
|
|
37
|
-
Collapsed long-prompt boxes expand and collapse with Ctrl+O, and the live reasoning preview toggles with Ctrl+Y; neither reacts to a click. Dragging works while a task runs. The selection is held in screen positions, so when the rows under it change (the animated indicator, the counters, new output) the highlight covers the new text, and what is copied is what is on screen when the button is released.
|
|
38
|
-
|
|
39
|
-
## Selection screens
|
|
40
|
-
|
|
41
|
-
`/model`, `/providers`, and `/graph` open dedicated selection screens. Use Up/Down to browse, Enter or Space to choose, and Escape to return without changing the selection. The model screen fetches the active provider's available models; Escape also cancels loading. `/usage` opens a usage screen with Escape to return. `/yolo on` and `/yolo off` set the session boolean immediately (a bare `/yolo` only reports it); the bottom-left footer reads **Yolo mode is on** when approvals are bypassed. Choosing a graph other than the one in use opens a confirmation first, because switching clears the previous graph progress and starts fresh.
|
|
42
|
-
|
|
43
|
-
A settings list that asks for a typed value — an API key, endpoint URL, provider name, model ID, or context window — keeps the list on display with its highlighted entry and opens the bordered input bar underneath it. Escape in that bar discards only the typed value and returns to the same list.
|
|
44
|
-
|
|
45
|
-
## Side panel
|
|
46
|
-
|
|
47
|
-
On a terminal at least 110 columns wide and 14 rows tall, a status panel is drawn to the right of the conversation, separated by a vertical divider. It is display only — no key or click reaches it — and it reports, from the top:
|
|
48
|
-
|
|
49
|
-
- **Git tools** — the working tree's `+insertions −deletions`, the current branch, and how many tracked files are changed plus untracked entries. A clean tree reads `clean`; a non-repository says so. Refreshes when a run starts, ends, and after each tool completion, throttled to one read every two seconds.
|
|
50
|
-
- **Node** — the graph node the run is on, with `loop i/n` and `copy i/n` when the graph loops or runs copies, and the provider/model that node actually resolved. At idle it shows the selected graph's entry node.
|
|
51
|
-
- **Progress** and **Plan** — the run's plan: a completion bar with `done · active · waiting` counts, then the item in progress, the completed count, and the waiting items. While the panel is drawn the composer's own Todo block stands down, so the plan is reported once.
|
|
52
|
-
- **Terminals** — background sessions the agent opened through `qa.terminal`, with how long each running one has been alive.
|
|
53
|
-
- **Graph** — for a **custom** graph only, a zoomed neighbourhood of the current node: what feeds into it, the node itself, and what it hands off to, each labelled `✓` visited, `●` current or `○` not yet reached, with hand-off outcomes. The trail stays after the run ends and clears when the next run starts.
|
|
54
|
-
|
|
55
|
-
Below 110 columns, below 14 rows, in the dashboard (Ctrl+B), and while a selection or settings screen is open, the panel is not drawn and the chat column uses the full width with the usual Todo block.
|
|
56
|
-
|
|
57
|
-
## Todo progress
|
|
58
|
-
|
|
59
|
-
The Todo panel shows the current run's plan: pending, in progress, and completed items. The Orchestrator sets the initial plan, and later Agent stages update it as they work. Completed items remain visible; a stopped or failed run keeps unfinished items unfinished.
|
|
60
|
-
|
|
61
|
-
The compact panel shows up to five items with a remaining-item and completed-item count. Press **Ctrl+T** to expand or collapse the list; in the expanded panel, Page Up/Page Down scrolls longer plans. Ctrl+O separately controls transcript details. A new run or `/clear` clears the previous plan, and `/clear` also wipes the on-screen conversation. On a terminal wide enough for the side panel, the plan is reported there instead and this block is not drawn.
|
|
62
|
-
|
|
63
|
-
Todo updates are recorded with the run events and rendered as text outside the full-screen terminal. They describe reported progress, not independent proof that tests or implementation succeeded.
|
|
64
|
-
|
|
65
|
-
## Dashboard
|
|
66
|
-
|
|
67
|
-
Type `/dashboard` and press Enter at the task prompt or while steering an active run. The view remains selected across tasks until toggled. **Ctrl+B** switches between the dashboard and the original transcript without resetting the task or changing a typed draft. Routine messages and tool observations remain in transcript history; questions, errors and final summaries appear above the input. Long notices show an explicit continuation indicator; Ctrl+B opens the transcript for their full text. Approval and clarification options still use Up/Down and Enter, and Ctrl+C still cancels the run.
|
|
68
|
-
|
|
69
|
-
The token card segregates session totals by provider ID and actual requested model, including node overrides, fallback models and delegated requests. **Ctrl+N** cycles the displayed provider/model; it does not change execution settings. Missing provider usage remains **Unavailable**; explicit reported zero displays as zero. Speed is output tokens divided by completed model-request wall time, including network/request overhead. There are no pricing estimates.
|
|
70
|
-
|
|
71
|
-
Elapsed time covers the current task (including time waiting for answers), or the latest finished task. LLM and tool durations are sums of operation wall time, so overlapping parallel calls can exceed elapsed time. Tool time includes the entire tool call, including approval and `ask_user` waiting. A new task resets task timing and todos while retaining session token totals.
|
|
72
|
-
|
|
73
|
-
The Todo card shows completed, active and pending counts and then the items, unfinished first: `●` in progress, `○` pending, `✓` completed; Page Up/Page Down pages it. The graph card shows every active node plus direct incoming and outgoing neighbours, with each node name and effective provider/model on separate lines, then the edges between them as `source → target` and a count of the distant nodes left out. Active nodes are marked `●` in the accent, neighbours `○`. At idle, the entry carries the mark and the legend says so. **Ctrl+G** pages the card one row at a time; a neighbourhood that fits is shown whole, and one that does not keeps its last row for the page range.
|
|
74
|
-
|
|
75
|
-
The cards share the composer's rounded frame: each title sits in the top edge with its key hint against the right corner, readouts keep their values in one column, and the two cards of a row end on the same line. At 80 columns by 24 rows, four cards share two columns above the composer, with the latest question, error or result on the row beneath them. Expanded windows give the Todo and graph cards the extra rows; narrow/short windows stack the cards and shorten them, preserving editable input and question selection. A value that cannot fit its card is cut with `…`. Dashboard state is local to the running terminal session and is not saved across process restarts.
|
package/docs/guides/update.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Update
|
|
2
|
-
|
|
3
|
-
An interactive `andorra` launch asks npm for a newer release at most once every 12 hours. When one exists it asks `Update now? [Y]es / [n]o / [s]kip until next version`: yes installs the release and exits so you can start the new version, no asks again later, and skip stays quiet until a newer release is out. Headless runs (`--prompt`) never ask.
|
|
4
|
-
|
|
5
|
-
The check is skipped in CI, when running from a source checkout, and when `ANDORRA_NO_UPDATE_CHECK` is set. A slow or offline registry just skips the prompt. You can always update explicitly with `andorra update`.
|
|
6
|
-
|
|
7
|
-
## `andorra update`
|
|
8
|
-
|
|
9
|
-
Run from any directory:
|
|
10
|
-
|
|
11
|
-
```powershell
|
|
12
|
-
andorra update
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This asks npm which release the `latest` tag of `@andorra-labs/code` names and, when it is newer than the installed version, installs exactly that version globally with `npm install -g @andorra-labs/code@<version>`. It uses the npm that ships with the Node.js running Andorra, and it updates the global installation that provides the command, regardless of your current project directory.
|
|
16
|
-
|
|
17
|
-
- When the installed version is already the latest, nothing is installed: `Andorra 0.1.4 is already the latest release on npm; nothing was installed.`
|
|
18
|
-
- It never downgrades. If the `latest` tag points at an older release than the one installed, nothing changes and the message says so.
|
|
19
|
-
- If npm cannot be reached, nothing changes; fix the network or registry settings and run it again.
|
|
20
|
-
|
|
21
|
-
Requirements:
|
|
22
|
-
|
|
23
|
-
- The `andorra` command must be the global npm installation, `npm install -g @andorra-labs/code`.
|
|
24
|
-
- It refuses, without changing anything, when `andorra` runs from a source checkout — one linked with `npm link`, or started as `node dist/src/cli.js` — and when it runs from any other copy, such as a project's own dependency or the desktop client's engine. The message names the path and the command to use instead.
|
|
25
|
-
|
|
26
|
-
### Switching from a source checkout
|
|
27
|
-
|
|
28
|
-
An installation made by cloning the repository and running `npm link` is not updated by `andorra update`. To move it to the npm release:
|
|
29
|
-
|
|
30
|
-
```sh
|
|
31
|
-
npm install -g @andorra-labs/code@latest
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
That replaces the linked global command with the published package. The checkout itself is left as it is. To keep running the checkout instead, update it yourself from the checkout:
|
|
35
|
-
|
|
36
|
-
```sh
|
|
37
|
-
git pull --ff-only
|
|
38
|
-
npm ci
|
|
39
|
-
npm run build
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## A failed or blocked update
|
|
43
|
-
|
|
44
|
-
Before npm touches anything, the update checks that the installed package can be moved, because npm replaces it by moving it aside. On Windows a terminal or program whose working directory is inside the package keeps it in place; the update then refuses, names the path, and changes nothing. Close that program and run `andorra update` again.
|
|
45
|
-
|
|
46
|
-
Another Andorra session or CodeGraph that has a native module of the old release loaded does not block the update: npm installs the new release, but cannot delete the old copy it moved aside (`@andorra-labs/.code-<random>` beside the package) while that process runs, and warns about it. The update names that copy. It is no longer used by the `andorra` command, and the next `andorra update` deletes it once the process holding it has exited.
|
|
47
|
-
|
|
48
|
-
When `npm install` itself fails, npm moves the previous release back, and the message says which version is still installed. A failure that looks like a brief Windows sharing violation is retried a few times first.
|
|
49
|
-
|
|
50
|
-
## An interrupted update
|
|
51
|
-
|
|
52
|
-
While it runs, `andorra update` holds a lock file, `update.lock` in the Andorra home directory (`~/.andorracode`, or `ANDORRACODE_HOME` when set), so two updates cannot run at once. The lock records the updater's process id. If an update is cancelled with Ctrl+C, its terminal is closed, or it crashes, the lock stays behind.
|
|
53
|
-
|
|
54
|
-
Run `andorra update` again. When the process the lock names has exited, the update removes the stale lock, prints `Removed a stale update lock left by process …`, and continues.
|
|
55
|
-
|
|
56
|
-
The update refuses to start when the lock names a process that is still running, or when the lock is empty or unreadable. If you are sure no update is running (a process id can be reused by an unrelated program), break the lock:
|
|
57
|
-
|
|
58
|
-
```powershell
|
|
59
|
-
andorra update --break-lock
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## The desktop client's engine
|
|
63
|
-
|
|
64
|
-
A source build of the desktop client has an engine of its own, `desktop/node_modules/@andorra-labs/code`, which `andorra update` does not touch. Every `npm install` or `npm ci` in `desktop/` moves it to the latest npm release; see [Desktop client](desktop-app.md#which-engine-the-window-starts).
|
|
65
|
-
|
|
66
|
-
The reverse holds too: updating the desktop app does not update the global `andorra`. When the global installation is older than the desktop's engine, the desktop says so under **Settings → Appearance & engine** and offers `andorra update` to copy, or `npm install -g @andorra-labs/code@latest` for a release before 0.1.5, whose updater predates npm releases; see [Desktop client](desktop-app.md#the-terminals-andorra).
|
|
67
|
-
|
|
68
|
-
## Version
|
|
69
|
-
|
|
70
|
-
`andorra --version` prints the installed version, read from the package manifest of the installation that provides the command.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Web search
|
|
2
|
-
|
|
3
|
-
Agents can search the web with the built-in `web_search` tool. It sends one query to a search service you choose and returns up to 10 results: the title, the URL and a short snippet for each. To read a page in full, the agent then opens the result with a browser tool.
|
|
4
|
-
|
|
5
|
-
Andorra does not run a search index of its own, so the tool needs one of these services:
|
|
6
|
-
|
|
7
|
-
| Service | What you enter | Environment fallback |
|
|
8
|
-
| --- | --- | --- |
|
|
9
|
-
| [Brave Search](https://brave.com/search/api/) | API key | `BRAVE_API_KEY` |
|
|
10
|
-
| [Tavily](https://tavily.com/) | API key (`tvly-…`) | `TAVILY_API_KEY` |
|
|
11
|
-
| [Exa](https://exa.ai/) | API key | `EXA_API_KEY` |
|
|
12
|
-
| [Serper](https://serper.dev/) (Google results) | API key | `SERPER_API_KEY` |
|
|
13
|
-
| [Google Programmable Search](https://developers.google.com/custom-search/v1/overview) | API key and search engine ID (`cx`) | `GOOGLE_SEARCH_API_KEY`, `GOOGLE_SEARCH_ENGINE_ID` |
|
|
14
|
-
| [SearXNG](https://docs.searxng.org/) | Instance URL, such as `http://localhost:8080` | `SEARXNG_URL` |
|
|
15
|
-
|
|
16
|
-
The keyed services have their own sign-up, free allowance and pricing. SearXNG is free and needs no key, but you have to run an instance yourself, for example with the `searxng/searxng` Docker image. It also has to allow JSON output: add `json` to `search.formats` in its `settings.yml`. Otherwise it answers HTTP 403, and the tool says so.
|
|
17
|
-
|
|
18
|
-
## Configure it
|
|
19
|
-
|
|
20
|
-
In the desktop app, open **Settings → Web Search**:
|
|
21
|
-
|
|
22
|
-
- **Search with** picks the default service. **Automatic** uses the first configured service, in the order of the table above. If you choose a service that is not configured, searches fail with a message saying so. They do not quietly switch to another service.
|
|
23
|
-
- Under **Search services**, paste a key and choose **Save**. A saved key is never shown again. To change it, paste a new one and choose **Replace**; to delete it, choose **Remove**. The Google search engine ID and the SearXNG URL are not secrets, so they stay visible and you can edit them.
|
|
24
|
-
|
|
25
|
-
Each row shows which value is in use: the saved one, or the environment variable when nothing is saved. A saved value always wins over the environment.
|
|
26
|
-
|
|
27
|
-
Without the desktop app, edit `~/.andorracode/config.json` (or `$ANDORRACODE_HOME/config.json`):
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
{
|
|
31
|
-
"webSearch": {
|
|
32
|
-
"defaultProvider": "brave",
|
|
33
|
-
"braveApiKey": "<key>",
|
|
34
|
-
"searxngUrl": "http://localhost:8080"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
The fields are `defaultProvider` (`brave`, `tavily`, `exa`, `serper`, `google` or `searxng`), `braveApiKey`, `tavilyApiKey`, `exaApiKey`, `serperApiKey`, `googleApiKey`, `googleSearchEngineId` and `searxngUrl`. Keys are kept in `config.json`, like the CapSolver key. Provider API keys, by contrast, go to the operating system credential store.
|
|
40
|
-
|
|
41
|
-
## Who can use it
|
|
42
|
-
|
|
43
|
-
`web_search` is in the `web` tool family and follows the node's **browser** capability: an agent or subagent role with the browser disabled does not get it. It is read-only, so it needs no approval, and it also works in Plan mode.
|
|
44
|
-
|
|
45
|
-
An agent is offered `web_search` only when a search could reach a service. Each run checks this as it starts: with no default service chosen and no key or SearXNG URL saved or set in the environment, the tool is left out of that run, because every search would fail with the same "not configured" message. A service you add takes effect from the next run. If you chose a default service that is not configured, the tool is still offered, so its error can tell you what to add.
|
|
46
|
-
|
|
47
|
-
With the `efficiency.catalogSelection` switch on (it is off by default), the tool catalog offers it only to tasks that mention the web, documentation, URLs or looking something up.
|
|
48
|
-
|
|
49
|
-
## Privacy
|
|
50
|
-
|
|
51
|
-
Every query goes to the service you configured, under that service's privacy policy. The key goes only in the request to that service. It never appears in the tool's output, in error messages, or in what the engine reports to the desktop app.
|