@parcha/agentrun 0.4.6 → 0.4.8
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 +17 -3
- package/lib/commands.generated.mjs +829 -46
- package/lib/follow.mjs +2 -1
- package/lib/start.mjs +221 -17
- package/package.json +2 -2
- package/skills/agentrun-cli/SKILL.md +23 -6
- package/skills/agentrun-cli/references/commands.md +230 -3
|
@@ -12,6 +12,17 @@ Archive the agent: hidden from the lists, kept with its history.
|
|
|
12
12
|
|
|
13
13
|
Route: `POST /agents/{agent_id}/archive`.
|
|
14
14
|
|
|
15
|
+
### `agentrun agents connect-native`
|
|
16
|
+
|
|
17
|
+
Connect a native project using ordinary agent and revision storage.
|
|
18
|
+
|
|
19
|
+
Route: `POST /native/connect`.
|
|
20
|
+
|
|
21
|
+
- `--project STRING` (string, required)
|
|
22
|
+
- `--runtime claude-code|codex` (string, one of these, required)
|
|
23
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
24
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
25
|
+
|
|
15
26
|
### `agentrun agents create`
|
|
16
27
|
|
|
17
28
|
Create an agent home.
|
|
@@ -29,6 +40,23 @@ Remove an agent's own Archil disk, and everything on it.
|
|
|
29
40
|
|
|
30
41
|
Route: `DELETE /agents/{agent_id}/archil`.
|
|
31
42
|
|
|
43
|
+
### `agentrun agents disconnect-native AGENT_ID`
|
|
44
|
+
|
|
45
|
+
Disconnect future native jobs while retaining source configuration and history.
|
|
46
|
+
|
|
47
|
+
Route: `POST /agents/{agent_id}/native/disconnect`.
|
|
48
|
+
|
|
49
|
+
### `agentrun agents discover-native`
|
|
50
|
+
|
|
51
|
+
Discover existing native projects on this source machine without running a model.
|
|
52
|
+
|
|
53
|
+
Route: `POST /native/discover`.
|
|
54
|
+
|
|
55
|
+
- `--project STRING` (string, required)
|
|
56
|
+
- `--runtime claude-code|codex` (string, one of these)
|
|
57
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
58
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
59
|
+
|
|
32
60
|
### `agentrun agents forget-sign-in AGENT_ID KEY`
|
|
33
61
|
|
|
34
62
|
Forget one of the agent's saved sign-ins.
|
|
@@ -53,6 +81,12 @@ The self-learning loop's own record: each compile turn, and each guarded step of
|
|
|
53
81
|
|
|
54
82
|
Route: `GET /agents/{agent_id}/learning/loop`.
|
|
55
83
|
|
|
84
|
+
### `agentrun agents get-native AGENT_ID`
|
|
85
|
+
|
|
86
|
+
Read a native connection.
|
|
87
|
+
|
|
88
|
+
Route: `GET /agents/{agent_id}/native`.
|
|
89
|
+
|
|
56
90
|
### `agentrun agents list`
|
|
57
91
|
|
|
58
92
|
List agents.
|
|
@@ -97,6 +131,101 @@ Route: `PUT /agents/{agent_id}/definition`.
|
|
|
97
131
|
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
98
132
|
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
99
133
|
|
|
134
|
+
### `agentrun agents verify-native AGENT_ID`
|
|
135
|
+
|
|
136
|
+
Check native CLI and sign-in without a paid model call.
|
|
137
|
+
|
|
138
|
+
Route: `POST /agents/{agent_id}/native/verify`.
|
|
139
|
+
|
|
140
|
+
## connectors
|
|
141
|
+
|
|
142
|
+
### `agentrun connectors complete-remote-command CONNECTOR_ID COMMAND_ID`
|
|
143
|
+
|
|
144
|
+
Complete a source command once under its valid lease.
|
|
145
|
+
|
|
146
|
+
Route: `POST /connectors/{connector_id}/commands/{command_id}/complete`.
|
|
147
|
+
|
|
148
|
+
- `--lease-token STRING` (string, required)
|
|
149
|
+
- `--error STRING` (string)
|
|
150
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
151
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
152
|
+
|
|
153
|
+
### `agentrun connectors enroll-remote-connector`
|
|
154
|
+
|
|
155
|
+
Create a ten-minute one-use connection code.
|
|
156
|
+
|
|
157
|
+
Route: `POST /connectors/enrollment`.
|
|
158
|
+
|
|
159
|
+
- `--label STRING` (string)
|
|
160
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
161
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
162
|
+
|
|
163
|
+
### `agentrun connectors import-remote-history CONNECTOR_ID TARGET_ID`
|
|
164
|
+
|
|
165
|
+
Import explicitly selected, redacted past sessions without running or learning from them.
|
|
166
|
+
|
|
167
|
+
Route: `POST /connectors/{connector_id}/targets/{target_id}/history`.
|
|
168
|
+
|
|
169
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
170
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
171
|
+
|
|
172
|
+
### `agentrun connectors import-remote-target CONNECTOR_ID`
|
|
173
|
+
|
|
174
|
+
Import an explicitly selected source-native agent reference.
|
|
175
|
+
|
|
176
|
+
Route: `POST /connectors/{connector_id}/import`.
|
|
177
|
+
|
|
178
|
+
- `--target-id STRING` (string, required)
|
|
179
|
+
- `--name STRING` (string)
|
|
180
|
+
- `--history-only` (boolean)
|
|
181
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
182
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
183
|
+
|
|
184
|
+
### `agentrun connectors list-remote-connectors`
|
|
185
|
+
|
|
186
|
+
List remote source machines and imported agent targets.
|
|
187
|
+
|
|
188
|
+
Route: `GET /connectors`.
|
|
189
|
+
|
|
190
|
+
### `agentrun connectors poll-remote-connector CONNECTOR_ID`
|
|
191
|
+
|
|
192
|
+
Renew active source leases and claim one command without replay.
|
|
193
|
+
|
|
194
|
+
Route: `POST /connectors/{connector_id}/poll`.
|
|
195
|
+
|
|
196
|
+
- `--worker-id STRING` (string, required)
|
|
197
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
198
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
199
|
+
|
|
200
|
+
### `agentrun connectors register-remote-connector`
|
|
201
|
+
|
|
202
|
+
Exchange a one-use enrollment code for a connector-scoped credential.
|
|
203
|
+
|
|
204
|
+
Route: `POST /connectors`.
|
|
205
|
+
|
|
206
|
+
- `--installation-id STRING` (string, required)
|
|
207
|
+
- `--operation-id STRING` (string, required)
|
|
208
|
+
- `--label STRING` (string)
|
|
209
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
210
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
211
|
+
|
|
212
|
+
### `agentrun connectors remote-command-events CONNECTOR_ID COMMAND_ID`
|
|
213
|
+
|
|
214
|
+
Append an ordered idempotent native event batch for a valid command lease.
|
|
215
|
+
|
|
216
|
+
Route: `POST /connectors/{connector_id}/commands/{command_id}/events`.
|
|
217
|
+
|
|
218
|
+
- `--lease-token STRING` (string, required)
|
|
219
|
+
- `--sequence INTEGER` (integer, required)
|
|
220
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
221
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
222
|
+
|
|
223
|
+
### `agentrun connectors revoke-remote-connector CONNECTOR_ID`
|
|
224
|
+
|
|
225
|
+
Revoke a source connector and stop its outstanding commands.
|
|
226
|
+
|
|
227
|
+
Route: `DELETE /connectors/{connector_id}`.
|
|
228
|
+
|
|
100
229
|
## files
|
|
101
230
|
|
|
102
231
|
### `agentrun files create`
|
|
@@ -215,7 +344,7 @@ The agent's cost per run, run after run: its own cost, what learning added and t
|
|
|
215
344
|
Route: `GET /agents/{agent_id}/learning/cost`.
|
|
216
345
|
|
|
217
346
|
- `--limit INTEGER` (integer): The latest runs to answer, each keeping its number. At most 10000.
|
|
218
|
-
- `--format json|csv` (string, one of these): `csv`: the runs as CSV, columns n, run_id, started_at, path, workflow, learned_revision, cost_usd, learning_usd, total_usd.
|
|
347
|
+
- `--format json|csv` (string, one of these): `csv`: the runs as CSV, columns n, run_id, started_at, path, workflow, learned_revision, cost_usd, cost_upper_bound, learning_usd, total_usd.
|
|
219
348
|
|
|
220
349
|
### `agentrun learning evals AGENT_ID`
|
|
221
350
|
|
|
@@ -273,6 +402,12 @@ Route: `POST /agents/{agent_id}/learning/evals`.
|
|
|
273
402
|
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
274
403
|
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
275
404
|
|
|
405
|
+
### `agentrun learning replay AGENT_ID NAME DIGEST REPLAY_ID`
|
|
406
|
+
|
|
407
|
+
Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab).
|
|
408
|
+
|
|
409
|
+
Route: `GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}`.
|
|
410
|
+
|
|
276
411
|
### `agentrun learning retire AGENT_ID FILE`
|
|
277
412
|
|
|
278
413
|
Retire a note, a skill or a workflow draft: out of every later run, kept in history.
|
|
@@ -309,6 +444,12 @@ A code that pairs a person's own computer with this server.
|
|
|
309
444
|
|
|
310
445
|
Route: `POST /computers/pairings`.
|
|
311
446
|
|
|
447
|
+
### `agentrun local delete-composio-subscription NAME`
|
|
448
|
+
|
|
449
|
+
Delete the Composio project's webhook subscription, once no trigger uses it.
|
|
450
|
+
|
|
451
|
+
Route: `DELETE /settings/mcp-servers/{name}/composio/subscription`.
|
|
452
|
+
|
|
312
453
|
### `agentrun local delete-computer COMPUTER_ID`
|
|
313
454
|
|
|
314
455
|
Remove a paired computer: its token ends and its socket closes.
|
|
@@ -339,6 +480,18 @@ Whether run folders are on Archil disks (Mode 2), the settings, and whether its
|
|
|
339
480
|
|
|
340
481
|
Route: `GET /workspace/archil`.
|
|
341
482
|
|
|
483
|
+
### `agentrun local list-composio-events NAME`
|
|
484
|
+
|
|
485
|
+
List a saved Composio server's toolkit's events, for a composio trigger.
|
|
486
|
+
|
|
487
|
+
Route: `GET /settings/mcp-servers/{name}/composio/events`.
|
|
488
|
+
|
|
489
|
+
### `agentrun local list-composio-triggers NAME`
|
|
490
|
+
|
|
491
|
+
A saved Composio server's triggers, each with its instance's state on Composio.
|
|
492
|
+
|
|
493
|
+
Route: `GET /settings/mcp-servers/{name}/composio/triggers`.
|
|
494
|
+
|
|
342
495
|
### `agentrun local list-computer-choices PROVIDER`
|
|
343
496
|
|
|
344
497
|
The values a computer provider's picked keys offer, read from the vendor.
|
|
@@ -351,6 +504,21 @@ Settings → Computers: the kinds of computer this server offers, each provider
|
|
|
351
504
|
|
|
352
505
|
Route: `GET /computers`.
|
|
353
506
|
|
|
507
|
+
### `agentrun local receive-hook-composio HOOK`
|
|
508
|
+
|
|
509
|
+
Fire a Composio trigger: a request it checks, no token.
|
|
510
|
+
|
|
511
|
+
Route: `POST /hooks/composio/{hook}`.
|
|
512
|
+
|
|
513
|
+
- `--body JSON|@FILE|-` (*/*, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
514
|
+
- `--body-type TYPE` (string): The body's type, one of */*; any other than JSON is sent as given.
|
|
515
|
+
|
|
516
|
+
### `agentrun local rotate-composio-secret NAME`
|
|
517
|
+
|
|
518
|
+
Rotate the Composio project's webhook subscription's secret, and keep the new one.
|
|
519
|
+
|
|
520
|
+
Route: `POST /settings/mcp-servers/{name}/composio/rotate-secret`.
|
|
521
|
+
|
|
354
522
|
### `agentrun local test-computer PROVIDER`
|
|
355
523
|
|
|
356
524
|
Test a computer provider's account with its saved keys.
|
|
@@ -419,6 +587,17 @@ List a saved MCP server's tools again, keep them, and say what changed.
|
|
|
419
587
|
|
|
420
588
|
Route: `POST /settings/mcp-servers/{name}/refresh`.
|
|
421
589
|
|
|
590
|
+
## Observations
|
|
591
|
+
|
|
592
|
+
### `agentrun Observations get-observations`
|
|
593
|
+
|
|
594
|
+
Read activity and token usage reported by externally running agents.
|
|
595
|
+
|
|
596
|
+
Route: `GET /observations`.
|
|
597
|
+
|
|
598
|
+
- `--days INTEGER` (integer): UTC calendar days including today; session details remain visible for their full retention period.
|
|
599
|
+
- `--session-id STRING` (string)
|
|
600
|
+
|
|
422
601
|
## revisions
|
|
423
602
|
|
|
424
603
|
### `agentrun revisions list AGENT_ID`
|
|
@@ -485,7 +664,6 @@ Route: `POST /runs`.
|
|
|
485
664
|
- `--effort low|medium|high` (string, one of these): How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note.
|
|
486
665
|
- `--max-cost-usd NUMBER` (number): This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default.
|
|
487
666
|
- `--quote-id STRING` (string): Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`.
|
|
488
|
-
- `--cap-mode expected|strict` (string, one of these): How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap.
|
|
489
667
|
- `--workflow-first` (boolean): Whether a run of an agent that learns may start on one of its learned workflows. On (absent or true), a run whose input fits exactly one active learned workflow (its input schema has a required field, and the run's input passes it) runs that workflow first, with no turn of the agent's model: its answer is the run's answer, and if it hands the job back (it escalates, a step fails), the same run goes on with the agent, given what the workflow found. The run keeps which path it took: `workflow`, `handed_back` or `agent`. false: the agent takes the run from its first turn.
|
|
490
668
|
- `--learning use` (string, one of these): `use`: the run starts from what its agent learned (its notes, learned skills and learned workflows, as a run that learns is given them), whatever its agent's `learning` says, and keeps nothing: no end-of-run turn, no proposal, no grade and no merge, at its end or after a follow-up. Its `learning` reads `seeded` while it runs, then `dropped` with reason `use`. So many runs of one agent read one learned state, frozen (a held-out evaluation). On a server whose learning is off it is given nothing, as every run there. Absent: the agent's own (`learning: true` learns). 422 not_an_option for anything else.
|
|
491
669
|
- `--repo STRING` (string): The GitHub repository (`owner/name`) this run reaches: the one its GitHub App token is made for, so its github MCP calls are scoped to it. It must be one the agent is bound to (a repository its GitHub triggers' `accept` names on `/repository/full_name`); another is 422 at `repo` in words naming the repositories it is bound to. Absent: the agent's repository when it is bound to exactly one and the first message names none; otherwise the repository a `https://github.com/<owner>/<repo>` URL in the first message names. A run a trigger starts takes its repository from its event, and `repo` there is 422.
|
|
@@ -612,7 +790,6 @@ Route: `POST /agents/{agent_id}/runs`.
|
|
|
612
790
|
- `--effort low|medium|high` (string, one of these): How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note.
|
|
613
791
|
- `--max-cost-usd NUMBER` (number): This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default.
|
|
614
792
|
- `--quote-id STRING` (string): Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`.
|
|
615
|
-
- `--cap-mode expected|strict` (string, one of these): How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap.
|
|
616
793
|
- `--workflow-first` (boolean): Whether a run of an agent that learns may start on one of its learned workflows. On (absent or true), a run whose input fits exactly one active learned workflow (its input schema has a required field, and the run's input passes it) runs that workflow first, with no turn of the agent's model: its answer is the run's answer, and if it hands the job back (it escalates, a step fails), the same run goes on with the agent, given what the workflow found. The run keeps which path it took: `workflow`, `handed_back` or `agent`. false: the agent takes the run from its first turn.
|
|
617
794
|
- `--learning use` (string, one of these): `use`: the run starts from what its agent learned (its notes, learned skills and learned workflows, as a run that learns is given them), whatever its agent's `learning` says, and keeps nothing: no end-of-run turn, no proposal, no grade and no merge, at its end or after a follow-up. Its `learning` reads `seeded` while it runs, then `dropped` with reason `use`. So many runs of one agent read one learned state, frozen (a held-out evaluation). On a server whose learning is off it is given nothing, as every run there. Absent: the agent's own (`learning: true` learns). 422 not_an_option for anything else.
|
|
618
795
|
- `--repo STRING` (string): The GitHub repository (`owner/name`) this run reaches: the one its GitHub App token is made for, so its github MCP calls are scoped to it. It must be one the agent is bound to (a repository its GitHub triggers' `accept` names on `/repository/full_name`); another is 422 at `repo` in words naming the repositories it is bound to. Absent: the agent's repository when it is bound to exactly one and the first message names none; otherwise the repository a `https://github.com/<owner>/<repo>` URL in the first message names. A run a trigger starts takes its repository from its event, and `repo` there is 422.
|
|
@@ -656,6 +833,7 @@ Route: `GET /runs/{run_id}/timeline`.
|
|
|
656
833
|
- `--after INTEGER` (integer): The change cursor last applied, from `next_after` or the last SSE `id`. 0 is the start.
|
|
657
834
|
- `--wait-ms INTEGER` (integer): JSON only. How long to hold the request for a change after `after`.
|
|
658
835
|
- `--limit INTEGER` (integer): At most this many rows in a page (1 to 500, default 500); has_more says when another waits.
|
|
836
|
+
- `--calls whole` (string, one of these): `whole`: each `tool_use` row carries its call's arguments (`tool_input`) and each `tool_result` row the head of its output to 8000 characters (`tool_result_text`; a web call's every url, only its long texts cut), both through the run's redaction, for a reader that grades the run (a template eval). Its rows are another page sequence: a cursor (`after`, `Last-Event-ID`) from one read goes with the same `calls`.
|
|
659
837
|
- `--last-event-id STRING` (string): SSE reconnect. Same meaning as `after`, and wins over it.
|
|
660
838
|
- `--follow` (boolean, this CLI's own): the timeline as it changes, one page per line (NDJSON), until the run ends; resumes a dropped connection
|
|
661
839
|
|
|
@@ -673,6 +851,55 @@ Route: `GET /runs/{run_id}/timeline, long-polled, then GET /runs/{run_id}`.
|
|
|
673
851
|
|
|
674
852
|
- `--timeout SECONDS` (number, this CLI's own): stop waiting after this long, exit 1 (the run goes on)
|
|
675
853
|
|
|
854
|
+
## sdk-runs
|
|
855
|
+
|
|
856
|
+
### `agentrun sdk-runs complete RUN_ID`
|
|
857
|
+
|
|
858
|
+
Complete a backend SDK task.
|
|
859
|
+
|
|
860
|
+
Route: `POST /sdk-runs/{run_id}/complete`.
|
|
861
|
+
|
|
862
|
+
- `--idempotency-key STRING` (string)
|
|
863
|
+
- `--status completed|failed|cancelled` (string, one of these, required)
|
|
864
|
+
- `--answer STRING` (string, required)
|
|
865
|
+
- `--error STRING` (string)
|
|
866
|
+
- `--model STRING` (string)
|
|
867
|
+
- `--session-id STRING` (string)
|
|
868
|
+
- `--evidence-complete` (boolean)
|
|
869
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
870
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
871
|
+
|
|
872
|
+
### `agentrun sdk-runs events RUN_ID`
|
|
873
|
+
|
|
874
|
+
Record bounded SDK execution evidence.
|
|
875
|
+
|
|
876
|
+
Route: `POST /sdk-runs/{run_id}/events`.
|
|
877
|
+
|
|
878
|
+
- `--idempotency-key STRING` (string)
|
|
879
|
+
- `--sequence INTEGER` (integer, required)
|
|
880
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
881
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
882
|
+
|
|
883
|
+
### `agentrun sdk-runs get RUN_ID`
|
|
884
|
+
|
|
885
|
+
Read SDK run and learning state.
|
|
886
|
+
|
|
887
|
+
Route: `GET /sdk-runs/{run_id}`.
|
|
888
|
+
|
|
889
|
+
### `agentrun sdk-runs start AGENT_ID`
|
|
890
|
+
|
|
891
|
+
Register a task executed by an existing backend SDK.
|
|
892
|
+
|
|
893
|
+
Route: `POST /agents/{agent_id}/sdk-runs`.
|
|
894
|
+
|
|
895
|
+
- `--idempotency-key STRING` (string, required)
|
|
896
|
+
- `--runtime claude-agent-sdk|codex-sdk` (string, one of these, required)
|
|
897
|
+
- `--input STRING` (string, required)
|
|
898
|
+
- `--instructions STRING` (string, required)
|
|
899
|
+
- `--model STRING` (string)
|
|
900
|
+
- `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
|
|
901
|
+
- `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
|
|
902
|
+
|
|
676
903
|
## server
|
|
677
904
|
|
|
678
905
|
### `agentrun server capabilities`
|