@shardflux/cli 0.25.0 → 0.28.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/CHANGELOG.md +130 -1
- package/README.md +145 -34
- package/dist/account-pool.d.ts +11 -1
- package/dist/account-pool.js +48 -0
- package/dist/agent-commands.js +4 -3
- package/dist/agent-models.d.ts +31 -1
- package/dist/agent-models.js +27 -4
- package/dist/args.d.ts +1 -1
- package/dist/args.js +67 -12
- package/dist/board-args.js +8 -3
- package/dist/board-commands.d.ts +7 -3
- package/dist/board-commands.js +22 -12
- package/dist/brain-commands.d.ts +2 -0
- package/dist/brain-commands.js +78 -0
- package/dist/client-settings.d.ts +2 -1
- package/dist/client-settings.js +14 -2
- package/dist/codex-cloud.d.ts +2 -0
- package/dist/codex-cloud.js +14 -11
- package/dist/commands.js +8 -0
- package/dist/conversation-commands.d.ts +5 -1
- package/dist/conversation-commands.js +58 -6
- package/dist/conversation-terminal.js +2 -2
- package/dist/desktop-linux.d.ts +12 -1
- package/dist/desktop-linux.js +47 -18
- package/dist/device-approvals.js +24 -2
- package/dist/device-bridge.d.ts +21 -4
- package/dist/device-bridge.js +173 -7
- package/dist/device-folders.d.ts +6 -1
- package/dist/device-folders.js +6 -2
- package/dist/device-helper.d.ts +8 -0
- package/dist/device-helper.js +71 -12
- package/dist/device-mode.d.ts +44 -0
- package/dist/device-mode.js +119 -0
- package/dist/drive-commands.d.ts +2 -2
- package/dist/drive-commands.js +1 -1
- package/dist/handlers.js +4 -2
- package/dist/land.d.ts +9 -4
- package/dist/land.js +52 -6
- package/dist/mac-app.d.ts +11 -0
- package/dist/mac-app.js +11 -0
- package/dist/main.js +2 -0
- package/dist/menubar.d.ts +18 -13
- package/dist/menubar.js +60 -50
- package/dist/orchestrator-args.d.ts +7 -0
- package/dist/orchestrator-args.js +64 -0
- package/dist/orchestrator-commands.d.ts +43 -0
- package/dist/orchestrator-commands.js +262 -0
- package/dist/person-scope.d.ts +20 -0
- package/dist/person-scope.js +61 -0
- package/dist/project-hub-seed.d.ts +20 -0
- package/dist/project-hub-seed.js +59 -0
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +2 -1
- package/dist/router-commands.d.ts +12 -21
- package/dist/router-commands.js +5 -59
- package/dist/t3-launch.js +2 -2
- package/dist/task-land-hub.py +16 -1
- package/dist/this-computer.d.ts +4 -2
- package/dist/this-computer.js +20 -2
- package/dist/thread-on-computer.js +2 -2
- package/dist/timing.js +3 -1
- package/dist/transcribe-commands.js +6 -2
- package/dist/update.js +4 -2
- package/dist/wait-status.d.ts +1 -1
- package/dist/wait-status.js +2 -0
- package/dist/worktree-twin-engine.js +1 -1
- package/dist/worktree-twin.d.ts +6 -0
- package/dist/worktree-twin.js +8 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,134 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- `shard orchestrator say` (0.28.0+, SDK 0.30.0): every input waits its turn in order,
|
|
6
|
+
however many wait (no more 429), and one of your orchestrator's threads hears each input at once, all in parallel: a
|
|
7
|
+
follow-up reaches the thread of the request it is about (the input reads merged), the row you point at reaches the
|
|
8
|
+
thread of that row's input, and anything new gets a thread of its own. The help text says so.
|
|
9
|
+
- Your inbox on every device (0.28.0+, SDK 0.30.0): `shard conversations archive <id...>` archives conversations from
|
|
10
|
+
your own inbox, `shard conversations unarchive <id...>` brings them back and `shard conversations seen <id...>` records
|
|
11
|
+
that you opened them now, the same in the Shardflux app and every client you use (`shard c archive|unarchive|seen`).
|
|
12
|
+
Each takes up to 200 ids in one request and prints `Archived <id> <title>`, `Unarchived <id> <title>` or
|
|
13
|
+
`Marked seen <id> <title>` per conversation, and `Not found: <id>` on stderr for an id you cannot read; it exits 3
|
|
14
|
+
when none was found. `--json` prints the API's answer, `{data, skipped}`, the conversations with your `seen_at` and
|
|
15
|
+
`dismissed_at`. Only your view changes: the conversations, their agents and computers carry on. `shard conversations
|
|
16
|
+
get --json` and `list --json` carry the same `seen_at`, `dismissed_at` and `needs_you_reason`.
|
|
17
|
+
- Restore an orchestrator input (0.28.0+, SDK 0.30.0): `shard orchestrator restore <input-id>` brings an input you
|
|
18
|
+
dismissed back into `shard orchestrator list` on every device and prints `Restored: <your words>` (`--json`:
|
|
19
|
+
`{input}`). Restoring an input that is not dismissed changes nothing.
|
|
20
|
+
- Orchestrator answer media (0.27.0+, SDK 0.29.0): `shard orchestrator say --wait` prints a line for each picture,
|
|
21
|
+
video or file the answer shows, after its points: ` media: loss-curve.png (image, 1200×800, 84.0 KB)` (the size in
|
|
22
|
+
pixels once measured). `--json` adds the answer's `media`; `shard drive get <file.path> --sha256 <file.sha256>` reads
|
|
23
|
+
one.
|
|
24
|
+
|
|
25
|
+
- Orchestrator report cards (0.27.0+, SDK 0.29.0): `shard orchestrator say --wait` prints an answer the orchestrator
|
|
26
|
+
wrote as a report as its verdict, then its points under their group headings, one line each:
|
|
27
|
+
`- Loss is down to 1.84: from 2.31 at step 5,000 (14:02)`, the time short and in this computer's local time; a point
|
|
28
|
+
written without a lead prints its words. Every point, source and follow-up prints whole, however long. An answer
|
|
29
|
+
written as facts prints its facts as before. `--json` adds the answer's `points`.
|
|
30
|
+
|
|
31
|
+
- Board content at any length (0.27.0+, SDK 0.29.0): `shard task show` prints a task's title, its plan steps and each
|
|
32
|
+
report's title and outcome whole, however long the agent wrote them (the terminal wraps them); `shard task edit
|
|
33
|
+
--title` takes a title of any length.
|
|
34
|
+
|
|
35
|
+
- Your brain (0.27.0+, SDK 0.29.0): `shard brain ls [prefix]` lists your brain's files (size, saved time, type and
|
|
36
|
+
path; `--all`, `--limit`, `--cursor`; `--json` adds `next_cursor` and the brain's `version`) and `shard brain get
|
|
37
|
+
<path>` writes a file's bytes to standard output, to a file with `-o`, or as `--json` (`--sha256` reads exactly that
|
|
38
|
+
version). Your brain is your archive in an organization, kept by your orchestrator: its published answers as
|
|
39
|
+
`reports/<YYYY-MM-DD>/<folder>/report.md` with their media, its own notes and files, and `index.md`. Signed in it is
|
|
40
|
+
your brain in the saved organization, your only one, or `--org <id|slug>`; with `SHARDFLUX_API_KEY`, the brain of the
|
|
41
|
+
person who created the key.
|
|
42
|
+
- 0.28.0: shard files delete removes a file or, with --recursive, a directory through the files API; disk-full errors give cleanup guidance without a retry loop.
|
|
43
|
+
- Hung checkpoint recovery: `guest_unresponsive` identifies a cold boot after bounded restore readiness failures. Retained files are kept; memory is not restored and processes restart. Conversation moves can use their last durable copy after a bounded source restore failure; the newer source disk stays kept under its retention policy.
|
|
44
|
+
|
|
45
|
+
- A linked folder's start point (0.28.0+): when an agent links a folder of yours (a device's
|
|
46
|
+
`project_link`), the folder as it is now (its commit, uncommitted files as a snapshot on top) goes to the project hub
|
|
47
|
+
under `refs/shard/seed/link-<folder>`, and the link's result names that `commit` and the folder's `branch`. A task can
|
|
48
|
+
then name exactly where its work starts, and its agent starts there with no conversation of that folder yet. Linking
|
|
49
|
+
from the app or `shard projects link` copies nothing to the hub. An API without the fields takes the link without them.
|
|
50
|
+
|
|
51
|
+
- Landing per repository (0.28.0+): a project holds every folder its people linked, so a task's result lands only in a
|
|
52
|
+
folder of the repository it was started from (its workers' `repo_remote`). When the project hub's default branch is
|
|
53
|
+
another repository's, the result lands in its own folder and the hub's default branch stays as it is; with no folder
|
|
54
|
+
of that repository on this computer it answers `land_unrelated`.
|
|
55
|
+
|
|
56
|
+
- A result from another repository (0.28.0+): `shard task land` and `shard conversations land` answer `land_unrelated`
|
|
57
|
+
when the result has no history in common with the branch it lands in (it was started from another repository than
|
|
58
|
+
the one that branch holds, or two of its workers were), with what to do instead; nothing moves on the project hub or
|
|
59
|
+
in your folder. It was a Git error ("refusing to merge unrelated histories") that read as if trying again could help.
|
|
60
|
+
|
|
61
|
+
- Auto land switch (0.27.0+): `shard settings --auto-land on|off` turns automatic landing on or off for every project
|
|
62
|
+
on this computer (on by default). Off, the live twin lands no conversation and new conversations start from your
|
|
63
|
+
HEAD; `shard task land` and `shard conversations land` still land on request. `shard settings` shows it and `--json`
|
|
64
|
+
adds `auto_land`. The Shardflux app reads the same switch to land finished board tasks with no click.
|
|
65
|
+
|
|
66
|
+
- Message delivery (0.27.0+, SDK 0.29.0): `shard conversations send` reaches a working agent in its running turn
|
|
67
|
+
(Claude Code, Codex and Codex Cloud) and starts an idle one's next turn; its help says so instead of "next turn".
|
|
68
|
+
`--wait` waits up to 60 s and prints what happened: `Steered into the running turn.`, `Started the next turn.` or
|
|
69
|
+
`Not delivered yet.` (`Delivery not confirmed yet: …` when Codex Cloud has not confirmed it); `--json` adds
|
|
70
|
+
`delivery`. Without `--wait` the output stays `Message sent (<seq>).`
|
|
71
|
+
|
|
72
|
+
- One Shardflux app (0.27.0+): `shard` installs and updates the one desktop app (menu bar or tray, onboarding,
|
|
73
|
+
launcher, conversations with their computers, device approvals, one Settings window) from
|
|
74
|
+
`@shardflux/desktop-darwin-arm64` / `-x64` 0.9.0 on macOS (replacing `@shardflux/menubar-darwin`) and from
|
|
75
|
+
`@shardflux/desktop-linux-x64` / `-arm64` 0.9.0 on Linux (replacing the GTK tray app), at the same places as before
|
|
76
|
+
(`~/Applications/Shardflux.app`, `~/.local/share/shardflux/desktop`). It keeps the menu bar app's bundle id,
|
|
77
|
+
executable and signature, so `shard menubar start|stop|status|--login` and the running app's own update work
|
|
78
|
+
unchanged, and its first start retires the apps it replaces, keeping where each agent's conversations open (the
|
|
79
|
+
places `agents targets --open-in` saved) and, on Linux, the tray app's settings. The Linux autostart entry starts it with `--background`
|
|
80
|
+
(tray icon only). The launcher shortcut lines read the app's own choice (`desktop-app.json`). `shard update` lists it
|
|
81
|
+
as "Shardflux app". Retired: the CGWindowList window probe used for menu bar apps before 0.3.2.
|
|
82
|
+
On Linux the running app is found by its executable (`/proc/<pid>/exe`): Electron rewrites its command line, so
|
|
83
|
+
`shard menubar start|stop|status` and the refresh no longer miss it; the library check probes the Electron
|
|
84
|
+
executable behind the app's launcher and names each library the computer is missing.
|
|
85
|
+
- 0.27.0 includes the changes prepared as 0.26.0 (not released on its own): the entries marked 0.27.0 below.
|
|
86
|
+
|
|
87
|
+
- Device registration (0.27.0+): isolate each project, back off transient failures and stop after eight attempts with
|
|
88
|
+
an actionable needs-attention message. A device id another sign-in registered (the API key `shard setup` replaced,
|
|
89
|
+
or another account) is replaced by a new one (at most once every 10 minutes), with one line in the helper's log, and every project
|
|
90
|
+
registers again at once, so your agents reach this computer without a restart. The old id is kept in
|
|
91
|
+
`device-id-history.json`.
|
|
92
|
+
- Your agents on this computer (0.27.0+): `shard device approvals auto|read|ask` chooses how this computer answers
|
|
93
|
+
your own agents: `auto` runs everything they ask without asking, `read` runs folder listings and files copied to a
|
|
94
|
+
conversation and asks before anything else (commands, files saved here, ports, linking a folder), `ask` asks every
|
|
95
|
+
time. The first request asks for the choice (the Shardflux app's prompt; without the app, `shard` prints the two
|
|
96
|
+
commands once) and runs under the mode chosen. A teammate's request always asks. What ran without asking is listed
|
|
97
|
+
by `shard device approvals` (`--json`: `recent`) and the app's Settings. Approvals carry `choose_mode: true` while
|
|
98
|
+
nothing is chosen.
|
|
99
|
+
- First prompts (0.27.0+): a Codex Cloud start queues its initial prompt while the executor prepares. Resuming an accepted start uses the same prompt key; an unconfirmed send keeps its created conversation.
|
|
100
|
+
|
|
101
|
+
- Device helper (0.27.0+): a command your orchestrator asks your computer to run (a home conversation, so no folder of
|
|
102
|
+
it on this computer) asks you once with the exact command and folder ("Run on your Mac: sh -c tail -n 5 train.log ·
|
|
103
|
+
in ~/code/lm-train"), Allow once or Deny, and runs in your home folder or the ~/ folder it names. A request whose
|
|
104
|
+
conversation has no folder on this computer is refused with the reason instead of staying pending.
|
|
105
|
+
- Filesystem recovery (0.27.0+): resume JSON/timing keeps `cold_boot_reason: guest_filesystem`; the existing note reports restarted processes. Ships with SDK 0.29.0.
|
|
106
|
+
|
|
107
|
+
- Admission queue waits (0.27.0+, SDK 0.29.0): workspace opens retry `429 admission_queued` within the admission timeout with the same body/key, honor full `Retry-After`, and display `queued for admission; retrying in 2 s` while waiting.
|
|
108
|
+
- 0.27.0: workspace disk caps report the admitted and acknowledged size. Completed disk grows refresh the disk grant; resize results retain the original request.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
- `shard orchestrator` (0.27.0+, SDK 0.29.0): your orchestrator agent from a terminal. `shard orchestrator say <words>`
|
|
112
|
+
sends your exact words (`--task`, `--report`, `--needs-you`, `--input`, `--conversation` point at a row) and prints
|
|
113
|
+
the input id and its place in line; every input is handled in parallel by its own thread. `--wait` follows it until
|
|
114
|
+
it is done, merged, failed or waiting and prints its curated result: the answer's headline and facts with their
|
|
115
|
+
sources and follow-ups, the tasks it created, the line it waits on (a question names its `shard needs-you answer
|
|
116
|
+
oq_…` command), or the input it was added to; exit 6 when it failed, 5 when `--timeout` (default 10m) passed first.
|
|
117
|
+
`shard orchestrator list [--all]` shows your inputs newest first, one line each; `shard orchestrator retry
|
|
118
|
+
<input-id>` sends a failed one again and `shard orchestrator dismiss <input-id>` takes one out of the list. Signed in
|
|
119
|
+
they reach your orchestrator; with `SHARDFLUX_API_KEY`, the orchestrator of the person who created the key. `--json`
|
|
120
|
+
prints `{input}` / `{inputs, cursor}`.
|
|
121
|
+
- `shard needs-you` (0.27.0+, SDK 0.29.0) lists your orchestrator's questions (`oq_…`, answered with `--text`) and what
|
|
122
|
+
it asked your computer while it was offline (`dev_…`, "Waiting for your computer: list ~/code"; `shard needs-you
|
|
123
|
+
answer dev_… cancel` drops it).
|
|
124
|
+
- Deprecated (0.27.0): `shard route` (POST /v1/router) and `shard ask` (POST /v1/questions); use the orchestrator
|
|
125
|
+
instead (`shard orchestrator say`). Each prints a one-line notice on stderr.
|
|
126
|
+
|
|
127
|
+
- `shard agents models` (0.27.0+): the models each active account can use, as Claude and ChatGPT list them for that
|
|
128
|
+
account (asked server side the way Claude Code and Codex fill their pickers; never starts a computer): effort levels
|
|
129
|
+
with the default starred, the default model, and unavailable models with the provider's reason. `--account <ref>`,
|
|
130
|
+
`--provider`, `--all`, `--refresh`; `--json` prints the API answer. `--model` on `shard agents new` (and `shard ./`)
|
|
131
|
+
also takes a model id from that list (`claude-fable-5-1`, `gpt-5.6-terra`) next to the aliases.
|
|
132
|
+
|
|
5
133
|
- Device requests reach the right computer (0.25.0+): the background helper tells the API which conversations are
|
|
6
134
|
local to this computer (started or opened here), so their requests come here first, then to the computer you used
|
|
7
135
|
last, never to whichever was seen last. A project link with a first task (`project_link` with `brief`) reads the
|
|
@@ -11,7 +139,8 @@
|
|
|
11
139
|
what each working step does, next to the plain waiting line of a task that waits to start.
|
|
12
140
|
- `shard transcribe <file>` (0.25.0+, SDK 0.28.0) prints what a recording says (WebM/Opus or PCM WAV from the file;
|
|
13
141
|
raw PCM with `--format pcm16 --sample-rate`); `--words` adds each word's start and end, `--json` prints the
|
|
14
|
-
transcript.
|
|
142
|
+
transcript. Where cloud transcription is not on for the organization it says so in one line
|
|
143
|
+
(`cloud_transcription_off`) and exits 1 (0.27.0+, SDK 0.29.0).
|
|
15
144
|
- Faster conversation starts (0.24.1): the project's dependency fingerprint is read from Git's own file list instead of walking the whole folder, so ignored and untracked trees beside the project (agent worktrees, build output) no longer hold a start on **Getting your project…**. A folder with 1.2 million such files took 32 s per start; it now takes 0.3 s, with the same fingerprint.
|
|
16
145
|
- A folder without Git that `shard` makes a repository of (a first chat, `shard projects link`) starts with its files as
|
|
17
146
|
the first commit (0.25.0+; `.gitignore` respected, large media stay untracked), so a conversation starts from the
|
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@ T3 Connect (0.22.0+): `shard setup --inspect --t3-connect --org <id|slug>` signs
|
|
|
30
30
|
project. Status and Connect use the same person and organization, including a saved session without an API key;
|
|
31
31
|
an explicit selection keeps the default credentials and target status. An approved T3 sign-in is reused.
|
|
32
32
|
|
|
33
|
+
Filesystem recovery timing (0.28.0+): cold resume output identifies `guest_filesystem` in JSON and the restart notice. See the [workspace lifecycle](https://docs.shardflux.dev/concepts/lifecycle) for retained files and process restart semantics.
|
|
34
|
+
|
|
33
35
|
## Support and bug reports
|
|
34
36
|
|
|
35
37
|
[Report a bug](https://github.com/shardfluxdev/community/issues/new?template=bug_report.yml) or
|
|
@@ -51,6 +53,8 @@ Both the task and project are required, and the task becomes the first user-auth
|
|
|
51
53
|
|
|
52
54
|
## Reverse tunnels (0.11.0+)
|
|
53
55
|
|
|
56
|
+
Reverse listener recovery (0.24.1+): the foreground tunnel replaces its helper automatically after replay is lost and accepts fresh connections. Keep the command running for callbacks; Ctrl-C closes it.
|
|
57
|
+
|
|
54
58
|
Run a foreground TCP tunnel from a workspace to a service on this machine:
|
|
55
59
|
|
|
56
60
|
```sh
|
|
@@ -74,18 +78,24 @@ Linux (Ubuntu 24.04, x64 and arm64) and macOS are supported. On Linux, run `shar
|
|
|
74
78
|
connect Claude, Codex or both (0.17.0+), then run `shard ./` in your project to attach Claude Code or Codex in place. Sign-in opens your browser;
|
|
75
79
|
on a headless terminal, follow the displayed URL and device code. `--accept-terms` accepts the terms notice.
|
|
76
80
|
|
|
77
|
-
In a desktop session, `shard` opens the Shardflux app
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
In a desktop session, `shard` opens the Shardflux app (0.18.0+): guided sign-in, your conversations with their
|
|
82
|
+
computers, approvals for this computer, a launcher on Alt+Shift+Space and one Settings window. It lives in the tray
|
|
83
|
+
and the app grid and starts at login; `shard menubar start|stop|status` and `--login on|off` manage it as on macOS.
|
|
84
|
+
|
|
85
|
+
The Shardflux app (0.28.0+) is one desktop app on macOS and Linux: the menu bar or tray, onboarding, the launcher,
|
|
86
|
+
conversations with their computers, device approvals and one Settings window. `shard` installs it from the optional
|
|
87
|
+
`@shardflux/desktop-darwin-arm64` / `-x64` package on macOS (at `~/Applications/Shardflux.app`, in place of the menu
|
|
88
|
+
bar app, keeping its login item and privacy grants) and from `@shardflux/desktop-linux-x64` / `-arm64` on Linux (at
|
|
89
|
+
`~/.local/share/shardflux/desktop`), and `shard update` keeps it current.
|
|
81
90
|
|
|
82
91
|
The Linux helper starts automatically after setup as `~/.config/systemd/user/shardflux-helper.service`
|
|
83
92
|
and restarts after a CLI update. It keeps the live twin, `~/Shardflux` files and conversation history in sync.
|
|
84
|
-
Use `shard device requests`, `shard device approve <id>` or `shard device deny <id>` for local approvals
|
|
93
|
+
Use `shard device requests`, `shard device approve <id>` or `shard device deny <id>` for local approvals, and
|
|
94
|
+
`shard device approvals auto|read|ask` to choose whether your agents ask first (0.28.0+);
|
|
85
95
|
desktop notifications point to pending requests. On systems without a systemd user session, the helper runs
|
|
86
96
|
while your `shard` commands are open. `shard agents open` opens a terminal when launched outside one, using
|
|
87
|
-
`$TERMINAL`, `x-terminal-emulator` or `gnome-terminal`, or prints the attach command.
|
|
88
|
-
|
|
97
|
+
`$TERMINAL`, `x-terminal-emulator` or `gnome-terminal`, or prints the attach command. On macOS the same app lives in
|
|
98
|
+
the menu bar.
|
|
89
99
|
|
|
90
100
|
```sh
|
|
91
101
|
npm i -g shardflux
|
|
@@ -109,7 +119,7 @@ shard ./
|
|
|
109
119
|
|
|
110
120
|
Choose Claude Code or Codex. Claude asks for one cloud sign-in per Shardflux account; Codex uses your copied login.
|
|
111
121
|
Each `shard ./` starts its own conversation VM and opens your agent’s native terminal. Later turns stay in that
|
|
112
|
-
VM; `shard ./ --resume` selects a saved project conversation. Native terminal and ACP sessions receive the conversation tools for their own conversation, so the agent can fork, ask for a review, and report to its parent (0.14.0+). You can open conversations in separate terminals at the same time; each stays in the project's local history. On macOS, `shard` opens the optional command center.
|
|
122
|
+
VM; `shard ./ --resume` selects a saved project conversation. Native terminal and ACP sessions receive the conversation tools for their own conversation, so the agent can fork, ask for a review, and report to its parent (0.14.0+). You can open conversations in separate terminals at the same time; each stays in the project's local history. On macOS, `shard` opens the optional command center. The Shardflux app starts automatically the first
|
|
113
123
|
time `shard` runs, with launch at login enabled; `shard menubar stop` turns it off. See [Cloud agents](https://docs.shardflux.dev/guides/cloud-agents).
|
|
114
124
|
|
|
115
125
|
T3 Code uses one **Shardflux** provider; choose a Claude Code or Codex model to start that agent in the cloud.
|
|
@@ -124,7 +134,7 @@ and Codex, skipping every step that is already done (0.15.0+). Editors that laun
|
|
|
124
134
|
run the same sign-in as `shard --login` (0.22.0+).
|
|
125
135
|
With T3 Code 0.0.45, `shard agents new --in t3` adds the project as an SSH environment instead.
|
|
126
136
|
|
|
127
|
-
ACP journal read reattachment uses bounded backoff through temporary lifecycle interruptions (0.23.0+). It keeps the saved sequence and never resubmits an uncertain turn.
|
|
137
|
+
ACP journal read reattachment uses bounded backoff through temporary lifecycle interruptions (0.23.0+). It keeps the saved sequence and never resubmits an uncertain turn. ACP input reattachment (0.25.0+) retains the native request identity and running turn while reconnecting.
|
|
128
138
|
|
|
129
139
|
In CLI 0.22.0+, `shard setup --inspect` shows a stopped T3 Connect workspace link and its remedy without restarting
|
|
130
140
|
the link or replacing your approved sign-in. `shard agents open t3` brings T3 Code up once the workspace is linked
|
|
@@ -155,12 +165,24 @@ shard conversations start --home --title "Plan the billing work"
|
|
|
155
165
|
shard conversations send conv_6qz2dmu4kd3xa7v5l2hgmfnpjy "Here is the failing run" --file ci.log
|
|
156
166
|
```
|
|
157
167
|
|
|
158
|
-
`--repo` and `--branch` choose the repository and the branch it starts from (default: the project's
|
|
159
|
-
|
|
168
|
+
`--repo` and `--branch` choose the repository and the branch it starts from (default: the project's only
|
|
169
|
+
repository, from `main`, then `master`; a project with several asks you to name one with `--repo`); `--app`, `--model` and `--effort` work as for `shard ./`. It prints the
|
|
160
170
|
conversation's id, key and state; `shard agents open <id>` opens it. `--file` (repeatable, up to 20 files of 64 MiB
|
|
161
171
|
each) puts each file in the conversation's computer before the message and prints where it landed; `--json` returns
|
|
162
172
|
the stored paths.
|
|
163
173
|
|
|
174
|
+
A message reaches the agent at once: a working agent takes it into its running turn (Claude Code, Codex and Codex
|
|
175
|
+
Cloud), and an idle one starts its next turn with it. `--wait` (0.28.0+) says which:
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
$ shard conversations send conv_6qz2dmu4kd3xa7v5l2hgmfnpjy "Use the staging database instead" --wait
|
|
179
|
+
Message sent (12).
|
|
180
|
+
Steered into the running turn.
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
It prints `Started the next turn.` when the agent was idle; `--json` adds `delivery` (`state`, `delivered_at`,
|
|
184
|
+
`steered`).
|
|
185
|
+
|
|
164
186
|
Choose the model and reasoning effort a new thread starts with (0.17.0+):
|
|
165
187
|
|
|
166
188
|
```sh
|
|
@@ -202,14 +224,14 @@ resolution before preserve-all can upload; a registration whose folder is gone h
|
|
|
202
224
|
With CLI 0.24.0+, a move during a reply stops the local turn and continues the same reply in the cloud automatically, redoing the interrupted step. An agent calling `move_to_cloud` inside its own turn waits for that turn to finish. Uncommitted edits come along, and your working tree, index and branch stay as
|
|
203
225
|
they are. The cloud work comes back to your checkout by itself, and typing in the local Claude Code copy shows one line
|
|
204
226
|
that it continues in the cloud. Sessions from Claude Desktop's Code tab and the Codex app move the same way; in the
|
|
205
|
-
|
|
227
|
+
Shardflux app's menu, a project's recent sessions under **On this Mac** (**On this computer** on Ubuntu) have
|
|
228
|
+
**Move to cloud**, and with the Shardflux MCP server
|
|
206
229
|
you can ask the agent itself to continue in the cloud. A session is listed under every repository it worked in, also
|
|
207
230
|
one that began in another folder such as Claude Desktop's scratch folder, and `--path <repository>` moves it from
|
|
208
231
|
anywhere (0.22.0+).
|
|
209
232
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
and menu bar 0.8.5+ recovers Node.js after an upgrade removes the recorded binary.
|
|
233
|
+
In the Shardflux app, a failed move stays at its session’s row as **Couldn’t move**, with its reason on hover:
|
|
234
|
+
choose it to try again (**Retry move to cloud** in the row's menu). CLI 0.23.0+ records a matching stable Node.js path on macOS.
|
|
213
235
|
|
|
214
236
|
Start a thread in T3 Code from the command line (0.17.0+):
|
|
215
237
|
|
|
@@ -229,6 +251,11 @@ conversation with `shard conversations send <id> "<answer>"` (0.23.0+ names it w
|
|
|
229
251
|
with in claude.ai and the Claude app (default `☁`: "☁ Fix login bug · todo-app"); `shard settings` shows it with where
|
|
230
252
|
conversations open.
|
|
231
253
|
|
|
254
|
+
Finished cloud work lands in your folder by itself: a conversation's commits come into the branch it started from, a
|
|
255
|
+
board task's result into your linked folder and the project's default branch. `shard settings --auto-land off`
|
|
256
|
+
(0.28.0+) keeps it in the cloud on this computer (`shard task land` and `shard conversations land` still land on
|
|
257
|
+
request); `--auto-land on` turns it back on. The Shardflux app's Settings → Projects changes the same switch.
|
|
258
|
+
|
|
232
259
|
Terminal conversations open in the terminal you choose (0.22.0+):
|
|
233
260
|
|
|
234
261
|
```sh
|
|
@@ -251,7 +278,7 @@ shard conversations try <conversation>
|
|
|
251
278
|
|
|
252
279
|
Your branch opens in `.shard/worktrees/<name>`, syncs both ways, and its dev servers appear at localhost.
|
|
253
280
|
Ctrl-C stops local sync. Your main checkout stays available for your own work.
|
|
254
|
-
Device tools ask for approval on your computer before preparing the conversation’s local worktree. With CLI 0.15.0
|
|
281
|
+
Device tools ask for approval on your computer before preparing the conversation’s local worktree. With CLI 0.15.0+, Review shows the exact command, file direction, paths or port mapping; access outside the conversation folder only offers Allow once. Live transcripts stay in
|
|
255
282
|
|
|
256
283
|
From 0.25.0, an agent can also list a folder on your computer, make one of your projects from it, and move a file to or from anywhere on it by an absolute or `~/` path. Each asks first: **Allow once**, or **Always for this folder**, which covers that kind of request for that folder and everything inside it. `shard projects link <path> [--prompt <text>]` does the same from a terminal: the folder is prepared in the background, kept as this computer’s live copy, and `--prompt` starts a conversation there.
|
|
257
284
|
`~/.config/shardflux/conversations/`; ended sessions enter Claude Code’s or Codex’s native history. Transcript files up to 64 MiB are supported (0.14.0+).
|
|
@@ -259,14 +286,14 @@ From 0.14.3, transcript copying runs independently of device approvals. Unknown
|
|
|
259
286
|
|
|
260
287
|
Every conversation's committed files are on your computer too (with the helper running; macOS 0.16.0+, Linux 0.17.0+):
|
|
261
288
|
`~/Shardflux/<repository>/<base branch>/<conversation>/` holds what each conversation changed or added, read-only,
|
|
262
|
-
and updates when its branch moves. Large files are listed as `<file>.placeholder.txt`;
|
|
263
|
-
|
|
289
|
+
and updates when its branch moves. Large files are listed as `<file>.placeholder.txt`; open one from the
|
|
290
|
+
conversation's computer in the Shardflux app and choose **Save to Downloads**, or:
|
|
264
291
|
|
|
265
292
|
```sh
|
|
266
293
|
shard files pull hype-video out/hype.mp4
|
|
267
294
|
```
|
|
268
295
|
|
|
269
|
-
Finished conversations land in your checkout by themselves (0.16.0+, with the
|
|
296
|
+
Finished conversations land in your checkout by themselves (0.16.0+, with the Shardflux app running). When a
|
|
270
297
|
conversation's turn ends with its work committed, the branch it started from moves to its commits and the changed
|
|
271
298
|
files are written in place, next to your own uncommitted edits, which stay as they are (where both touched the same
|
|
272
299
|
lines, your text is kept). `git status` keeps showing only your edits. A conversation started from a checkout with
|
|
@@ -379,7 +406,7 @@ answer) or their product (it runs VMs for its customers through the API, SDK or
|
|
|
379
406
|
Commands that wait for your user in the browser (sign-ins, `--ask`) take up to 10 minutes: run them with a long timeout
|
|
380
407
|
or in the background.
|
|
381
408
|
|
|
382
|
-
**Their product** (no agent sign-ins,
|
|
409
|
+
**Their product** (no agent sign-ins, Shardflux app or machine):
|
|
383
410
|
|
|
384
411
|
2. `eval "$(shard env)"` exports `SHARDFLUX_API_KEY` for the SDKs, the MCP server and your product's server. Keep it in
|
|
385
412
|
server-side secrets.
|
|
@@ -649,9 +676,11 @@ and the session renewals of step-up and password changes).
|
|
|
649
676
|
## Update
|
|
650
677
|
|
|
651
678
|
`shard update` **(0.13.5+)** brings everything Shardflux installed on this computer up to date: shard itself
|
|
652
|
-
(the `shardflux` package or `@shardflux/cli`), its SDK, the
|
|
679
|
+
(the `shardflux` package or `@shardflux/cli`), its SDK, the Shardflux app and a globally installed
|
|
653
680
|
`@shardflux/mcp`. It runs one install of the latest versions with the package manager that installed shard (npm,
|
|
654
|
-
pnpm, bun or Volta) and restarts the
|
|
681
|
+
pnpm, bun or Volta) and restarts the app on its new version; **Update now** in the app's Settings → Updates runs the
|
|
682
|
+
same command. After `npm i -g shardflux` the app moves to the new version by itself once no window is open and no
|
|
683
|
+
approval or move is in progress.
|
|
655
684
|
|
|
656
685
|
```sh
|
|
657
686
|
shard update --check # what is behind, without installing
|
|
@@ -706,7 +735,8 @@ shows the status; `shard version --check` asks now (`--json`: `{"cli", "sdk", "u
|
|
|
706
735
|
| `version [--check]` | Print the CLI and SDK versions and the update status (`--check` asks the API now). |
|
|
707
736
|
| `usage [--org <id>] [--estimate \| --series \| --workspace <id\|key>] [--from T] [--to T] [--granularity hour\|day] [--meter M]` | Usage summary for the current period: plan, meters and allowances. `--estimate`: the bill so far and projected allowance use; `--series`: usage over time; `--workspace`: one workspace's usage over time (0.5.0+). The summary includes the [overage](#usage-and-overage) block (0.5.1+). |
|
|
708
737
|
| `feedback [--yes] [--category C] [--workspace W] [--request-id ID] [--error-code CODE] [--command TEXT] [--from-file F\|-] <message...>` | Preview feedback; `--yes` sends after explicit user authorization (0.22.0+). See [Feedback](#feedback-preview-and-user-approval). |
|
|
709
|
-
| `
|
|
738
|
+
| `orchestrator say [--wait [--timeout D]] [--task ID\|--report ID\|--needs-you ID\|--input ID\|--conversation ID] <words...>`, `orchestrator list [--all]`, `orchestrator retry\|dismiss <input-id>` | Your orchestrator (0.28.0+): say something and every input is handled at once by its own thread; `--wait` prints its curated result. See [Your orchestrator](#your-orchestrator-0270). |
|
|
739
|
+
| `route [--task ID] [--org O] [--project P] <text...>`, `ask [--task ID] [--org O] [--project P] <question...>` | Deprecated; use `shard orchestrator say`. The board's input bar (0.25.0+): where a line of input goes, and a quick question about your work. |
|
|
710
740
|
| `conversations delete <id> --yes` (`c delete`) | Delete a conversation everywhere at once (0.25.0+): its agent stops, its computer is deleted, and its messages, transcript and branch go with it. `--json` prints `{id, deleted, deleted_at, operation}`. See [Conversations](#conversations). |
|
|
711
741
|
| `workspaces open <key> --template <slug> [--secret NAME]... [--input NAME=value]... [--input-file F] [--lifetime persistent\|session] [--mode processful\|file-first] [--cpu-millis N --memory-mib N --disk-gib N] [--allocation-mode fixed\|elastic] [--memory-held N] [--no-wait] [--timeout 5m] [--timing]` | Open by key. Creates the workspace on first use and reconnects or resumes it afterwards, never resetting it. Waits until it is ready (the template's start commands and services included) unless you pass `--no-wait`. `--secret` binds secret names (replacing the binding of an existing workspace). `--input` (0.4.0+) passes the template's text inputs (replacing those of an existing workspace); `--input-file` reads `NAME=value` lines or a JSON object. `--lifetime session`: the workspace is discarded when the session ends (`workspaces close` or the idle timeout), and the key then opens a new workspace. `--mode file-first` (0.5.0+) opens a [file-first workspace](#file-first-workspaces); the default is processful for a new key and the stored mode for an existing one. `--allocation-mode elastic` (0.8.0+): [elastic memory](#elastic-memory-080). |
|
|
712
742
|
| `workspaces list [--state S] [--prefix P] [--lifetime persistent\|session\|any] [--purpose standard\|template_draft\|template_test\|any] [--include-deleted] [--all] [--limit N] [--cursor C]` | One page, or every page with `--all`. The next cursor is printed on stderr. By default only persistent standard workspaces are listed. A file-first workspace's state reads `running (file-first)` (0.5.0+). |
|
|
@@ -941,6 +971,7 @@ without waking it (the state at suspension); `files search` then notes it on std
|
|
|
941
971
|
is still queued after 120000 ms`). The operation continues server side:
|
|
942
972
|
`shard operations wait <id>` keeps waiting. Without either (0.16.0+), a resume queued for capacity is waited for
|
|
943
973
|
until its deadline, its place shown on stderr (see [Start deadlines](#start-deadlines)).
|
|
974
|
+
- Admission queues (0.28.0+, SDK 0.29.0): an open keeps its body and Idempotency-Key while waiting, and stderr says `queued for admission; retrying in 2 s`. Each wait honors `Retry-After` within the SDK admission timeout (default 2 minutes).
|
|
944
975
|
- A call refused while the workspace's host makes room to wake it (503 `host_capacity`) or while every workspace the
|
|
945
976
|
plan lets work at once is busy (429 `quota_exceeded`) did not run: `shard` sends it again after each `Retry-After`,
|
|
946
977
|
for up to 2 minutes (0.16.0+), and stderr says `waiting for room on the workspace's host (position 2)` once.
|
|
@@ -1024,7 +1055,8 @@ $ shard ws resize acme/demo --elastic --held 1024 # switch modes live
|
|
|
1024
1055
|
Memory changes live, and disks grow online. A suspended workspace gets its new size when it resumes, before its first
|
|
1025
1056
|
call. CPU changes live within the vCPUs the workspace booted with; a larger CPU size applies at the next start. Each
|
|
1026
1057
|
resource says when it applies (`now`, `on resume` or `next start`), and the new caps are stored, so every later start
|
|
1027
|
-
uses them. `--json` prints the result with `applies_at` per resource and
|
|
1058
|
+
uses them. `--json` prints the result with `applies_at` per resource and `caps`. A non-null `caps.disk_gib` is bounded
|
|
1059
|
+
by the admitted plan and template ceiling and the acknowledged disk size. `disk.requested_gib` retains the resize request.
|
|
1028
1060
|
|
|
1029
1061
|
## Burst execution (0.8.0+)
|
|
1030
1062
|
|
|
@@ -1506,8 +1538,8 @@ machine on its next use (0.20.0+).
|
|
|
1506
1538
|
Skills, commands, agents, output styles, memories and `CLAUDE.md` / `AGENTS.md` lines that Claude or Codex saves in a
|
|
1507
1539
|
cloud conversation come back to this computer by themselves, seconds after the turn ends, and into your saved
|
|
1508
1540
|
machine too (0.20.0+). A file you changed here at the same time keeps your version, with the cloud's next to it
|
|
1509
|
-
(`CLAUDE.cloud.md`); a deleted one goes to the Trash. Project memory follows the project both ways. The
|
|
1510
|
-
what arrived in one line, and `agent-config-return.jsonl` in the config directory lists every change.
|
|
1541
|
+
(`CLAUDE.cloud.md`); a deleted one goes to the Trash. Project memory follows the project both ways. The Shardflux app
|
|
1542
|
+
says what arrived in one line, and `agent-config-return.jsonl` in the config directory lists every change.
|
|
1511
1543
|
`shard machine save --wait` and `shard template save --wait` return once the new version is ready (0.13.3+).
|
|
1512
1544
|
A version larger than the plan's workspace disk names its size and the disk, with `retryable: false` and a hint: delete
|
|
1513
1545
|
what the VM does not need, then save again, or move to a plan with a larger disk (`shard billing plans`); `--json`
|
|
@@ -1524,7 +1556,7 @@ see the [settings and billing reference](https://docs.shardflux.dev/limits#cloud
|
|
|
1524
1556
|
Claude needs one cloud sign-in per account; Codex uses your copied login.
|
|
1525
1557
|
|
|
1526
1558
|
Import project secrets from hsec, 1Password, Bitwarden or Keychain. Approve browser fills from the attached CLI or
|
|
1527
|
-
|
|
1559
|
+
the Shardflux app; remember a selected login for unattended work with automatic relay renewal. Bound secret values are
|
|
1528
1560
|
redacted from command output and saved logs.
|
|
1529
1561
|
|
|
1530
1562
|
Imported secrets: stored encrypted with AWS KMS; only this project's workspaces can load it, and every load is logged.
|
|
@@ -1576,6 +1608,22 @@ Another member's personal account can be made active only by that member.
|
|
|
1576
1608
|
another account in a cloud VM and `shard agents accounts remove claude:2` removes one. To remove someone else's active
|
|
1577
1609
|
account, make another one active first; your own you can always remove. `--json` prints the API's account list.
|
|
1578
1610
|
|
|
1611
|
+
From 0.28.0, `shard agents models` shows the models each active account can use, as Claude and ChatGPT list them
|
|
1612
|
+
for that account (the same lists Claude Code and Codex fill their pickers with): effort levels with the default
|
|
1613
|
+
starred, the default model, and what the plan does not include.
|
|
1614
|
+
|
|
1615
|
+
```text
|
|
1616
|
+
Claude · marc@example.com (active)
|
|
1617
|
+
claude-opus-5-5 Opus 5.5 low medium* high xhigh max (default)
|
|
1618
|
+
claude-fable-5-1 Fable 5.1 low medium high* xhigh max
|
|
1619
|
+
claude-sonnet-5-5 Sonnet 5.5 low medium* high xhigh max
|
|
1620
|
+
More models
|
|
1621
|
+
claude-haiku-4-5-20251001 Haiku 4.5 no effort levels
|
|
1622
|
+
```
|
|
1623
|
+
|
|
1624
|
+
`--account claude:2` shows another account, `--all` every account, `--refresh` asks again (lists are kept for an
|
|
1625
|
+
hour), and `--json` prints the API's answer. Pass an id to `shard agents new --model` (with `--effort`).
|
|
1626
|
+
|
|
1579
1627
|
## Conversations
|
|
1580
1628
|
|
|
1581
1629
|
From 0.14.0, `shard conversations list|get|send|wait|land|move` manages project conversations. `shard c` is the short form. Conversations retain their branch and transcript as their VM binding changes.
|
|
@@ -1634,8 +1682,63 @@ shard c delete conv_k3m5q7s2u4w6y3b5d7f2h4j6ln --yes
|
|
|
1634
1682
|
# Deleted: conv_k3m5q7s2u4w6y3b5d7f2h4j6ln
|
|
1635
1683
|
```
|
|
1636
1684
|
|
|
1685
|
+
### Your orchestrator (0.28.0+)
|
|
1686
|
+
|
|
1687
|
+
Your orchestrator is your own agent on top of every project, on its own Shardflux computer and the same on every
|
|
1688
|
+
device. `shard orchestrator say` sends it your exact words and answers at once with the input and its place in line;
|
|
1689
|
+
every input is handled in parallel by its own thread, which answers it, puts tasks on the board, asks you something or
|
|
1690
|
+
adds it to an input in flight. `--wait` follows it and prints what it became:
|
|
1691
|
+
|
|
1692
|
+
```sh
|
|
1693
|
+
shard orchestrator say --wait Lets check on our language model training progress
|
|
1694
|
+
# Training is 73% done, step 7,300 of 10,000
|
|
1695
|
+
# - Loss 1.84, down from 2.31 at step 5,000
|
|
1696
|
+
# - About 2 h 10 min left at this pace
|
|
1697
|
+
# - Last checkpoint at step 7,000
|
|
1698
|
+
# Sources: train.log (~/code/lm-train/train.log), wandb.ai (https://wandb.ai/acme/lm)
|
|
1699
|
+
# Follow-ups: Check again in an hour
|
|
1700
|
+
shard orchestrator say --task task_h7g4d7tqyv2pz3a2npyo4rpgzq use postgres instead
|
|
1701
|
+
# in_q3vd5k2xbnwjm7e4rtyhcu6aio queued (1 in line)
|
|
1702
|
+
shard orchestrator list
|
|
1703
|
+
# in_q3vd5k2xbnwjm7e4rtyhcu6aio working use postgres instead
|
|
1704
|
+
# in_7wcx227ovjpei4u6i47llu7w4i done Lets check on our language model training progress Training is 73% done, step 7,300 of 10,000
|
|
1705
|
+
```
|
|
1706
|
+
|
|
1707
|
+
`--task`, `--report`, `--needs-you`, `--input` and `--conversation` point at the row your words are about. `--wait`
|
|
1708
|
+
stops when the input is done (its answer card and the tasks it created), merged (the input it was added to), waiting
|
|
1709
|
+
(the line it waits on; a question names the `shard needs-you answer oq_… --text <answer>` that answers it) or failed
|
|
1710
|
+
(exit 6; `shard orchestrator retry <input-id>` sends it again); `--timeout` (default 10m) stops following with exit 5
|
|
1711
|
+
while the input goes on. `shard orchestrator list` shows your recent inputs newest first (`--all` adds the ones you
|
|
1712
|
+
dismissed with `shard orchestrator dismiss`). Signed in, they reach your orchestrator (`--org <id|slug>` when you belong
|
|
1713
|
+
to several); with `SHARDFLUX_API_KEY` set, the orchestrator of the person who created that key. `--json` prints the
|
|
1714
|
+
API's objects (`{input}`, `{inputs, cursor}`).
|
|
1715
|
+
|
|
1716
|
+
Device helper recovery (0.28.0+): projects register independently and report when a sign-in needs attention. A new
|
|
1717
|
+
sign-in on this computer (a new API key from `shard setup`, another account) gets this computer a new device id by
|
|
1718
|
+
itself and registers again at once. See the [error reference](https://docs.shardflux.dev/reference/errors) for recovery.
|
|
1719
|
+
|
|
1720
|
+
When your orchestrator needs your computer (the tail of `~/code/lm-train/train.log`, say), the device helper asks you
|
|
1721
|
+
first with the exact command and folder, **Allow once** or **Deny**, and runs it in your home folder or the `~/`
|
|
1722
|
+
folder it names (0.28.0+). Each of these commands asks; none runs under an Always grant, unless you let your agents
|
|
1723
|
+
run things without asking.
|
|
1724
|
+
|
|
1725
|
+
**Your agents on this computer (0.28.0+).** Choose once how this computer answers your own agents:
|
|
1726
|
+
|
|
1727
|
+
| `shard device approvals` | Your agents |
|
|
1728
|
+
|---|---|
|
|
1729
|
+
| `auto` | Allow everything: commands, files, ports and folders run without asking |
|
|
1730
|
+
| `read` | Allow reading: folder listings and files copied to a conversation run; anything that changes this computer asks |
|
|
1731
|
+
| `ask` | Ask every time |
|
|
1732
|
+
|
|
1733
|
+
The first request asks which you want (the Shardflux app's prompt, or one line from `shard` with both commands) and
|
|
1734
|
+
runs under your choice; the app's Settings and `shard device approvals` change it any time. A teammate's request
|
|
1735
|
+
always asks. `shard device approvals` lists what ran without asking (`--json` for `recent`).
|
|
1736
|
+
|
|
1637
1737
|
### Route input and ask about your work (0.25.0+)
|
|
1638
1738
|
|
|
1739
|
+
`shard route` and `shard ask` are deprecated (0.28.0); use `shard orchestrator say` (each prints a one-line notice on
|
|
1740
|
+
stderr).
|
|
1741
|
+
|
|
1639
1742
|
`shard route` reads a line of input the way the board's input bar does: which project it belongs to (or your home),
|
|
1640
1743
|
whether it is a new task, a question or a steer for an open task, and each task in your own words when it asks for
|
|
1641
1744
|
several. `shard ask` answers a quick question about your work from the board, printing the answer as it is written.
|
|
@@ -1711,14 +1814,20 @@ shard projects sync list # selected projects and their state
|
|
|
1711
1814
|
shard projects sync pause ~/code/web # stop preparing it (remove: forget it)
|
|
1712
1815
|
```
|
|
1713
1816
|
|
|
1714
|
-
The device helper (started by the
|
|
1817
|
+
The device helper (started by the Shardflux app, and on Linux by its systemd service) prepares each selected project
|
|
1818
|
+
in a short-lived VM: it
|
|
1715
1819
|
puts the project's current state in the project cache, and when its dependency files change, installs them and saves
|
|
1716
1820
|
the project template. Conversations then start without sending the project, with dependencies installed. Only the
|
|
1717
|
-
projects you add are prepared; onboarding and Settings → Projects in
|
|
1821
|
+
projects you add are prepared; onboarding (**Sync projects**) and Settings → Projects in the Shardflux app choose them
|
|
1822
|
+
too.
|
|
1718
1823
|
|
|
1719
|
-
###
|
|
1824
|
+
### Launcher (0.15.0+)
|
|
1720
1825
|
|
|
1721
|
-
|
|
1826
|
+
**New conversation** in the Shardflux app's menu opens the same launcher as **⌥⇧Space** (**Alt+Shift+Space** on
|
|
1827
|
+
Ubuntu; a GNOME keybinding on Wayland), in the project open in the app in front (app 0.9.0+). It starts the
|
|
1828
|
+
conversation where your conversations open (Settings → Agents → **Open conversations in**), with a card near the top
|
|
1829
|
+
of the screen that follows each start (**Show all N launches**); change the shortcut, **Detect my project** and the
|
|
1830
|
+
panel's position in Settings → Launcher. From a terminal:
|
|
1722
1831
|
|
|
1723
1832
|
```sh
|
|
1724
1833
|
shard agents new --app claude --path ./ --prompt "Review the billing changes" --json
|
|
@@ -1772,7 +1881,9 @@ branch: `Landed in ~/code/best-todo · 3f2a1c9`.
|
|
|
1772
1881
|
Later tasks to keep, oldest first. `shard needs-you answer <id>` answers any of them: `allow`, `always` (also adds the
|
|
1773
1882
|
always-allow rule for the project; `--everywhere` for every project) or `deny` for a permission request, `--pick` for an
|
|
1774
1883
|
agent's question in one, `--text` for a question, `land` (as `shard task land`), `keep` or `discard` for finished work, and `--keep <task-id>`
|
|
1775
|
-
(or `keep`, `discard`) for Later tasks. The agent goes on as soon as you answer.
|
|
1884
|
+
(or `keep`, `discard`) for Later tasks. The agent goes on as soon as you answer. Your orchestrator's questions are
|
|
1885
|
+
`oq_…` items (`--text`), and what it asked your computer while it was offline waits as a `dev_…` item ("Waiting for
|
|
1886
|
+
your computer: list ~/code"): it runs when your computer is back, and `cancel` drops it (0.28.0+).
|
|
1776
1887
|
|
|
1777
1888
|
**Approvals.** The approval mode answers your agents' permission requests before they reach you: `ask` sends every one
|
|
1778
1889
|
to you, `routine` (the default) approves tests, builds, reads and installs, `trusted` approves everything except
|
|
@@ -1795,7 +1906,7 @@ Explicit `agents new --in terminal`, `--in t3`, and `--like` launches keep their
|
|
|
1795
1906
|
|
|
1796
1907
|
Save progress (0.22.0+): Machine and template saves show source size and an estimated duration, then queued/build state and phase updates immediately. With `--json`, progress events go to stderr and the final stdout document includes `preflight` and `phases`. Failure and timeout output retain the latest counters and `details.last_progress`, with the build id and recovery action. If an older API cannot expose the build, JSON stderr emits `save_started` with the version/build id and leaves the phase unknown. Missing final host reports preserve the last observed progress.
|
|
1797
1908
|
|
|
1798
|
-
Desktop launch cards (0.22.0+): the
|
|
1909
|
+
Desktop launch cards (0.22.0+): the Shardflux app clears and closes the launcher on submission, then shows each pending start as a card near the top of the display. **Show all N launches** expands their statuses and recovery.
|
|
1799
1910
|
|
|
1800
1911
|
|
|
1801
1912
|
### Pending execution cancellation (0.23.0+)
|
|
@@ -1829,7 +1940,7 @@ shard c list --org acme --state needs_you
|
|
|
1829
1940
|
shard c feed --org acme --json
|
|
1830
1941
|
```
|
|
1831
1942
|
|
|
1832
|
-
`shard conversations list --all` reads every page, keeping the selected project, state and parent filters. `--json` returns `data` and `nextCursor`.
|
|
1943
|
+
`shard conversations list --all` reads every page, keeping the selected project, state and parent filters. `--json` returns `data` and `nextCursor`.
|
|
1833
1944
|
|
|
1834
1945
|
## Project drive (0.25.0+)
|
|
1835
1946
|
|
package/dist/account-pool.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* With --json every write prints the updated `{accounts, pool}` block (the menu bar redraws from it), plus the account
|
|
7
7
|
* it changed. Sign-ins run the provider's own login in a workspace, as `shard agents credentials login claude` does.
|
|
8
8
|
*/
|
|
9
|
-
import type { AgentAccount, AgentAccountList, AgentAccountWindow } from '@shardflux/sdk';
|
|
9
|
+
import type { AgentAccount, AgentAccountList, AgentAccountModels, AgentAccountWindow } from '@shardflux/sdk';
|
|
10
10
|
import type { Ctx, Handler } from './commands.js';
|
|
11
11
|
/**
|
|
12
12
|
* Codex names its windows primary and secondary; their length says which is the 5-hour and which the weekly one (a
|
|
@@ -31,6 +31,16 @@ export declare function formatAccounts(list: AgentAccountList, now: number): str
|
|
|
31
31
|
export declare function formatUsage(list: AgentAccountList, now: number): string;
|
|
32
32
|
/** Codex's device sign-in page, as Codex 0.160.0 prints it (test/fixtures/cloud-agents/codex-login-device-auth-0.160.0.json). */
|
|
33
33
|
export declare function codexLoginUrls(output: string): string[];
|
|
34
|
+
/**
|
|
35
|
+
* `shard agents models` (0.27.0+): each account's models as its provider lists them for that account, the way Claude
|
|
36
|
+
* Code and Codex ask for their pickers. The default effort is starred; the harness's default model is marked.
|
|
37
|
+
*/
|
|
38
|
+
export declare function formatModels(entries: Array<AgentAccountModels & {
|
|
39
|
+
label?: string;
|
|
40
|
+
active?: boolean;
|
|
41
|
+
}>, now: number): string;
|
|
42
|
+
/** `shard agents models` (no `shard models` alias: that one is the model template). */
|
|
43
|
+
export declare const AGENT_MODELS_HANDLERS: Record<string, Handler>;
|
|
34
44
|
export declare const ACCOUNT_POOL_HANDLERS: Record<string, Handler>;
|
|
35
45
|
/** The `accounts` block of `shard agents targets --json` (0.18.0+): the account list for the menu bar; null when it cannot be read. */
|
|
36
46
|
export declare function targetsAccounts(ctx: Ctx): Promise<AgentAccountList | null>;
|
package/dist/account-pool.js
CHANGED
|
@@ -207,6 +207,54 @@ async function signIn(ctx, values, app) {
|
|
|
207
207
|
await api.cancelSignIn(claim.sign_in_id).catch(() => undefined);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
+
const REASONS = { disabled: 'turned off for this account', not_entitled: 'not included for this account', not_in_plan: 'not in this plan' };
|
|
211
|
+
/** "3m ago", "2h ago". */
|
|
212
|
+
const ago = (at, now) => { const m = Math.max(0, Math.round((now - Date.parse(at)) / 60_000)); return m < 60 ? `${m}m ago` : `${Math.round(m / 60)}h ago`; };
|
|
213
|
+
/**
|
|
214
|
+
* `shard agents models` (0.27.0+): each account's models as its provider lists them for that account, the way Claude
|
|
215
|
+
* Code and Codex ask for their pickers. The default effort is starred; the harness's default model is marked.
|
|
216
|
+
*/
|
|
217
|
+
export function formatModels(entries, now) {
|
|
218
|
+
if (!entries.length)
|
|
219
|
+
return 'No Claude or ChatGPT/Codex account is signed in. Add one with shard agents accounts add claude|codex.\n';
|
|
220
|
+
const lines = [];
|
|
221
|
+
for (const e of entries) {
|
|
222
|
+
const freshness = e.source === 'builtin' ? 'the harness’s own list until the provider answers' : e.stale && e.fetched_at ? `as of ${ago(e.fetched_at, now)}` : '';
|
|
223
|
+
lines.push(`${PROVIDERS[e.provider]}${e.label ? ` · ${e.label}` : ''}${e.active ? ' (active)' : ''}${freshness ? ` · ${freshness}` : ''}`);
|
|
224
|
+
const width = Math.max(...e.models.map(m => m.id.length), 8) + 2, nameWidth = Math.max(...e.models.map(m => m.name.length), 4) + 2;
|
|
225
|
+
const row = (m) => ` ${m.id.padEnd(width)}${m.name.padEnd(nameWidth)}${m.available
|
|
226
|
+
? `${m.efforts.map(x => x === m.default_effort ? `${x}*` : x).join(' ') || 'no effort levels'}${m.id === e.default_model ? ' (default)' : ''}`
|
|
227
|
+
: `unavailable: ${m.reason_text ?? (m.reason ? REASONS[m.reason] : 'not offered')}`}`;
|
|
228
|
+
const main = e.models.filter(m => m.section === 'main'), more = e.models.filter(m => m.section === 'more');
|
|
229
|
+
lines.push(...main.map(row));
|
|
230
|
+
if (more.length)
|
|
231
|
+
lines.push(' More models', ...more.map(row));
|
|
232
|
+
lines.push('');
|
|
233
|
+
}
|
|
234
|
+
lines.push('Start with one: shard agents new <claude|codex> --model <id> --effort <level> (* the model’s default effort).');
|
|
235
|
+
return `${lines.join('\n')}\n`;
|
|
236
|
+
}
|
|
237
|
+
/** `shard agents models` (no `shard models` alias: that one is the model template). */
|
|
238
|
+
export const AGENT_MODELS_HANDLERS = {
|
|
239
|
+
async 'agents models'(ctx, values) {
|
|
240
|
+
const api = ctx.cloud().agentAccounts;
|
|
241
|
+
const refresh = values.refresh === true;
|
|
242
|
+
if (values.account !== undefined) {
|
|
243
|
+
if (typeof values.account !== 'string' || !values.account.trim())
|
|
244
|
+
throw new UsageError('--account needs an account: its id, claude:<n>, codex:<n>, email or label.');
|
|
245
|
+
const account = findAccount(await api.list(), values.account.trim());
|
|
246
|
+
if (account.kind !== 'oauth')
|
|
247
|
+
throw new UsageError(`${name(account)} is an API key: it has no model list. Sign in with shard agents accounts add ${account.provider}.`);
|
|
248
|
+
const models = await api.models(account.id, { refresh });
|
|
249
|
+
out(ctx, formatModels([{ ...models, label: name(account), active: isActive(account) }], Date.now()), models);
|
|
250
|
+
return 0;
|
|
251
|
+
}
|
|
252
|
+
const all = await api.allModels({ provider: optionalProvider(values.provider), refresh });
|
|
253
|
+
const shown = values.all === true ? all.accounts : all.accounts.filter(a => a.active);
|
|
254
|
+
out(ctx, formatModels(shown, Date.now()), { accounts: shown });
|
|
255
|
+
return 0;
|
|
256
|
+
},
|
|
257
|
+
};
|
|
210
258
|
export const ACCOUNT_POOL_HANDLERS = {
|
|
211
259
|
async 'agents accounts'(ctx, values) {
|
|
212
260
|
const list = await ctx.cloud().agentAccounts.list({ provider: optionalProvider(values.provider) });
|