返回 CodeWhale
CLOUD_DISPATCH.md
根目录 / docs / CLOUD_DISPATCH.md
1 # Cloud computer dispatch (preview)
2
3 Cloud conversations run on a computer in your Codewhale account. The terminal
4 and desktop open the same conversation ID; closing either view leaves the
5 task running. Availability depends on your account and the deployed service.
6
7 ## Start a conversation
8
9 Sign in ([Account](ACCOUNT.md); new sign-ins are closed until accounts open),
10 configure your model in Codewhale, and dispatch:
11
12 ```sh
13 codewhale login
14 codewhale dispatch "your task"
15 printf 'Review the failing checks' | codewhale dispatch
16 ```
17
18 Dispatch selects your only running account computer and the configured model.
19 When several computers are running, use `--computer COMPUTER_ID`. List them with
20 `codewhale account computers list`. Start and create operations use the account's existing
21 compute allowance, consent and admission checks. To create a computer, use
22 `codewhale account computers create --help` or Manage cloud computers in desktop.
23 Dispatch does not allocate or start a computer implicitly.
24
25 ## Continue, inspect and stop
26
27 The returned conversation appears in desktop history for the same account.
28 Desktop's **Continue in terminal** control shows the matching command:
29
30 ```sh
31 codewhale dispatch --thread CONVERSATION_ID
32 codewhale dispatch --thread CONVERSATION_ID "continue the task"
33 codewhale dispatch --thread CONVERSATION_ID --stop
34 codewhale dispatch --thread CONVERSATION_ID --json
35 ```
36
37 Inspecting prints messages and pending approvals. Use `--approve APPROVAL_ID`
38 or `--deny APPROVAL_ID` after reviewing the request; approvals apply once.
39 Answer pending questions in desktop. `--stop` interrupts the turn and leaves
40 the computer running. Use `account computers pause COMPUTER_ID` to stop compute.
41
42 ## How the model key reaches the computer
43
44 Dispatch resolves your configured model through Codewhale's shared config and
45 credential resolver. A portable API key is supplied to the selected Engine in
46 memory, bound to the same provider endpoint. Restarting the Engine clears it.
47 The receiving Engine must support endpoint-bound session credentials; an older
48 Engine refuses this handoff. The desktop uses the same CLI resolver through its
49 native bridge, so credentials never pass through the webview.
50
51 Device-bound sign-ins, custom header authentication and local-only inference
52 cannot currently be transferred this way. Select a portable HTTPS API-key
53 connection, or configure the computer's existing connection explicitly.
54 `--key-stdin` remains available for explicit memory-only credential entry.
55 Do not put keys in command arguments. This does not enable the account key vault.
56
57 `--cloud-provider PROVIDER --cloud-model MODEL` explicitly selects the computer's
58 existing connection. Without those overrides, a follow-up checks that your
59 configured model still matches the conversation before transferring a key.
60 `--configured-model` reports the selected model and whether it is portable,
61 without returning a credential. `--prepare-model --thread ID` reconnects that
62 model without starting a turn.
63
64 ## Named agents (whales)
65
66 A whale is a named account collaborator with a saved provider and model.
67 `codewhale account agents create NAME --provider PROVIDER --model MODEL
68 --operation-key KEY` saves one without starting work or a computer, and
69 `codewhale account agents list` shows each whale's saved model.
70 `codewhale dispatch --whale AGENT_ID "your task"` starts a cloud conversation
71 with that whale: the service takes the route from the whale's saved
72 configuration, and your local configuration for that provider supplies the
73 memory-only key. Later `--thread` follow-ups keep using the whale's current
74 saved model; a changed whale applies to the next turn, not to a running one.
75 In a group conversation, a send or `--prepare-model` also connects the provider
76 of each active member whose saved provider differs from the lead's, from your
77 local configuration for that provider, memory-only like the lead's key. A
78 member whose provider is not configured locally stops the send with that
79 member's name; it is never skipped.
80
81 ## Retry after an uncertain response
82
83 Every send prints a replay key before submission. After an uncertain response,
84 repeat the original command and prompt with `--operation-key KEY`. Keep the
85 original `--computer` target when retrying creation, or the original `--thread`
86 when retrying continuation. Reusing the key with changed content is refused.
87 Do not start another conversation to recover an uncertain send.
88
89 ## Related commands and limits
90
91 `codewhale account session` exposes the same computer conversation commands.
92 The earlier `dispatch` Agent Work flow, including its repository and file
93 context options, remains available when an Agent Work option such as `--agent`
94 or `--context-file` is supplied.
95 Work-only flags cannot be mixed with computer conversations. This preview does
96 not move local folders or repository checkouts into a VM.
97
98 Conversations on one computer share that computer's files. Select a separate
99 computer when you need filesystem isolation.
100
100 lines MARKDOWN