autopilot-ai 1.2.1 → 1.4.0
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 +24 -0
- package/dist/index.js +2888 -1772
- package/dist/index.js.map +1 -1
- package/dist/sdk/index.d.ts +9 -0
- package/dist/sdk/index.js +692 -123
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,6 +88,18 @@ Earlier kimiflare versions ran on Cloudflare Workers AI / AI Gateway. On the fir
|
|
|
88
88
|
- Memory keeps working unchanged: embeddings use the same `bge-base-en-v1.5` model, now via OpenRouter.
|
|
89
89
|
- `/gateway`, `autopilot auth cloudflare`, `--cloud` and the Cloud-only commands are gone. `/multi-agent` (Commute) still deploys to your Cloudflare account and keeps using `CLOUDFLARE_ACCOUNT_ID` / `CLOUDFLARE_API_TOKEN` for that.
|
|
90
90
|
|
|
91
|
+
### Local Hotcell research workers
|
|
92
|
+
|
|
93
|
+
`spawn_worker` can optionally run read-only research in a local [Hotcell](https://github.com/sinameraji/hotcell) sandbox instead of the remote Commute worker. Install and start Hotcell, add your OpenRouter key to the Hotcell host key store (`hotcell keys add openrouter`), then opt in with either:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
KIMIFLARE_WORKER_BACKEND=hotcell autopilot
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
or add `"workerBackend": "hotcell"` to `~/.config/kimiflare/config.json`. Remote workers remain the default. Each local worker uses an isolated cell with a pinned clean Git revision and a Hotcell-enforced spend ceiling; the exact active session model is passed through. The real provider key stays in Hotcell's host key store.
|
|
100
|
+
|
|
101
|
+
The current local backend is **research-only**: workers cannot write files, run shell commands, create PRs, or use MCP tools. They can inspect repository files only inside the cloned workspace; environment files, VCS metadata, and credential paths are blocked. The parent workspace must be clean and have a credential-free HTTPS or SSH `origin` that the Hotcell daemon can clone. Local uncommitted changes are never copied. Results are returned for coordinator review and are not applied automatically. Hotcell CLI/daemon setup and gateway availability are required.
|
|
102
|
+
|
|
91
103
|
### Model
|
|
92
104
|
|
|
93
105
|
You pick the model on first run, and can switch any time with `/model`. The picker opens on the **best & latest** models — recent, tool-capable models ranked by the agentic and coding benchmark scores OpenRouter publishes (Artificial Analysis), at most two per lab — so it stays current as new models ship, with no list maintained in code. Start typing to fuzzy-search all of them (`sonet` finds Claude Sonnet, `gpt 6` the GPT-6 family). Or set one directly:
|
|
@@ -269,11 +281,23 @@ autopilot
|
|
|
269
281
|
| `/mcp list` / `/mcp reload` | Manage MCP servers |
|
|
270
282
|
| `/reasoning` | Toggle chain-of-thought display |
|
|
271
283
|
| `/model` | Pick a model from OpenRouter's catalog (or `/model <id>`, `/model list [filter]`) |
|
|
284
|
+
| `/jev` | Ask Jev for a typed, scoped one-shot decision |
|
|
285
|
+
| `/subagents off\|suggest\|auto` | Set the harness's subagent routing policy (default: `suggest`) |
|
|
272
286
|
| `/key` | Show your OpenRouter key's spend and credit (`/key set <key>`, `/key clear`) |
|
|
273
287
|
| `/cost` | Show OpenRouter-confirmed cost by session, day, month and all time |
|
|
274
288
|
| `/update` | Check for updates |
|
|
275
289
|
| `/help` | List all commands |
|
|
276
290
|
|
|
291
|
+
### Subagent routing
|
|
292
|
+
|
|
293
|
+
`/subagents suggest` is the default. `off` disables harness-initiated suggestions; `suggest` recommends a worker for likely parallel work but tells the coordinator to ask before dispatch; `auto` lets the coordinator call `spawn_worker` when confidence is high. Explicit requests to use agents or work without them take precedence over this automatic policy. `/subagents auto` is also available through `KIMIFLARE_SUBAGENT_POLICY=auto` or `subagentPolicy: "auto"` in config.
|
|
294
|
+
|
|
295
|
+
The harness never starts a worker directly. The coordinator remains responsible for defining independent missions and synthesizing results. Jev is consulted only for substantial but ambiguous candidates, receives at most 1,200 characters of redacted task text (no chat history, project files, system prompt, or tool output), and has a 4-second timeout; any failure falls back to local sequential work. Clear routine or sequential tasks do not call Jev. Every `spawn_worker` call still requires its normal tool permission and obeys provider, read-only, spend, concurrency, and timeout limits—even in `auto` mode.
|
|
296
|
+
|
|
297
|
+
## Running shell commands yourself
|
|
298
|
+
|
|
299
|
+
Type `!` followed by a command (for example `! gh auth login`) to run it in your own terminal, inside the session. Logins, password prompts and interactive programs work because the command gets the real TTY. The output is added to the conversation so the agent can see it. The agent's own `bash` tool has no terminal, so autopilot suggests `! <command>` when something needs you: a login, a `sudo` password, an SSH passphrase, or a secret you'd rather not paste into chat. On macOS and Linux the output is captured with `script(1)`; elsewhere the command still runs but its output isn't captured.
|
|
300
|
+
|
|
277
301
|
## Keyboard shortcuts
|
|
278
302
|
|
|
279
303
|
| Shortcut | Action |
|