@bivy/bivy 0.0.0 → 0.1.0-staging.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 (147) hide show
  1. package/LICENSE +105 -0
  2. package/README.md +335 -5
  3. package/bin/acp-shim.mjs +298 -0
  4. package/bin/agent-manifest.json +277 -0
  5. package/bin/bivy.mjs +4215 -0
  6. package/bin/codex-app-server-shim.mjs +447 -0
  7. package/bin/patch-pi-dependencies.mjs +44 -0
  8. package/bin/port-picker.mjs +40 -0
  9. package/bin/prune-sessions.mjs +52 -0
  10. package/bin/sessions-list.mjs +27 -0
  11. package/bin/shim-path.mjs +126 -0
  12. package/bin/uninstall-paths.mjs +48 -0
  13. package/dist/approval.js +87 -0
  14. package/dist/attach.js +248 -0
  15. package/dist/auth.js +258 -0
  16. package/dist/bivy-login.js +180 -0
  17. package/dist/browser-open.js +50 -0
  18. package/dist/control-plane-tasks.js +236 -0
  19. package/dist/data-dir.js +25 -0
  20. package/dist/device-registry.js +201 -0
  21. package/dist/e2e.js +70 -0
  22. package/dist/ephemeral-exec.js +109 -0
  23. package/dist/exec.js +209 -0
  24. package/dist/git-auth.js +155 -0
  25. package/dist/github-app-auth.js +107 -0
  26. package/dist/github-app-connect.js +235 -0
  27. package/dist/github-app-manifest.js +82 -0
  28. package/dist/github-app-sync-cli.js +93 -0
  29. package/dist/github-app-vault.js +106 -0
  30. package/dist/github-apps.js +121 -0
  31. package/dist/github-connect-repo.js +74 -0
  32. package/dist/github-device-auth.js +109 -0
  33. package/dist/github-tasks.js +650 -0
  34. package/dist/guard.js +109 -0
  35. package/dist/harness/cache-evict.js +88 -0
  36. package/dist/harness/checkpoint.js +0 -0
  37. package/dist/harness/cow-clone.js +84 -0
  38. package/dist/harness/dep-cache.js +78 -0
  39. package/dist/harness/disk-admission.js +46 -0
  40. package/dist/harness/egress.js +30 -0
  41. package/dist/harness/manager.js +97 -0
  42. package/dist/harness/mcp-config-formats.js +164 -0
  43. package/dist/harness/mcp-config.js +111 -0
  44. package/dist/harness/mcp-inject.js +134 -0
  45. package/dist/harness/mcp-proxy-cli.js +88 -0
  46. package/dist/harness/mcp-proxy.js +150 -0
  47. package/dist/harness/net-proxy.js +120 -0
  48. package/dist/harness/sandbox.js +96 -0
  49. package/dist/history-sync.js +26 -0
  50. package/dist/hosted-endpoints.d.mts +14 -0
  51. package/dist/hosted-endpoints.mjs +35 -0
  52. package/dist/identity.js +153 -0
  53. package/dist/integrations/index.js +4 -0
  54. package/dist/integrations/manager.js +279 -0
  55. package/dist/integrations/oauth.js +78 -0
  56. package/dist/integrations/registry.js +239 -0
  57. package/dist/integrations/store.js +54 -0
  58. package/dist/integrations/types.js +1 -0
  59. package/dist/linear-tasks.js +49 -0
  60. package/dist/metadata.js +226 -0
  61. package/dist/multiplexer.js +79 -0
  62. package/dist/native-pi.js +38 -0
  63. package/dist/node-stats.js +237 -0
  64. package/dist/pairing-crypto.js +105 -0
  65. package/dist/policy/conditions.js +103 -0
  66. package/dist/policy/policy-engine.js +20 -0
  67. package/dist/policy/risk.js +18 -0
  68. package/dist/policy/ruleset.js +113 -0
  69. package/dist/policy/run-policy.js +108 -0
  70. package/dist/policy/session-reroute.js +96 -0
  71. package/dist/pty-runner.py +95 -0
  72. package/dist/question.js +146 -0
  73. package/dist/redact.js +97 -0
  74. package/dist/relay-attach.js +345 -0
  75. package/dist/relay-chunk.js +73 -0
  76. package/dist/relay-cli-crypto.js +70 -0
  77. package/dist/relay-client.js +372 -0
  78. package/dist/relay-setup.js +262 -0
  79. package/dist/repo-workspace.js +208 -0
  80. package/dist/runtime/adoption.js +45 -0
  81. package/dist/runtime/agent-service-bin.js +149 -0
  82. package/dist/runtime/agent-service.js +439 -0
  83. package/dist/runtime/ansi.js +27 -0
  84. package/dist/runtime/anthropic-preflight.js +80 -0
  85. package/dist/runtime/claude-code.js +1408 -0
  86. package/dist/runtime/cli-parsers.js +647 -0
  87. package/dist/runtime/codex-auth.js +168 -0
  88. package/dist/runtime/codex-preflight.js +60 -0
  89. package/dist/runtime/codex-sessions.js +279 -0
  90. package/dist/runtime/control-plane-location.js +74 -0
  91. package/dist/runtime/credential-ingest.js +122 -0
  92. package/dist/runtime/credential-provisioning.js +79 -0
  93. package/dist/runtime/credential-store.js +435 -0
  94. package/dist/runtime/credentials.js +153 -0
  95. package/dist/runtime/host.js +153 -0
  96. package/dist/runtime/index.js +1552 -0
  97. package/dist/runtime/local-model-store.js +194 -0
  98. package/dist/runtime/location-registry.js +28 -0
  99. package/dist/runtime/model-catalog.js +97 -0
  100. package/dist/runtime/model-namer.js +85 -0
  101. package/dist/runtime/native-process-scan.js +102 -0
  102. package/dist/runtime/native-session-discovery.js +103 -0
  103. package/dist/runtime/normalize.js +75 -0
  104. package/dist/runtime/oauth/model-oauth-providers.js +75 -0
  105. package/dist/runtime/oauth/model-oauth.js +324 -0
  106. package/dist/runtime/opencode-preflight.js +55 -0
  107. package/dist/runtime/pi-auth.js +82 -0
  108. package/dist/runtime/pi-oauth.js +52 -0
  109. package/dist/runtime/pi-session-discovery.js +42 -0
  110. package/dist/runtime/pi.js +539 -0
  111. package/dist/runtime/process.js +499 -0
  112. package/dist/runtime/protocol.js +646 -0
  113. package/dist/runtime/remote.js +541 -0
  114. package/dist/runtime/rpc-protocol.js +56 -0
  115. package/dist/runtime/ruleset-store.js +117 -0
  116. package/dist/runtime/session-location.js +50 -0
  117. package/dist/runtime/types.js +17 -0
  118. package/dist/secrets-cli.js +134 -0
  119. package/dist/secrets.js +264 -0
  120. package/dist/server.js +9435 -0
  121. package/dist/session/bivy-session.js +1 -0
  122. package/dist/session/checkpoint-pack.js +133 -0
  123. package/dist/session/event-log.js +340 -0
  124. package/dist/session/fork-dirty.js +73 -0
  125. package/dist/session/fork-prereqs.js +61 -0
  126. package/dist/session/fork.js +90 -0
  127. package/dist/session/native-import.js +56 -0
  128. package/dist/session/reconnect.js +168 -0
  129. package/dist/session/replication-service.js +236 -0
  130. package/dist/session/replication.js +106 -0
  131. package/dist/session/replicator.js +140 -0
  132. package/dist/session/session-new-dedupe.js +42 -0
  133. package/dist/session/sibling-client.js +201 -0
  134. package/dist/session/transcript-merge.js +131 -0
  135. package/dist/session/transcript-normal.js +195 -0
  136. package/dist/session/workspace-context.js +1 -0
  137. package/dist/session-event-coalescer.js +50 -0
  138. package/dist/session-identity.js +34 -0
  139. package/dist/session-ref.js +65 -0
  140. package/dist/stt-cli.js +131 -0
  141. package/dist/stt.js +168 -0
  142. package/dist/terminal.js +409 -0
  143. package/dist/wire-format.js +67 -0
  144. package/dist/worktree-provision.js +118 -0
  145. package/dist/worktree.js +117 -0
  146. package/package.json +40 -6
  147. package/public/qr.js +464 -0
@@ -0,0 +1,298 @@
1
+ #!/usr/bin/env node
2
+ // SPDX-License-Identifier: FSL-1.1-ALv2
3
+ // Copyright (c) 2026 Petter André Sjulstad
4
+ // ACP ⇄ Bivy Agent Protocol shim — the GENERAL high-capability adapter.
5
+ //
6
+ // The Codex shim (codex-app-server-shim.mjs) proved that driving an agent's
7
+ // bidirectional JSON-RPC app-server — instead of a one-shot stdout pipe — buys
8
+ // per-tool approvals, streaming, and resume. Everything there is Codex-specific is
9
+ // the *protocol*. ACP (Agent Client Protocol, https://agentclientprotocol.com) is
10
+ // the open standard for exactly that surface, and a growing set of agents speak it
11
+ // (Gemini CLI `--experimental-acp`, and others). This shim bridges ANY ACP agent to
12
+ // the bivy-agent-protocol JSONL that ProtocolRuntime (src/runtime/protocol.ts)
13
+ // speaks — so a new ACP agent becomes fully governed (Approve/Deny per tool),
14
+ // streaming, and resumable as DATA (one catalog entry), never per-agent code.
15
+ //
16
+ // Usage (spawned by the daemon's `acp` runtime):
17
+ // node acp-shim.mjs --agent <cmd> [-- <agent args…>]
18
+ //
19
+ // ACP surface implemented (client side of the protocol):
20
+ // → initialize / session/new / session/load / session/prompt / session/cancel
21
+ // ← session/update (agent_message_chunk, agent_thought_chunk, tool_call,
22
+ // tool_call_update, plan) → streamed transcript
23
+ // ← session/request_permission → a bivy `tool.call` we block on until the human
24
+ // taps Approve/Deny (answered as the ACP selected option)
25
+ // ← fs/read_text_file / fs/write_text_file → serviced against the workspace
26
+ //
27
+ // Transport is newline-delimited JSON-RPC 2.0 over the agent's stdio (as Gemini's
28
+ // ACP mode emits). Experimental: validate against your ACP agent, then promote it
29
+ // into the picker as data. Fail-closed on permission (deny if the human declines),
30
+ // fail-safe elsewhere (surface errors as session.error rather than wedging).
31
+
32
+ import { spawn } from "node:child_process";
33
+ import { createInterface } from "node:readline";
34
+ import fs from "node:fs";
35
+
36
+ // --- arg parsing: --agent <cmd> [-- <args…>] --------------------------------
37
+ const argv = process.argv.slice(2);
38
+ let agentCmd = process.env.BIVY_ACP_COMMAND || "";
39
+ let agentArgs = [];
40
+ for (let i = 0; i < argv.length; i++) {
41
+ if (argv[i] === "--agent") agentCmd = argv[++i] ?? "";
42
+ else if (argv[i] === "--") { agentArgs = argv.slice(i + 1); break; }
43
+ }
44
+ if (process.env.BIVY_ACP_ARGS && agentArgs.length === 0) {
45
+ try { const p = JSON.parse(process.env.BIVY_ACP_ARGS); if (Array.isArray(p)) agentArgs = p.map(String); } catch { /* ignore */ }
46
+ }
47
+ if (!agentCmd) {
48
+ process.stderr.write("acp-shim: no agent command (set --agent <cmd> or BIVY_ACP_COMMAND)\n");
49
+ process.exit(2);
50
+ }
51
+
52
+ // --- bivy-agent-protocol output (our stdout) --------------------------------
53
+ function bivy(obj) {
54
+ process.stdout.write(`${JSON.stringify(obj)}\n`);
55
+ }
56
+
57
+ // --- ACP agent (child JSON-RPC over its stdio) ------------------------------
58
+ const agent = spawn(agentCmd, agentArgs, { stdio: ["pipe", "pipe", "pipe"] });
59
+ agent.stderr.on("data", (d) => process.stderr.write(`[acp-agent] ${d}`));
60
+ agent.on("error", (e) => bivy({ type: "session.error", error: `acp agent spawn failed: ${e.message}` }));
61
+ agent.on("exit", (code) => {
62
+ if (code && code !== 0) bivy({ type: "session.error", error: `acp agent exited (${code})` });
63
+ });
64
+
65
+ let nextId = 1;
66
+ const pending = new Map(); // jsonrpc id -> {resolve, reject}
67
+ function agentRequest(method, params) {
68
+ const id = nextId++;
69
+ agent.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id, method, params })}\n`);
70
+ return new Promise((resolve, reject) => pending.set(id, { resolve, reject }));
71
+ }
72
+ function agentReply(id, result) {
73
+ agent.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id, result })}\n`);
74
+ }
75
+ function agentReplyError(id, code, message) {
76
+ agent.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id, error: { code, message } })}\n`);
77
+ }
78
+ function agentNotify(method, params) {
79
+ agent.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", method, params })}\n`);
80
+ }
81
+
82
+ // --- session state ----------------------------------------------------------
83
+ let sessionId = null;
84
+ let cwd = process.cwd();
85
+ let initialized = false;
86
+ // toolCallId -> { requestId, options } so a later bivy tool.decision answers the
87
+ // right ACP permission request with a concrete optionId.
88
+ const permissionRequests = new Map();
89
+
90
+ async function ensureInitialized() {
91
+ if (initialized) return;
92
+ await agentRequest("initialize", {
93
+ protocolVersion: 1,
94
+ clientCapabilities: { fs: { readTextFile: true, writeTextFile: true } },
95
+ });
96
+ initialized = true;
97
+ }
98
+
99
+ // --- ACP → bivy: streamed session/update notifications ----------------------
100
+ function onSessionUpdate(params) {
101
+ const u = params?.update;
102
+ if (!u || typeof u !== "object") return;
103
+ const kind = String(u.sessionUpdate || "");
104
+ const textOf = (content) => {
105
+ if (!content) return "";
106
+ if (typeof content === "string") return content;
107
+ if (Array.isArray(content)) return content.map(textOf).join("");
108
+ if (content.type === "text" && typeof content.text === "string") return content.text;
109
+ if (typeof content.text === "string") return content.text;
110
+ return "";
111
+ };
112
+ switch (kind) {
113
+ case "agent_message_chunk": {
114
+ const t = textOf(u.content);
115
+ if (t) bivy({ type: "message.delta", text: t });
116
+ break;
117
+ }
118
+ case "agent_thought_chunk": {
119
+ const t = textOf(u.content);
120
+ if (t) bivy({ type: "message.reasoning", text: t });
121
+ break;
122
+ }
123
+ case "tool_call": {
124
+ // An auto-run tool (no permission requested) — surface it so the transcript
125
+ // shows the action; the result arrives via tool_call_update.
126
+ const toolCallId = String(u.toolCallId ?? u.id ?? "");
127
+ bivy({ type: "tool.call", toolCallId, name: String(u.title || u.kind || "tool"), input: u.rawInput ?? u.input ?? {} });
128
+ break;
129
+ }
130
+ case "tool_call_update": {
131
+ const toolCallId = String(u.toolCallId ?? u.id ?? "");
132
+ const status = String(u.status || "");
133
+ if (status === "completed" || status === "failed") {
134
+ bivy({ type: "tool.result", toolCallId, name: String(u.title || "tool"), result: textOf(u.content) || status });
135
+ }
136
+ break;
137
+ }
138
+ case "plan":
139
+ // Optional planning stream — fold into reasoning so nothing is lost.
140
+ if (Array.isArray(u.entries)) bivy({ type: "message.reasoning", text: u.entries.map((e) => `• ${e.content ?? ""}`).join("\n") });
141
+ break;
142
+ default:
143
+ break;
144
+ }
145
+ }
146
+
147
+ // --- ACP → bivy: agent→client requests (permission, fs) ---------------------
148
+ async function onAgentRequest(id, method, params) {
149
+ switch (method) {
150
+ case "session/request_permission": {
151
+ // Turn the ACP permission prompt into a bivy tool.call the daemon gates via
152
+ // guardianInterceptor; remember the options so the human's decision maps back
153
+ // to a concrete ACP optionId.
154
+ const tc = params?.toolCall ?? {};
155
+ const toolCallId = String(tc.toolCallId ?? tc.id ?? `perm-${id}`);
156
+ const options = Array.isArray(params?.options) ? params.options : [];
157
+ permissionRequests.set(toolCallId, { requestId: id, options });
158
+ bivy({ type: "tool.call", toolCallId, name: String(tc.title || tc.kind || "tool"), input: tc.rawInput ?? tc.input ?? {} });
159
+ return;
160
+ }
161
+ case "fs/read_text_file": {
162
+ try {
163
+ let text = fs.readFileSync(String(params?.path ?? ""), "utf8");
164
+ if (typeof params?.line === "number" || typeof params?.limit === "number") {
165
+ const lines = text.split("\n");
166
+ const start = Math.max(0, (params.line ?? 1) - 1);
167
+ text = lines.slice(start, params.limit ? start + params.limit : undefined).join("\n");
168
+ }
169
+ agentReply(id, { content: text });
170
+ } catch (e) {
171
+ agentReplyError(id, -32000, `read failed: ${e.message}`);
172
+ }
173
+ return;
174
+ }
175
+ case "fs/write_text_file": {
176
+ try {
177
+ fs.writeFileSync(String(params?.path ?? ""), String(params?.content ?? ""));
178
+ agentReply(id, {});
179
+ } catch (e) {
180
+ agentReplyError(id, -32000, `write failed: ${e.message}`);
181
+ }
182
+ return;
183
+ }
184
+ default:
185
+ // Unknown client method (e.g. terminal/*): decline so the agent can fall back
186
+ // instead of hanging on a request we don't implement.
187
+ agentReplyError(id, -32601, `unsupported client method: ${method}`);
188
+ return;
189
+ }
190
+ }
191
+
192
+ // --- read the ACP agent's stdout (JSON-RPC lines) ---------------------------
193
+ createInterface({ input: agent.stdout }).on("line", (line) => {
194
+ const t = line.trim();
195
+ if (!t) return;
196
+ let msg;
197
+ try { msg = JSON.parse(t); } catch { return; }
198
+ // Response to one of our requests.
199
+ if (msg.id !== undefined && (msg.result !== undefined || msg.error !== undefined)) {
200
+ const p = pending.get(msg.id);
201
+ if (p) {
202
+ pending.delete(msg.id);
203
+ if (msg.error) p.reject(new Error(msg.error.message || "acp error"));
204
+ else p.resolve(msg.result);
205
+ }
206
+ return;
207
+ }
208
+ // Agent→client request (has id + method).
209
+ if (msg.id !== undefined && msg.method) { void onAgentRequest(msg.id, msg.method, msg.params); return; }
210
+ // Notification (method, no id).
211
+ if (msg.method === "session/update") onSessionUpdate(msg.params);
212
+ });
213
+
214
+ // --- bivy commands in (daemon → us) -----------------------------------------
215
+ async function onBivyCommand(msg) {
216
+ const type = String(msg.type || "");
217
+ const id = msg.id;
218
+ try {
219
+ switch (type) {
220
+ case "hello.ack":
221
+ return;
222
+ case "session.create": {
223
+ await ensureInitialized();
224
+ cwd = String(msg.cwd || msg.workspace || cwd);
225
+ const res = await agentRequest("session/new", { cwd, mcpServers: [] });
226
+ sessionId = res?.sessionId ?? res?.session?.id ?? null;
227
+ bivy({ replyTo: id, ok: true, runtimeSessionRef: sessionId });
228
+ return;
229
+ }
230
+ case "session.resume": {
231
+ await ensureInitialized();
232
+ const ref = String(msg.runtimeSessionRef || msg.resumeRef || msg.sessionId || "");
233
+ cwd = String(msg.cwd || msg.workspace || cwd);
234
+ if (!ref) { bivy({ replyTo: id, ok: false, error: "missing resume ref" }); return; }
235
+ try {
236
+ const res = await agentRequest("session/load", { sessionId: ref, cwd, mcpServers: [] });
237
+ sessionId = res?.sessionId ?? ref;
238
+ } catch {
239
+ // Agent doesn't support session/load — start fresh so the chat still opens.
240
+ const res = await agentRequest("session/new", { cwd, mcpServers: [] });
241
+ sessionId = res?.sessionId ?? null;
242
+ }
243
+ bivy({ replyTo: id, ok: true, runtimeSessionRef: sessionId });
244
+ return;
245
+ }
246
+ case "chat.send": {
247
+ if (!sessionId) { bivy({ replyTo: id, ok: false, error: "no acp session" }); return; }
248
+ // Ack immediately; the turn streams via session/update and finishes when the
249
+ // session/prompt request resolves (approval cards can make a turn outlast
250
+ // ProtocolRuntime's command timeout, so we must not defer the ack).
251
+ bivy({ replyTo: id, ok: true });
252
+ bivy({ type: "session.status", status: "working" });
253
+ agentRequest("session/prompt", { sessionId, prompt: [{ type: "text", text: String(msg.text ?? "") }] })
254
+ .then(() => { bivy({ type: "session.status", status: "idle" }); bivy({ type: "session.done" }); })
255
+ .catch((e) => bivy({ type: "session.error", error: e instanceof Error ? e.message : String(e) }));
256
+ return;
257
+ }
258
+ case "tool.decision": {
259
+ const entry = permissionRequests.get(msg.toolCallId);
260
+ if (entry) {
261
+ permissionRequests.delete(msg.toolCallId);
262
+ const allow = msg.decision !== "deny";
263
+ // Pick an ACP option matching the human's choice by its `kind`
264
+ // (allow_once/allow_always vs reject_once/reject_always); fall back to the
265
+ // first option, or a cancelled outcome when nothing fits.
266
+ const want = allow ? /^allow/ : /^reject/;
267
+ const opt = entry.options.find((o) => want.test(String(o.kind || ""))) ?? entry.options[0];
268
+ if (opt && opt.optionId !== undefined) agentReply(entry.requestId, { outcome: { outcome: "selected", optionId: opt.optionId } });
269
+ else agentReply(entry.requestId, { outcome: { outcome: "cancelled" } });
270
+ }
271
+ return;
272
+ }
273
+ case "session.abort": {
274
+ if (sessionId) agentNotify("session/cancel", { sessionId });
275
+ if (id !== undefined) bivy({ replyTo: id, ok: true });
276
+ return;
277
+ }
278
+ default:
279
+ if (id !== undefined) bivy({ replyTo: id, ok: true });
280
+ return;
281
+ }
282
+ } catch (error) {
283
+ if (id !== undefined) bivy({ replyTo: id, ok: false, error: error instanceof Error ? error.message : String(error) });
284
+ else bivy({ type: "session.error", error: error instanceof Error ? error.message : String(error) });
285
+ }
286
+ }
287
+
288
+ // Announce capabilities: ACP agents are governed (per-tool permission) and
289
+ // resumable (session/load). Models aren't part of the core ACP surface, so we
290
+ // don't advertise a picker we can't drive.
291
+ bivy({ type: "hello", runtime: { capabilities: { toolInterception: true, modelSelection: false, resume: true } } });
292
+
293
+ createInterface({ input: process.stdin }).on("line", (line) => {
294
+ if (!line.trim()) return;
295
+ let msg;
296
+ try { msg = JSON.parse(line); } catch { return; }
297
+ void onBivyCommand(msg);
298
+ });
@@ -0,0 +1,277 @@
1
+ {
2
+ "agents": [
3
+ {
4
+ "id": "codex",
5
+ "label": "Codex",
6
+ "command": "codex",
7
+ "hidden": true,
8
+ "headlessFlags": [
9
+ "exec"
10
+ ],
11
+ "install": {
12
+ "kind": "npm",
13
+ "pkg": "@openai/codex"
14
+ }
15
+ },
16
+ {
17
+ "id": "opencode",
18
+ "label": "OpenCode",
19
+ "command": "opencode",
20
+ "hidden": false,
21
+ "headlessFlags": [
22
+ "run",
23
+ "-s"
24
+ ],
25
+ "install": {
26
+ "kind": "npm",
27
+ "pkg": "opencode-ai"
28
+ }
29
+ },
30
+ {
31
+ "id": "aider",
32
+ "label": "Aider",
33
+ "command": "aider",
34
+ "hidden": false,
35
+ "headlessFlags": [
36
+ "--yes-always",
37
+ "--message"
38
+ ],
39
+ "install": {
40
+ "kind": "pip",
41
+ "pkg": "aider-chat"
42
+ }
43
+ },
44
+ {
45
+ "id": "hermes",
46
+ "label": "Hermes",
47
+ "command": "hermes",
48
+ "hidden": true,
49
+ "headlessFlags": [],
50
+ "install": {
51
+ "kind": "npm",
52
+ "pkg": "hermes-agent"
53
+ }
54
+ },
55
+ {
56
+ "id": "goose",
57
+ "label": "Goose",
58
+ "command": "goose",
59
+ "hidden": false,
60
+ "headlessFlags": [
61
+ "run",
62
+ "-t",
63
+ "--output-format",
64
+ "stream-json",
65
+ "--resume",
66
+ "--session-id"
67
+ ],
68
+ "install": {
69
+ "kind": "curl",
70
+ "display": "curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bash",
71
+ "shell": "mkdir -p \"{bin}\" && curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | CONFIGURE=false GOOSE_BIN_DIR=\"{bin}\" bash"
72
+ }
73
+ },
74
+ {
75
+ "id": "gemini",
76
+ "label": "Gemini CLI",
77
+ "command": "gemini",
78
+ "hidden": false,
79
+ "headlessFlags": [
80
+ "-p",
81
+ "-o",
82
+ "json",
83
+ "-r"
84
+ ],
85
+ "install": {
86
+ "kind": "npm",
87
+ "pkg": "@google/gemini-cli"
88
+ }
89
+ },
90
+ {
91
+ "id": "qwen",
92
+ "label": "Qwen Code",
93
+ "command": "qwen",
94
+ "hidden": false,
95
+ "headlessFlags": [
96
+ "-p",
97
+ "--output-format",
98
+ "json",
99
+ "--resume"
100
+ ],
101
+ "install": {
102
+ "kind": "npm",
103
+ "pkg": "@qwen-code/qwen-code"
104
+ }
105
+ },
106
+ {
107
+ "id": "cline",
108
+ "label": "Cline",
109
+ "command": "cline",
110
+ "hidden": false,
111
+ "headlessFlags": [
112
+ "-y",
113
+ "--id"
114
+ ],
115
+ "install": {
116
+ "kind": "npm",
117
+ "pkg": "cline"
118
+ }
119
+ },
120
+ {
121
+ "id": "crush",
122
+ "label": "Crush",
123
+ "command": "crush",
124
+ "hidden": false,
125
+ "headlessFlags": [
126
+ "run",
127
+ "-q"
128
+ ],
129
+ "install": {
130
+ "kind": "npm",
131
+ "pkg": "@charmland/crush"
132
+ }
133
+ },
134
+ {
135
+ "id": "cursor",
136
+ "label": "Cursor",
137
+ "command": "cursor-agent",
138
+ "hidden": false,
139
+ "headlessFlags": [
140
+ "--force",
141
+ "-p"
142
+ ],
143
+ "install": {
144
+ "kind": "curl",
145
+ "display": "curl https://cursor.com/install -fsS | bash",
146
+ "shell": "curl https://cursor.com/install -fsS | bash"
147
+ }
148
+ },
149
+ {
150
+ "id": "copilot",
151
+ "label": "GitHub Copilot",
152
+ "command": "copilot",
153
+ "hidden": false,
154
+ "headlessFlags": [
155
+ "--allow-all-tools",
156
+ "-p"
157
+ ],
158
+ "install": {
159
+ "kind": "npm",
160
+ "pkg": "@github/copilot"
161
+ }
162
+ },
163
+ {
164
+ "id": "grok",
165
+ "label": "Grok",
166
+ "command": "grok",
167
+ "hidden": false,
168
+ "headlessFlags": [
169
+ "-p"
170
+ ],
171
+ "install": {
172
+ "kind": "npm",
173
+ "pkg": "@vibe-kit/grok-cli"
174
+ }
175
+ },
176
+ {
177
+ "id": "amp",
178
+ "label": "Amp",
179
+ "command": "amp",
180
+ "hidden": false,
181
+ "headlessFlags": [
182
+ "-x",
183
+ "threads",
184
+ "continue"
185
+ ],
186
+ "install": {
187
+ "kind": "npm",
188
+ "pkg": "@sourcegraph/amp"
189
+ }
190
+ },
191
+ {
192
+ "id": "auggie",
193
+ "label": "Auggie",
194
+ "command": "auggie",
195
+ "hidden": false,
196
+ "headlessFlags": [
197
+ "--quiet",
198
+ "--print"
199
+ ],
200
+ "install": {
201
+ "kind": "npm",
202
+ "pkg": "@augmentcode/auggie"
203
+ }
204
+ },
205
+ {
206
+ "id": "droid",
207
+ "label": "Droid",
208
+ "command": "droid",
209
+ "hidden": false,
210
+ "headlessFlags": [
211
+ "exec",
212
+ "--auto",
213
+ "high"
214
+ ],
215
+ "install": {
216
+ "kind": "curl",
217
+ "display": "curl -fsSL https://app.factory.ai/cli | sh",
218
+ "shell": "curl -fsSL https://app.factory.ai/cli | sh"
219
+ }
220
+ },
221
+ {
222
+ "id": "continue",
223
+ "label": "Continue",
224
+ "command": "cn",
225
+ "hidden": false,
226
+ "headlessFlags": [
227
+ "--auto",
228
+ "-p"
229
+ ],
230
+ "install": {
231
+ "kind": "npm",
232
+ "pkg": "@continuedev/cli"
233
+ }
234
+ },
235
+ {
236
+ "id": "kilocode",
237
+ "label": "Kilo Code",
238
+ "command": "kilo",
239
+ "hidden": false,
240
+ "headlessFlags": [
241
+ "run",
242
+ "--auto",
243
+ "-s"
244
+ ],
245
+ "install": {
246
+ "kind": "npm",
247
+ "pkg": "@kilocode/cli"
248
+ }
249
+ },
250
+ {
251
+ "id": "rovodev",
252
+ "label": "Rovo Dev",
253
+ "command": "acli",
254
+ "hidden": false,
255
+ "headlessFlags": [
256
+ "rovodev",
257
+ "run",
258
+ "--yolo",
259
+ "--restore"
260
+ ],
261
+ "install": null
262
+ },
263
+ {
264
+ "id": "codebuff",
265
+ "label": "Codebuff",
266
+ "command": "codebuff",
267
+ "hidden": true,
268
+ "headlessFlags": [
269
+ "--continue"
270
+ ],
271
+ "install": {
272
+ "kind": "npm",
273
+ "pkg": "codebuff"
274
+ }
275
+ }
276
+ ]
277
+ }