diff --git a/api-reference/error-codes.mdx b/api-reference/error-codes.mdx index 76ee460..eeed3a9 100644 --- a/api-reference/error-codes.mdx +++ b/api-reference/error-codes.mdx @@ -3,8 +3,8 @@ title: Error codes description: API error response fields and stable error codes. type: reference audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -70,6 +70,8 @@ Use the current response or event details when diagnosing a new failure. |---|---|---|---| | `UZ-REQ-001` | 400 | Invalid request | That request wasn't valid. Double-check the values you entered and try again. | | `UZ-REQ-002` | 413 | Payload too large | Request body exceeds the maximum allowed size. | +| `UZ-REQ-003` | 410 | Endpoint removed | Use the current route listed in the API reference. | +| `UZ-REQ-004` | 400 | Input too long | Shorten the input to at most 1,048,576 characters. | ### Workspaces @@ -155,17 +157,46 @@ Use the current response or event details when diagnosing a new failure. |---|---|---|---| | `UZ-AGT-003` | 424 | Fleet credential missing | A required credential is not in the vault. Add it with: `agentsfleet secrets create ` | | `UZ-AGT-004` | 500 | Fleet unavailable | **Retired.** Check the fleet state and the event details for the current failure. | -| `UZ-AGT-006` | 409 | Fleet name already exists | A fleet already uses this name. Review the draft under a different `--name` to keep it. Deleting the existing fleet permanently removes its events, sessions, schedules, grants, and memory; only do that if you intend to remove it. | -| `UZ-AGT-008` | 400 | Invalid fleet config | That fleet's config isn't valid. Check the trigger, tools, credentials, and budget fields, then try again. | +| `UZ-AGT-006` | 409 | Fleet name already exists | A fleet already uses this name. Choose a different `name` and send the request again. | +| `UZ-AGT-008` | 400 | Invalid fleet config | Check the runtime model and provider settings before trying again. | | `UZ-AGT-009` | 404 | Fleet not found | The fleet is missing from this workspace. | | `UZ-AGT-010` | 409 | Fleet state transition not allowed | **Retired.** Delete now works in any status, and archive works on any fleet that is not archived. | -| `UZ-AGT-012` | 409 | Fleet is not active | This Fleet is still installing or was archived, so it refuses new work. Check it with `agentsfleet fleet show `. | +| `UZ-AGT-012` | 409 | Fleet is not active | This fleet is inactive. Check its state with `agentsfleet fleet show `. | | `UZ-AGT-013` | 500 | Fleet install rolled back | We couldn't finish setting up your fleet. Nothing was created — try again. | | `UZ-AGT-014` | 412 | Fleet source is stale | Someone else edited this Fleet's source since you opened it. Reload to see their change, then re-apply your edit. | | `UZ-AGT-015` | 404 | Event not found | We couldn't find that event. It may have aged out, or the identifier doesn't match one on this Fleet. | | `UZ-AGT-016` | 409 | Operation already used | This `operation_id` was used with a different message or sender; workspace API keys count as one sender. Retry the original request unchanged, or use a new `operation_id` for a new message. The response carries `current_state: "admitted"`. | | `UZ-AGT-017` | 404 | Tool call not found | No full output was kept for this call on this event, or the call is outside this workspace. Use the call identifier shown in the thread. Its saved preview may still contain the first and last lines. | | `UZ-AGT-020` | 409 | Fleet is archived | This Fleet is archived and can't change. Delete it, or set up a new Fleet. | +| `UZ-AGT-022` | 404 | Requested access not in workspace | Add the secret or connect the integration, then request access using its exact name. | +| `UZ-AGT-023` | 409 | Provider not connected | Connect the provider in the workspace, then retry the request. | +| `UZ-AGT-024` | 409 | Trigger already exists | The fleet already has a trigger of this kind on this source. Keep it or remove it before adding another. | +| `UZ-AGT-025` | 404 | Trigger signing secret not in workspace | Store the webhook's signing secret under the named key, then add the trigger again. | +| `UZ-SETUP-002` | 409 | Fleet state conflict | Wait for the current work to finish or stop it before changing the fleet. | +| `UZ-SETUP-003` | 412 | Fleet version changed | Fetch the fleet again and retry with its current `ETag`. | +| `UZ-SETUP-004` | 428 | Fleet version required | Send the fleet's `ETag` in `If-Match`. | +| `UZ-SETUP-005` | 409 | Operation key conflict | Reuse an operation key only for the same normalized request from the same caller. | +| `UZ-SETUP-008` | 409 | Fleet model unavailable | Choose an eligible model configured by the workspace owner. | +| `UZ-SETUP-011` | 400 | Invalid list cursor | Start the list again with the same caller, filters, and page size. | +| `UZ-SETUP-013` | 410 | Fleet purged | The fleet created by this operation was deleted. Start a new operation. | +| `UZ-AGT-018` | 409 | Fleet cannot steer itself | Reply to the current turn or choose another fleet from `fleet_activity`. | +| `UZ-AGT-021` | 409 | Turn already finished | The turn finished before Stop took effect. Read its saved reply or failure. | + +### Durable tasks + +| Code | HTTP | Meaning | What to do | +|---|---|---|---| +| `UZ-DT-001` | 404 | Durable task not found | Refresh the durable task list for this fleet. | +| `UZ-DT-002` | 409 | Durable task state changed | Read the current task state. A finished task cannot restart. | +| `UZ-DT-003` | 409 | Durable task replay conflicts | Retry with the same request content and operation identity. | +| `UZ-DT-004` | 409 | Durable task target is unavailable | Choose a target covered by the task goal and approved repository access. | +| `UZ-DT-005` | 429 | Durable task limit reached | The task or fleet reached a work limit. Its saved progress remains available. | +| `UZ-DT-006` | 503 | Decision unavailable | Check the decision model, account balance, and provider key. The request is saved. | +| `UZ-DT-007` | 409 | Input needs clarification | Ask the person to explain what they want before changing the task. | +| `UZ-DT-008` | 409 | Checkpoint is incompatible | Keep the earlier checkpoint. Restore a complete checkpoint that matches the setup. | +| `UZ-DT-009` | 503 | Checkpoint storage unavailable | Retry the authorized transfer before its original deadline. Keep the last complete save. | +| `UZ-DT-010` | 409 | Publication needs reconciliation | Check the saved publication record before trying the same change again. | +| `UZ-DT-013` | 412 | Durable task version changed | Read the task again and retry with its current `ETag` and generation. | ### Schedules @@ -185,7 +216,7 @@ Use the current response or event details when diagnosing a new failure. ### Drafts and setup -These codes answer private drafts, Save, Apply, and account-owned Plugin publication. +These codes describe responses from the retired draft, setup, and Plugin APIs. | Code | HTTP | Title | Meaning and action | |---|---|---|---| @@ -250,14 +281,11 @@ These codes answer private drafts, Save, Apply, and account-owned Plugin publica ### Library listings +The model catalogue uses the active listing codes below. Older logs can also contain the retired codes. + Model catalogue reads use the codes below. Keep `limit` within 1 to 100 and use the previous page's `next_cursor`. Start again from the first page after changing a filter. -Plugins use `UZ-AUTHOR-011` for malformed or mismatched cursors. -Their list route is `/v1/workspaces/{workspace_id}/plugins`; it returns only your account's entries. - -Removing a Plugin answers `UZ-AUTHOR-001` when the entry is not one your account owns. - | Code | HTTP | Title | Meaning and action | |---|---|---|---| | `UZ-LIBRARY-001` | 400 | Pagination cursor is malformed | That page link is no longer valid. Go back to the first page and try again. | @@ -292,7 +320,7 @@ Removing a Plugin answers `UZ-AUTHOR-001` when the entry is not one your account | `UZ-RUN-012` | 402 | Lease renewal blocked: no credits | The tenant balance cannot cover another run slice. The lease does not renew, and the run stops cleanly. | | `UZ-RUN-013` | 400 | Renew body malformed | The runner reports retired usage fields, so its lease cannot renew. Upgrade `agentsfleet-runner` together with `agentsfleetd`. | | `UZ-RUN-014` | 404 | Runner not found | We couldn't find that runner. It may have been removed — refresh the list. | -| `UZ-RUN-015` | 402 | Lease renewal blocked: fleet budget exhausted | The fleet reached its `daily_nanos` or `monthly_nanos` limit from its reviewed setup, so the run stops. The tenant balance is fine; this is the fleet's own budget. | +| `UZ-RUN-015` | 402 | Lease renewal blocked: fleet budget exhausted | **Retired.** The fleet exceeded a limit in its saved setup. Current runs use the account balance. | | `UZ-RUN-016` | 409 | Active runner must be revoked before deletion | This runner is still live. Revoke it first, then delete it. | | `UZ-RUN-018` | 409 | Self-test refused: runner is revoked | A revoked runner cannot receive a self-test. Enroll a replacement runner. | | `UZ-RUN-019` | 409 | Event has no thread to message | The run came from an API steer, a webhook, or a schedule, so no thread is waiting. Say it in the run's answer instead. | @@ -300,6 +328,10 @@ Removing a Plugin answers `UZ-AUTHOR-001` when the entry is not one your account | `UZ-RUN-021` | 409 | Runner stream superseded | A newer connection owns this runner. Stop the duplicate process and keep one intended process per runner token. | | `UZ-RUN-022` | 409 | Lease cancelled | The fleet was killed. Stop that lease and report its final result. | | `UZ-RUN-023` | 400 | Runner protocol unsupported | Upgrade `agentsfleet-runner` and `agentsfleetd` together so they use the same runner protocol. | +| `UZ-RUN-024` | 503 | Runner stream disconnected | The runner reconnects automatically. Check the private listener and its network route if this repeats. | +| `UZ-RUN-026` | 409 | Tenant-managed runner | The owning account must rotate this runner's token through its runner endpoint. | +| `UZ-RUN-027` | 500 | Runner placement refused | Report the placement failure with the request identifier. | +| `UZ-RUN-033` | 409 | Host already registered | Read the existing runner from the `Location` header. Rotate its token if needed. | ### Runs @@ -324,15 +356,25 @@ See [Troubleshoot a fleet](/fleets/troubleshooting) for recovery. | `UZ-EXEC-016` | 401 | Runner token rejected | **Retired.** The runner token was rejected. Re-enroll the host instead of retrying its old token. | | `UZ-EXEC-017` | 409 | Assignment exceeds host capability | **Retired.** The host could not enforce the assigned policy; fix the host or choose a suitable runner. Check the current event's `failure_class`, such as `startup_posture`. | +### Run checkpoints + +| Code | HTTP | Meaning | What to do | +|---|---|---|---| +| `UZ-RUN-028` | 409 | Run checkpoint incompatible | Use a runner with matching settings or start a new run. | +| `UZ-RUN-029` | 409 | Run checkpoint conflict | Read the latest checkpoint descriptor before trying to save again. | +| `UZ-RUN-030` | 503 | Run checkpoint unavailable | Keep the last complete checkpoint and retry when storage returns. | +| `UZ-RUN-031` | 413 | Run checkpoint limit exceeded | Reduce the state or workspace files the checkpoint needs to store. | +| `UZ-RUN-032` | 413 | Run too large to send | Shorten the message or start a new conversation. The runner frame limit is 32 MiB. | + ### Approvals | Code | HTTP | Title | Meaning and action | |---|---|---|---| -| `UZ-APPROVAL-001` | 400 | Approval parse failed | **Retired.** Invalid Definition fields now return [`UZ-REQ-001`](#UZ-REQ-001). Check the field named in the detail. | +| `UZ-APPROVAL-001` | 400 | Approval parse failed | **Retired.** The old approval rule could not be read. | | `UZ-APPROVAL-002` | 404 | Approval not found | That approval action wasn't found. It may have already timed out or been resolved elsewhere. | | `UZ-APPROVAL-003` | 401 | Approval invalid signature | **Retired.** Invalid callback signatures now use [`UZ-WH-010`](#UZ-WH-010). Check the signing secret. | | `UZ-APPROVAL-004` | 503 | Approval service unavailable | **Retired.** Report the current service error and request identifier when approvals are unavailable. | -| `UZ-APPROVAL-005` | 400 | Approval condition invalid | **Retired.** Invalid approval conditions now fail Definition validation with [`UZ-REQ-001`](#UZ-REQ-001). | +| `UZ-APPROVAL-005` | 400 | Approval condition invalid | **Retired.** The old approval rule had an invalid condition. | | `UZ-APPROVAL-006` | 409 | Approval already resolved | Someone already resolved this. Refresh to see the outcome and who resolved it. | ### Memory @@ -360,9 +402,9 @@ See [Troubleshoot a fleet](/fleets/troubleshooting) for recovery. | Code | HTTP | Title | Meaning and action | |---|---|---|---| | `UZ-REPAIR-010` | 403 | Write mint requires an approved gate | **Retired.** Repository writes use the fleet's integration grant. A missing approved grant returns [`UZ-GRANT-001`](#UZ-GRANT-001). | -| `UZ-REPAIR-011` | 403 | Fleet binding changed since approval | **Retired.** Repository access follows the fleet's current Definition. Keep `repositories` limited to the repositories it needs. | +| `UZ-REPAIR-011` | 403 | Fleet binding changed since approval | **Retired.** Check the fleet's current repository grant before requesting write access. | | `UZ-REPAIR-012` | 200 | Duplicate repair link refused | **Retired.** The webhook path no longer records repair links through this check. Repository access uses fleet integration grants. | -| `UZ-REPAIR-013` | 403 | Write request allowance exhausted | **Retired.** The per-approval request allowance was removed. Set `budget.daily_nanos` to limit the fleet's daily spending. | +| `UZ-REPAIR-013` | 403 | Write request allowance exhausted | **Retired.** The former per-approval write limit was reached. | | `UZ-REPAIR-014` | 200 | Repair provenance refused | **Retired.** The webhook path no longer checks repair provenance against a per-run write approval. Review the fleet's integration grant instead. | ### Integration grants diff --git a/api-reference/introduction.mdx b/api-reference/introduction.mdx index ad8d066..5c0a9da 100644 --- a/api-reference/introduction.mdx +++ b/api-reference/introduction.mdx @@ -3,8 +3,8 @@ title: API introduction description: Base URL, authentication, errors, and common response formats. type: explanation audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -12,7 +12,7 @@ executable: false The `agentsfleet` API lets your software create, inspect, and control fleets. Send requests to `https://api.agentsfleet.net`. -The linked OpenAPI file describes every path, request body, response, and status code. +The OpenAPI file lists the available routes, inputs, responses, and status codes. ## Why it exists @@ -20,10 +20,11 @@ Use the API when a script or service needs direct access. Use the command-line c ## How it behaves +### Authenticate + Most paths accept a bearer token in the `Authorization` header. Tenant API keys start with `agt_t` and are shown once when created. -The dashboard's **Security** page combines account API keys and active sessions. -Your account avatar shows the current image when available, with your email on hover. +Manage keys and active sessions on the dashboard's **Security** page. Key lists show a recorded four-character suffix for recognition; older keys can have no recorded suffix. The suffix cannot authenticate a request, and the original key cannot be recovered from it. @@ -41,6 +42,8 @@ After that ceiling, session verification returns HTTP `503` with `UZ-AUTH-004` u Webhook and connector paths use provider signatures instead of bearer tokens. The OpenAPI security section on each operation states the required method. +### List fleets + To list fleets, copy `` from `agentsfleet workspace list`. Replace `` with a key that has `fleet:read` access to that workspace. Create keys under **Settings → Security → Create API key** in the dashboard. @@ -53,11 +56,14 @@ curl "https://api.agentsfleet.net/v1/workspaces//fleets" -H "Autho ``` -A successful response contains `items`, `total`, and `next_cursor`. -These values depend on your workspace. A fake or expired key returns an authentication error. +Read fleets from `items`. When `next_cursor` has a value, use it to fetch the next page. + +### Read an error Errors use the HTTP problem details format. Each product error includes an `error_code`, a `request_id`, and a documentation URL. +### Identifiers and timestamps + Identifiers use version 7 Universally Unique Identifiers (UUIDs). Timestamps are Request for Comments (RFC) 3339 strings in Coordinated Universal Time (UTC), such as `2026-10-17T18:06:49.123Z`. A whole second has no fraction, as in `2026-10-17T18:06:49Z`. Compare timestamps after parsing them, because text order is not time order. @@ -67,6 +73,8 @@ A timestamp you send may use any RFC 3339 offset. It may carry at most milliseco The dashboard displays timestamps in your browser's timezone. Schedule expressions retain their declared timezone. +### Money amounts + Money amounts are whole nanodollars, written as decimal strings. One United States (US) dollar is `"1000000000"`. Every field whose name contains `_nanos` uses this form, including balances, charges, event costs, and model rates. Except for the balance below, a nanodollar string holds digits only, with no sign, no leading zero, and no decimal point. diff --git a/api-reference/scopes.mdx b/api-reference/scopes.mdx index d42fa69..ba5caa2 100644 --- a/api-reference/scopes.mdx +++ b/api-reference/scopes.mdx @@ -3,8 +3,8 @@ title: API scopes description: Permissions that an agentsfleet access token can carry. type: reference audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -36,8 +36,8 @@ A valid key without `fleet:read` returns this scope error. The fake token above | Scope | Effect | Included by | |---|---|---| -| `fleet:read` | Reads fleets, events, and memory. | `fleet:write`, `fleet:admin` | -| `fleet:write` | Creates, updates, and messages fleets. Also reads and writes your own private drafts. | `fleet:admin` | +| `fleet:read` | Reads fleets, turns, memory, and triggers. | `fleet:write`, `fleet:admin` | +| `fleet:write` | Creates and updates fleets, sends messages, and removes fleet triggers. | `fleet:admin` | | `fleet:admin` | Deletes fleets. | None | | `secret:read` | Lists secret names and metadata. | `secret:write` | | `secret:write` | Creates, rotates, and deletes secrets. Deleting a secret named for a connector also needs `connector:write`. | None | @@ -50,23 +50,18 @@ A valid key without `fleet:read` returns this scope error. The fake token above | `connector:write` | Starts a connector setup flow and disconnects a connector, including by deleting its secret. | None | | `billing:read` | Reads the tenant balance and charges. | None | | `workspace:admin` | Creates and lists workspaces. | None | -| `plugin:write` | Publishes a reviewed draft as an account-owned Plugin or revision, and removes a Plugin your account owns. | None | | `approval:read` | Reads pending approvals. | `approval:resolve` | | `approval:resolve` | Approves or denies a request. | None | -`agentsfleet fleet approvals` uses these scopes. Listing needs `approval:read`; approving or denying needs `approval:resolve`. +List pending requests with `approval:read`. Approving or denying also needs a person's signed-in session and `approval:resolve`. Operator tokens may carry `runner:*`, `platform-key:*`, `model:*`, or `workspace:any`. Tenant integrations do not need these scopes. -`plugin:write` replaces `library:write`. Platform library publication and its scopes are removed, with no compatibility aliases. - ## Errors ### UZ-AUTH-022: Insufficient scope -The token lacks the scope named in `detail`. Create a new key with that scope, then retry the request. - -Do not add unrelated scopes. A narrower key limits the effect of a leaked key. +Read the missing scope in `detail`. Use a credential that has that scope and only the other permissions your task needs. ## Related pages diff --git a/billing/budgets.mdx b/billing/budgets.mdx index 4c04506..11807ca 100644 --- a/billing/budgets.mdx +++ b/billing/budgets.mdx @@ -1,151 +1,65 @@ --- -title: Fleet budgets -description: Daily and monthly spending limits for one fleet. +title: Credits and usage +description: Understand how fleet runs spend your account balance and read usage. type: explanation audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What it is -A fleet budget limits how much one fleet can spend. The fleet author sets the budget in `budget` under `config["x-agentsfleet"]` in the fleet's Definition. - -```json -{ - "budget": { - "daily_nanos": "5000000000", - "monthly_nanos": "29000000000" - } -} -``` - -Each limit is a decimal string of whole nanodollars. One dollar is `"1000000000"`, so the example allows 5 dollars a day and 29 dollars a month. - -`daily_nanos` is required. `monthly_nanos` is optional; leave it out for no monthly limit. +An account has one credit balance shared by its workspaces. Each fleet run records model usage and time. The account that owns the fleet's workspace pays these charges. ## Why it exists -Every workspace in one account shares the same credit balance. A fleet budget stops one fleet from draining that shared balance. - -Open the account menu to see your available balance and choose **Usage** for recorded charges. -The expanded desktop sidebar also shows a **Credits** link to Usage. - -The fleet owns its budget. Applying a reviewed setup change replaces the limits, and deleting the fleet removes them. +The balance lets you track and limit total account spending. Open **Usage** from the account menu or use the **Credits** link in the desktop sidebar. ## How it behaves -The daily limit covers a rolling 24-hour window. The monthly limit covers one Coordinated Universal Time (UTC) calendar month. - -`agentsfleet` checks the limits before a run and while the run continues. A reached limit blocks new work and stops an active run at its next billing check. - -A blocked event does not retry. Raise the limit in an improvement chat, apply the change, and send a new event. +### How a run is charged -The fleet, memory, and activity stream survive a budget stop. A stopped run has no final result. +The server checks the account balance before assigning a run and checks it again during the run. It records model requests and runtime as separate charge lines. -### What a budget counts +When you use the platform model, agentsfleet charges for model usage and runtime. When you use your own provider key, the provider bills its tokens and agentsfleet charges for runtime. -A budget counts only the fleet's own runs. The setup chat that wrote or changed the fleet is charged to the workspace owner's balance, not to the fleet's budget. - -While billing is available, a limit is checked before each run and at each renewal while it runs. A run already in progress can pass its limit by up to one renewal of usage before it stops. - -If billing cannot answer, work continues and can exceed that bound. The full charge is settled later. +Stopping a run ends its remaining work. Usage it already recorded is still charged. ### Review your spending -Open **Usage** in the account menu to see confirmed charges across your account's workspaces. -These are called **settled charges**. - -Choose a named month, such as **November 2026**, or **Last 7 days**, then filter by fleet. -**All Fleets** includes setup usage and saved-fleet usage; individual fleets follow it in the dropdown. - -The dashboard displays report ranges in your browser's timezone. - -The totals cover all matching usage in the selected period. -**By fleet** groups settled charges by fleet and shows its recorded models. - -**Daily spend** shows complete daily totals from the report, including days with no settled charges. -The server supplies complete UTC calendar buckets; the browser formats the displayed range bounds. - -Setup usage never exposes private draft titles or messages. - -Input tokens are pieces of text the model reads; output tokens are pieces it writes. -The report retains recorded model identities and exact charges. -When a model name is unavailable, Usage shows its recorded identifier. +Choose a period and fleet in **Usage**. **By fleet** groups costs across your workspaces, and **Daily spend** shows daily totals. Charges retain the fleet name recorded at the time. -Each report includes charges confirmed by the time it was opened. -Pending usage stays outside its totals; newer reports can include charges confirmed later. -Missing usage information does not mean that usage was free. +Read the current balance and usage from the terminal. -Changing a filter starts a new report. - -If loading fails, use **Retry report**. -A loading error is shown as an error, rather than as zero spending. +```bash +agentsfleet usage show +``` -Usage has no Add credit action while its design is being prepared. +```text + +``` ### Read charges through the API - -The reporting API changes below are coming soon. -Upgrade the dashboard and server together before using the updated response. -The API reference still describes the current server. - - -`GET /v1/tenants/me/billing/reports/current` returns the report. -The report accepts `period`, `fleet_id`, `activity_type` and `through_at`. - -`period` defaults to `month`; `today` and `week` select today or seven calendar days. -Reporting periods use UTC, and `through_at` is an inclusive cutoff that defaults to now. -The report covers every whole UTC day through that cutoff. - -A current-month request omits `through_at`. -To read a past month, set `through_at` to that month's last UTC millisecond. - -Omit fleet and activity filters to include fleet work and setup usage. -`fleet_id` selects one fleet's runtime usage; `activity_type=setup` selects setup usage. -Use `activity_type=runtime` for fleet work only. - -Read settled daily amounts from `daily` and fleet/model groups from `spending`. -Period and fleet totals include `activity_count`; daily and model totals omit it. -Each activity counts one settled fleet run or setup attempt. +| Request | Result | +|---|---| +| `GET /v1/tenants/me/billing` | The account balance | +| `GET /v1/tenants/me/billing/reports/current` | Totals, groups by fleet, and daily amounts | +| `GET /v1/tenants/me/billing/charges` | Individual recorded charges, newest first | -`agentsfleet` records each provider request and each billed stretch of runtime separately. -`GET /v1/tenants/me/billing/charges` returns those individual records. -Both billing reads require `billing:read` and use your signed-in account. +These requests need `billing:read`. The report accepts `period`, `fleet_id`, `activity_type`, and `through_at`. Use `runtime` if you set `activity_type`. -Use the response's `next_cursor` as `cursor` for later charge pages. -`limit` defaults to 50 records and accepts 1 through 200. - -Some older charges combine model use and run time in one amount. -The API keeps that recorded amount because separate historical prices are unavailable. - -Each request is priced at the rate in effect when it was made, and at the tier its whole prompt falls in. Cached reads, cache writes, and output each use their own rate. - -Each token category on a line is rounded up to a whole nanodollar on its own. A line can cost at most one nanodollar more per category than the exact amount, and never less. - -Under a self-managed provider key, your provider bills the tokens and `agentsfleet` charges run time only. - -Charges recorded during a billing outage settle once billing answers again. - -Settlement charges the full amount and can take your balance below zero. New credit repays that debt before any remainder becomes spendable. +Periods use Coordinated Universal Time (UTC). `through_at` is an inclusive cutoff. Amounts are integer nanodollar strings, with 1,000,000,000 nanodollars per dollar. ## Limits -| Field | Default | Unit | Valid range | -|---|---|---|---| -| `daily_nanos` | None; required | Nanodollars per rolling 24 hours | `"1"` through `"1000000000000"`, which is `$1,000` | -| `monthly_nanos` | None | Nanodollars per UTC month | `"1"` through `"10000000000000"`, which is `$10,000` | - -Zero, signs, decimal points, exponents, and numbers outside the range are refused. A JSON number in place of the string is refused too. - -An invalid budget blocks review and Save with `UZ-REQ-001`. A stored budget that cannot be read blocks the next run. +One balance covers all fleets in the account. Parallel runs can spend more before the next balance check, and a charge can take the account below zero. -`UZ-RUN-015` marks a budget stop during a run. -The event's recorded failure class is `budget_breach`. +New work is refused when the balance falls below the required floor. Credit added later first repays outstanding charges. ## Related pages -- [Author a fleet](/fleets/authoring) +- [Model providers](/fleets/model-providers) +- [Fleet overview](/fleets/overview) - [Error codes](/api-reference/error-codes) diff --git a/changelog.mdx b/changelog.mdx index bab9243..35fc770 100644 --- a/changelog.mdx +++ b/changelog.mdx @@ -7,6 +7,24 @@ description: "Product changes and upgrade notes." agentsfleet is in **stealth-mode testing** and pre-production. APIs and agent behavior may change between releases without long deprecation windows. Email [agentsfleet@agentmail.to](mailto:agentsfleet@agentmail.to) if you want a hand calibrating an agent or to join as a design partner. + + ## New fleet model and Orbit controls + + When a default model is available, New fleet names it before you send the first message. + + ## API reference + + - **Fleet creation** — Send the first message in `POST /v1/workspaces/{workspace_id}/fleets` to start a fleet. + + ## Bug fixes + + - **Model selection** — The composer uses the workspace owner's selection. If the owner has no selected model, it uses the shared platform default. + + ## CLI + + - **Orbit** — Collect stars, build a rally, and toggle arcade sounds with **S**. See the [game controls](/cli/agentsfleet#terminal-pet). + + ## One clock for runners diff --git a/cli/agentsfleet.mdx b/cli/agentsfleet.mdx index 8a35ddc..57a375e 100644 --- a/cli/agentsfleet.mdx +++ b/cli/agentsfleet.mdx @@ -3,8 +3,8 @@ title: Command reference description: Commands available in the agentsfleet command-line client. type: reference audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -30,14 +30,14 @@ The server checks the signed-in credential’s scopes on every request. A comman | Command group | Purpose | Required scopes | |---|---|---| -| `agentsfleet platform keys` | Inspect or set the platform default provider and model. Stored keys stay hidden. | `platform-key:read` for list; `platform-key:admin` for set/delete | +| `agentsfleet platform models default` | Inspect or set the platform default provider and model. Stored keys stay hidden. | `platform-key:read` for list; `platform-key:admin` for set/delete | | `agentsfleet platform models` | List, inspect and maintain the priced model catalogue. | `model:read` for reads; `model:admin` for writes | -| `agentsfleet platform runners` | Inspect hosts, enroll them, update policy and manage their lifecycle. | `runner:read`, `runner:enroll` or `runner:write`, according to the operation | +| `agentsfleet platform runners` | Inspect hosts, enroll them, update policy and manage their lifecycle. | `runner:read`, `runner:register` or `runner:write`, according to the operation | Choose a catalogued model backed by an existing provider credential in the named workspace: ```bash -agentsfleet platform keys use --provider --workspace --model +agentsfleet platform models default use --provider --workspace --model ``` ```text @@ -49,7 +49,7 @@ Active Yes The command confirms the stored default metadata without revealing the key. -`--api-key-stdin` accepts a piped key and also requires workspace ownership and `secret:write`. `--replace` replaces an existing named credential and requires `--api-key-stdin`. Use `agentsfleet platform keys list` to inspect the result. +Use `agentsfleet platform models default list` to check the result. Save the provider's key in the workspace before selecting it. ## Example with output @@ -71,7 +71,6 @@ FLAGS SUBCOMMANDS login Authenticate via browser - chat Create, resume, and review a private workspace chat fleet Fleet management subcommands ``` @@ -175,24 +174,27 @@ Manual sign-in requires terminal input, so omit `--no-input`. ### Terminal pet -Watch Orbit, your terminal jellyfish, float, work and celebrate for five seconds. +Run Orbit, a local paddle game, in an interactive terminal. ```bash agentsfleet pet ``` ```text -Orbit appears while a Platform request is running. +Space serve S sound off ``` -The animation plays above that final message. Press **Ctrl+C** to stop the preview. +Press **Space** to serve. Move the paddle with the arrow keys or **A** and **D**. Press **R** to restart or **Q** to quit. -The full preview needs at least 61 columns and 20 rows. Small terminals and terminals without color use a compact jellyfish. +You get three lives. Collect stars for 50 bonus points. Each return in a rally earns more points, and the ball speeds up as you return it. -Resizing the terminal stops the full preview's redraws; the final message still appears. -Set `AGENTSFLEET_REDUCED_MOTION=1` for a static display. +Restarting keeps your best score for the current session. Press **S** to toggle the sound effects, which start off. Orbit uses the terminal bell if a sound file cannot play. -The preview needs no sign-in and makes no API request. Orbit also appears during Platform administration requests. +The court needs at least 35 columns and 14 rows. Resizing the terminal ends the game. Run `agentsfleet pet` again to start over. + +The game makes no API requests and requires no sign-in. + +The request loader shows a bouncing ball. Set `AGENTSFLEET_REDUCED_MOTION=1` for a static request status. ```bash agentsfleet pet --json @@ -204,7 +206,7 @@ agentsfleet pet --json } ``` -Piped output returns that same JSON object without animation. +Piped output returns the same JSON object. ### Workspaces and access @@ -224,187 +226,50 @@ Piped output returns that same JSON object without animation. ### Chat -`agentsfleet chat` creates, resumes, and reviews a private draft. It is the only way to create a fleet or a plugin from the terminal. Only the person who starts a draft can read it. - -| Command | Effect | -|---|---| -| `agentsfleet chat --model ` | Starts a blank draft and opens an interactive chat. | -| `agentsfleet chat ` | Resumes a draft and prints its earlier messages. | -| `agentsfleet chat --definition --model ` | Starts a draft from a Definition JSON file, with no chat message. | -| `agentsfleet chat --plugin --revision --model ` | Starts a draft from one plugin revision, with no chat message. | -| `agentsfleet chat --fleet --setup-revision --model ` | Starts a draft that improves an existing fleet, with no chat message. | -| `agentsfleet chat list` | Lists one page of your setup chats, most recently updated first. | -| `agentsfleet chat rename ` | Renames an open, idle setup chat. The saved fleet keeps its name. | -| `agentsfleet chat delete <DRAFT_ID>` | Deletes a setup chat and its private messages after you confirm. Saved fleets keep running. | - -`<MODEL_REF>` is the `ref` of an authoring model from `GET /v1/workspaces/{workspace_id}/models?purpose=authoring`. `<SETUP_REVISION>` is the fleet's `setup_revision` field from `agentsfleet --json fleet show <FLEET_ID>`. - -In an interactive chat, ordinary text is a message. These actions start with `/`: - -| Slash command | Effect | -|---|---| -| `/review [INSTANCE_NAME]` | Prints the full setup, its required access, its readiness checks, and its review digest. The name selects the fleet name. | -| `/save` | Saves the reviewed setup as a new fleet. | -| `/run <MESSAGE>` | Saves the reviewed setup and sends the fleet `<MESSAGE>` once. | -| `/publish <LABEL>` | Publishes the reviewed setup as a plugin. | -| `/apply` | Applies the reviewed improvement to its source fleet. | -| `/model <MODEL_REF>` | Changes the authoring model for later messages. | -| `/stop` | Cancels every accepted message in the draft that has not finished. Ctrl+C stops the reply you are following. | -| `/retry` | Repeats the last action whose outcome was unknown. | -| `/delete` | Deletes the draft and its private messages. | -| `/quit` | Leaves the chat. The draft stays for `agentsfleet chat <DRAFT_ID>`. | - -Save, publish, and apply each use only the setup you last reviewed. A message after a review needs a new review first. - -Text reviews group **Configuration** and **Required access** into readable, indented sections. -Empty sections say **None**. -Use `--json` for the complete structured review. - -<Note>Completion questions and saved success criteria are coming soon.</Note> - -When the proposal includes success criteria, `/review` prints **What counts as done?** with each question and its **Yes** and **No** meanings. - -Ask setup chat to revise them, review again, then save or apply a new version. -Work already started keeps its saved success criteria. - -Outside a terminal, add `--no-input` and name every action as a flag. This pair reviews a Definition, then saves it with the digest the review printed: +Start a fleet by sending its first message. ```bash -agentsfleet chat --definition <PATH> --model <MODEL_REF> --no-input --review --name <NAME> +agentsfleet fleet create "Check the nightly health report" --name nightly-health ``` ```text -✓ Draft <DRAFT_ID> created -Instance: <NAME> -<varies> -Review digest: <DIGEST> -``` - -```bash -agentsfleet chat <DRAFT_ID> --no-input --save --name <NAME> --review-digest <DIGEST> -``` - -```text -<varies> -✓ Fleet <NAME>: active -``` - -| Option | Effect | Default | Unit or range | -|---|---|---|---| -| `--model <MODEL_REF>` | Selects the authoring model for a new draft. Required unless you resume a draft. | None | Model reference | -| `--message <TEXT>` | Sends one chat message and follows its reply. | None | 1 to 32,768 bytes | -| `--definition <PATH>` | Starts from a Definition JSON file. | None | Readable file, at most 128 KiB | -| `--plugin <PLUGIN_ID>` | Starts from a plugin. Needs `--revision`. | None | Plugin identifier | -| `--revision <REVISION_ID>` | Selects the exact plugin revision. | None | Revision identifier | -| `--fleet <FLEET_ID>` | Starts an improvement of an existing fleet. Needs `--setup-revision`. | None | Fleet identifier | -| `--setup-revision <SETUP_REVISION>` | Selects the fleet setup revision to improve. | None | Positive whole number | -| `--no-input` | Runs only the actions you name, with no prompt. | `false` | Boolean | -| `--review` | Prints the full setup, access, readiness, and review digest. | `false` | Boolean | -| `--name <NAME>` | Selects the fleet name before the review. | The draft's current fleet name | Lowercase letters, digits, and hyphens | -| `--review-digest <DIGEST>` | The digest of the review you inspected. Required with `--save`, `--apply`, and `--publish`. | None | Digest text | -| `--save` | Saves the reviewed setup as a new fleet. | `false` | Boolean | -| `--run-now <TEXT>` | With `--save`, sends the new fleet this message once. | None | 1 to 32,768 bytes | -| `--apply` | Applies the reviewed improvement to its source fleet. | `false` | Boolean | -| `--publish <LABEL>` | Publishes the reviewed setup as a plugin with this label. | None | 1 to 100 characters | -| `--publish-to <PLUGIN_ID>` | With `--publish`, adds a revision to this owned plugin instead. | None | Plugin identifier | -| `--plugin-etag <ETAG>` | The plugin tag you inspected. Required with `--publish-to`. | None | Entity tag | -| `--stop` | Cancels every accepted message in the draft that has not finished. | `false` | Boolean | -| `--operation-id <ID>` | Retries an action whose outcome was unknown, under its first identity. | None | Identifier the client printed, usable for 24 hours | -| `--candidate-id <ID>` | With `--operation-id`, names the setup the retried Save, Apply, or publish used. | None | Identifier the client printed | -| `--setup-etag <ETAG>` | With `--operation-id` and `--apply`, names the fleet setup tag you inspected. | None | Identifier the client printed | - -One invocation takes one source and at most one of `--save`, `--apply`, and `--publish`. A digest that does not match the current review is refused with exit code `4`. - -A Save that leaves the fleet `installing` prints each waiting check and exits with code `1`. A Save, Apply, or publish whose reply was lost prints the `--operation-id` and `--candidate-id` values to retry with. - -#### List, rename, and delete setup chats - -`agentsfleet chat list` reads one page per run, most recently updated first. It prints `TITLE`, `CHAT`, `STATUS`, `VERSIONS`, and `UPDATED`. - -```bash -agentsfleet chat list --search "health check" +✓ Started fleet nightly-health (<FLEET_ID>). First turn <TURN_ID>: <varies>. +Talk to it with: agentsfleet fleet steer <FLEET_ID> ``` -```text -TITLE CHAT STATUS VERSIONS UPDATED -<varies> -More chats available. Repeat this list with --cursor <TOKEN> and the same filters. -``` - -`STATUS` reads `In progress`, `Setup ready`, `Saving fleet`, `Fleet saved`, or `Chat closed`. `VERSIONS` lists the recorded `Proposed`, `Saved`, and `Published` versions, such as `Proposed v3 · Saved v2`. - -To read the next page, run the same command with `--cursor <TOKEN>`. `<TOKEN>` is the value the previous page printed. A page with no rows reads `No setup chats match this list.` - -| Option | Effect | Default | Unit or range | -|---|---|---|---| -| `--search <TEXT>` | Matches your chat titles and message text, ignoring case. Leading and trailing spaces are trimmed. | None | 1 to 200 characters, no null (NUL) character | -| `--limit <COUNT>` | Sets the page size. | `50` | Integer, 1 to 100 | -| `--cursor <TOKEN>` | Reads the page after the one that printed this token. The token works only with the same filters. | None | Token the previous page printed | -| `--state <STATE>` | Lists only chats in this state. | All states | `editing`, `saving`, or `closed` | -| `--fleet <FLEET_ID>` | Lists only chats linked to this fleet. | None | Fleet identifier | -| `--workspace <WORKSPACE_ID>` | Targets a workspace other than the active one. | Active workspace | Workspace identifier | - -With `--json`, the command prints the server's page as returned, with `items` and `next_cursor`. - -`agentsfleet chat rename <DRAFT_ID> <TITLE>` sets a new title. `<TITLE>` is trimmed and must hold 1 to 100 characters, with no NUL character. A busy or closed chat fails with `UZ-AUTHOR-002`, and nothing changes. - -```bash -agentsfleet chat rename <DRAFT_ID> "Nightly health check" -``` - -```text -✓ Renamed setup chat to Nightly health check -``` - -<Warning> - `agentsfleet chat delete` removes the chat's private messages for good. It has no dry-run option. -</Warning> - -`agentsfleet chat delete <DRAFT_ID>` deletes the chat at once. It asks no question and takes no `--yes` flag. - -```bash -agentsfleet chat delete <DRAFT_ID> -``` +| Option | Effect | Default | +|---|---|---| +| `--name <NAME>` | Names the fleet. | A name based on the fleet identifier | +| `--model <REF>` | Selects an eligible `items[].ref` from `GET /v1/workspaces/{workspace_id}/models?purpose=runtime`. | The workspace default model | -```text -✓ Deleted setup chat <DRAFT_ID>. Saved fleets keep running. -``` +With `--json`, creation prints `fleet_id` and `turn_id`. +Run `agentsfleet fleet steer @nightly-health` without a message to open an interactive chat with the fleet. -Both commands accept `--workspace <WORKSPACE_ID>`. +The private draft and Plugin commands are retired. [Retired Plugins](/fleets/library) describes the change. ### Fleets | Command | Effect | |---|---| -| `agentsfleet plugins` | Lists the Plugins your account owns. | -| `agentsfleet plugins list` | Lists only the plugins your account owns. | -| `agentsfleet plugins delete <PLUGIN_ID>` | Removes one plugin your account owns, with its revision history. Fleets saved from it keep running. | +| `agentsfleet fleet create <MESSAGE>` | Creates the fleet and sends its first message. | | `agentsfleet fleet show <FLEET_ID>` | Shows one fleet. | | `agentsfleet fleet list` | Lists fleets in the active workspace. `--starting-after <CURSOR>` fetches the next page. With `--json`, it prints the server's page as returned. | | `agentsfleet fleet status` | Shows every fleet in the active workspace, including how many approvals each one is waiting on. It takes no identifier — use `agentsfleet fleet show <FLEET_ID>` for one fleet. | -| `agentsfleet fleet activate <FLEET_ID>` | Checks an `installing` fleet's setup again and activates it when every check passes. While a check still fails, it prints `installing` and the `agentsfleet fleet show` command to run. An archived fleet returns `UZ-AGT-020`. | -| `agentsfleet fleet archive <FLEET_ID>` | Cancels live work and setup, and keeps the fleet's history readable. This cannot be undone. On an `installing` fleet, it also returns the draft to editing. | +| `agentsfleet fleet archive <FLEET_ID>` | Cancels live work and keeps the fleet's history readable. Archiving is permanent. | | `agentsfleet fleet delete <FLEET_ID>` | Deletes a fleet in any status, with its history and stored data. It cancels live work first. This cannot be undone. | | `agentsfleet fleet logs [FLEET_ID]` | Shows recent activity. | -| `agentsfleet fleet events <FLEET_ID>` | Lists historical events with filters. | -| `agentsfleet fleet steer <FLEET_ID> [MESSAGE]` | Sends a message and streams the response. If the stream drops, it reads that exact event for up to 60 seconds, until the event finishes. | +| `agentsfleet fleet turns <FLEET_ID>` | Lists the fleet's past messages and replies. | +| `agentsfleet fleet steer <FLEET_ID> [MESSAGE]` | Sends a message and streams the reply. Omit the message in a terminal to open chat. Use the fleet identifier or `@NAME`. | | `agentsfleet fleet grants list --fleet <FLEET_ID>` | Lists integration grants for one fleet. | | `agentsfleet fleet grants revoke --fleet <FLEET_ID> <GRANT_ID>` | Revokes one grant. Later access through that grant fails. | Press **Ctrl+C** to stop local waiting and HTTP retries. An accepted message can keep running on the fleet. -Inspect `agentsfleet fleet events <FLEET_ID>` before sending the message again. +Inspect `agentsfleet fleet turns <FLEET_ID>` before sending the message again. Event polling reports permanent access or request errors immediately; its timeout also bounds an active read. `agentsfleet fleet archive` and `agentsfleet fleet delete` have no dry-run option. Check the fleet identifier with `agentsfleet fleet show <FLEET_ID>` first. -`agentsfleet plugins` and `agentsfleet plugins list` read the same account-owned collection. -Platform Plugin publication is removed, along with its commands and scopes. - -`agentsfleet plugins delete` removes a plugin permanently. Removing another account's Plugin or one already gone answers `UZ-AUTHOR-001` and exits with code `3`. - -Fleets and plugins come only from reviewed chat drafts. The file, GitHub, and template import commands, `agentsfleet install`, and `agentsfleet fleet update` were removed; `agentsfleet chat` replaces them. - ### Approvals | Command | Effect | @@ -413,12 +278,12 @@ Fleets and plugins come only from reviewed chat drafts. The file, GitHub, and te | `agentsfleet fleet approvals list --fleet <FLEET_ID>` | Lists the waiting gates for one fleet. | | `agentsfleet fleet approvals show <GATE_ID>` | Shows one gate, including the reach an approval grants. | | `agentsfleet fleet approvals approve <GATE_ID>` | Approves the gate. The parked run continues. | -| `agentsfleet fleet approvals deny <GATE_ID>` | Denies the gate. The parked run ends without the access it asked for. | +| `agentsfleet fleet approvals deny <GATE_ID>` | Denies the request. Work resumes without the requested access. | If the list reaches its page limit with more results available, the command reports an incomplete list. Narrow the request with `agentsfleet fleet approvals list --fleet <FLEET_ID>`. -Saving a fleet that declares a mintable credential opens an integration grant for approval. An approved grant covers repository writes until it is revoked. Rules declared under `gates` can also ask for approval during a run; a waiting gate parks that run until someone decides it. +A running fleet uses `request_access` when it needs a credential. A signed-in person can review the scope and approve or deny the request. Work resumes with the access the person granted. See [Approvals](/fleets/approvals) for the scope of each decision and how to revoke a grant. @@ -517,9 +382,7 @@ The server still validates the credential. | `agentsfleet models current` | Shows the active model provider. | | `agentsfleet models use --secret <NAME>` | Selects a self-managed provider secret. | | `agentsfleet models reset` | Returns the tenant to the platform provider. | -| `agentsfleet usage show` | Shows the tenant balance, fleet-run costs, and settled setup-chat costs. | - -Billing includes paid failed setup attempts. The setup column shows these costs, with a work identifier for each setup attempt. +| `agentsfleet usage show` | Shows the account balance and recorded fleet-run charges. | `--limit <COUNT>` reads 1 to 100 charge records per page, with a default of 10. Any value that is not a whole number in that range is refused with exit code `4`. Use the returned `next_cursor` as `<TOKEN>` in `--cursor <TOKEN>` to read the next page. @@ -542,9 +405,11 @@ Login reports network and API sign-in failures with exit code `1`. A rejected invocation is answered before any request is sent. The form is always the same: what is wrong, then the command that puts it right. What is wrong may be an absent argument, a value that failed validation, or an unrecognized command. ``` -$ agentsfleet fleet events -✕ error: missing required argument 'fleet_id' - Suggestion: usage: agentsfleet fleet events [options] <fleet_id> +$ agentsfleet fleet turns +✕ error: Missing required argument: fleet_id + code MISSING_ARGUMENT + usage agentsfleet fleet turns [options] <fleet_id> + suggestion run `agentsfleet fleet turns --help` for its arguments and flags ``` Under `--json` the same rejection is a parseable envelope on standard error, carrying a stable `code` you can switch on: @@ -553,7 +418,7 @@ Under `--json` the same rejection is a parseable envelope on standard error, car { "error": { "code": "MISSING_ARGUMENT", - "message": "missing required argument 'fleet_id'" + "message": "Missing required argument: fleet_id" } } ``` @@ -562,7 +427,7 @@ The codes are `MISSING_ARGUMENT`, `MISSING_OPTION_VALUE`, `MISSING_REQUIRED_OPTI API failures include a stable error code and request identifier when the server supplies them. Use both values when reporting a problem. -A server failure is reported with the message the server wrote for a reader, not with its internal detail text. A Save refused after a setup change reads `This setup changed. Review it before saving.` in place of the server's detail text. +A server failure displays the API's reader-facing message. The [error registry](/api-reference/error-codes) lists the message each code carries. @@ -571,7 +436,6 @@ The [error registry](/api-reference/error-codes) lists the message each code car - [Install the client](/cli/install) - [Global options](/cli/flags) - [Client configuration](/cli/configuration) -- [Author a fleet](/fleets/authoring) -- [Plugins](/fleets/library) +- [Retired Plugins](/fleets/library) - [Approve a waiting run](/fleets/approvals) - [Quickstart](/quickstart) diff --git a/cli/configuration.mdx b/cli/configuration.mdx index d668b2a..66f3478 100644 --- a/cli/configuration.mdx +++ b/cli/configuration.mdx @@ -3,8 +3,8 @@ title: Client configuration description: Environment variables and value order for the agentsfleet client. type: reference audience: user -verified: 2026-10-24 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -42,7 +42,7 @@ AGENTSFLEET_API_URL=https://api.agentsfleet.net agentsfleet --version | `AGENTSFLEET_API_KEY` | Authenticates every request and overrides saved login data. Nothing is written to disk. | None | Valid tenant API key starting with `agt_t` | | `AGENTSFLEET_STATE_DIR` | Stores local credentials, settings, and telemetry consent. | `~/.config/agentsfleet` | Writable directory path | | `NO_COLOR` | Disables color when set to a nonempty value. | Unset | Any nonempty text | -| `AGENTSFLEET_REDUCED_MOTION` | Uses a static pet and request status when set to a nonempty value. | Unset | Any nonempty text | +| `AGENTSFLEET_REDUCED_MOTION` | Uses a static request status when set to a nonempty value. | Unset | Any nonempty text | | `AGENTSFLEET_TELEMETRY_DISABLED` | Disables usage telemetry when set to `1`. | Unset | `1` or unset | | `DO_NOT_TRACK` | Disables usage telemetry when set to `1`. | Unset | `1` or unset | | `AGENTSFLEET_TELEMETRY_DEBUG` | Prints telemetry details to standard error when set to `1`. | Unset | `1` or unset | diff --git a/cli/flags.mdx b/cli/flags.mdx index 43eb706..4ce9a55 100644 --- a/cli/flags.mdx +++ b/cli/flags.mdx @@ -3,8 +3,8 @@ title: Global options description: Options accepted by the agentsfleet command-line client. type: reference audience: user -verified: 2026-10-25 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: true --- @@ -16,7 +16,7 @@ Place a global option before or after an `agentsfleet` command. agentsfleet [GLOBAL_OPTIONS] <COMMAND> ``` -`<COMMAND>` comes from `agentsfleet --help`. `GLOBAL_OPTIONS` contains any option from the table below. +Run `agentsfleet --help` to find the command. The table lists the global options you can use with it. ## Example with output @@ -36,6 +36,8 @@ agentsfleet --version | `--api <URL>` | Sends API requests to this base URL. | `https://api.agentsfleet.net` | URL beginning with `http://` or `https://` | | `--json` | Prints machine-readable JSON when the command supports it. | `false` | Boolean | | `-h`, `--help` | Prints help and exits. | `false` | Boolean | +| `--log-level <LEVEL>` | Sets which log messages the client prints. | Service default | Level such as `info`, `warn`, or `error` | +| `--completions <SHELL>` | Prints the completion script for your shell. | Unset | `bash`, `zsh`, `fish`, `powershell`, `sh`, or `pwsh` | `--no-open`, `--no-input`, `--force`, and `--token-name` belong to `agentsfleet login`. Write them after the command name. See diff --git a/cli/install.mdx b/cli/install.mdx index 0184010..0cb47fc 100644 --- a/cli/install.mdx +++ b/cli/install.mdx @@ -3,8 +3,8 @@ title: Install the client description: Install and remove the agentsfleet command-line client. type: how-to audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: true --- @@ -14,7 +14,7 @@ This installs the `agentsfleet` command-line client. You can then manage fleets ## Before you begin -Install Bun 1.4 or later. The `agentsfleet` command runs on Bun. +Install Bun 1.4.5 or later. The `agentsfleet` command runs on Bun. ## Steps @@ -59,7 +59,7 @@ It fails if you have not selected a workspace. See the If `agentsfleet` is not found, reopen the terminal. Also check that Bun's global binary directory, `~/.bun/bin`, is in your `PATH`. -If the command reports that `bun` was not found, install Bun 1.4 or later and reopen the terminal. +If the command reports that `bun` was not found, install Bun 1.4.5 or later and reopen the terminal. ## Remove or undo diff --git a/concepts.mdx b/concepts.mdx index e4d67ae..75d7c0e 100644 --- a/concepts.mdx +++ b/concepts.mdx @@ -3,18 +3,18 @@ title: How agentsfleet works description: Learn how a fleet turns a message or event into a result. type: explanation audience: user -verified: 2026-10-24 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What it is -A fleet follows saved instructions to handle repeated work. +A fleet follows your messages to handle repeated work. | Term | Meaning | |---|---| -| Fleet | A workspace-owned setup with instructions, triggers, tools, and spending limits. | +| Fleet | A worker in your workspace with a conversation, triggers, access grants, and memory. | | Trigger | What starts work, such as a message, webhook, or schedule. | | Event | One incoming delivery to the fleet. | | Run | The fleet's work on one event. | @@ -30,7 +30,7 @@ Workspace permissions control who can access the fleet. ## How it behaves -Describe a task in a private setup chat. Review the proposed instructions, access, and budget, then save the fleet. +Describe a task in **New fleet** and send the message. It creates the fleet and starts its first turn. A message or another declared trigger starts a run. The fleet uses its allowed tools and returns a result. Memory can keep useful information for later runs. @@ -39,8 +39,8 @@ Authorized workspace members can archive or delete a fleet. Archiving keeps its ## Limits -A fleet receives only its declared tools and secrets. [Network restrictions](/fleets/tools#how-it-behaves) depend on the tool and runner settings. -Budgets, account balance, and model limits can block new work. +A fleet receives only approved credentials. [Network restrictions](/fleets/tools#how-it-behaves) depend on the tool and runner settings. +A low account balance or an unavailable model can block new work. ## Related pages diff --git a/concepts/context-lifecycle.mdx b/concepts/context-lifecycle.mdx index 9ecf5d6..7460a76 100644 --- a/concepts/context-lifecycle.mdx +++ b/concepts/context-lifecycle.mdx @@ -3,8 +3,8 @@ title: Conversation context description: How long conversations keep working as older messages are summarized. type: explanation audience: user -verified: 2026-10-26 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -14,9 +14,7 @@ A model can use only a limited amount of conversation at once. That working space is its **context window**. When the window gets close to full, `agentsfleet` summarizes older messages and keeps recent messages ready for the next reply. -This works in setup chat and during fleet runs. - -Your original conversation and saved fleet instructions stay available. +Compaction works during a fleet run. Your original messages stay available in the fleet's chat. ## Why it exists @@ -27,7 +25,7 @@ This process is called **compaction**. ## How it behaves Compaction normally starts around 90 percent of the selected model's context window. -It can start sooner to leave room for a reply or to respect a smaller limit you chose. +It can start sooner to leave room for the reply. The summary is asked to keep the goal, decisions, findings and unfinished work. Tool requests stay with their results so the model can follow what happened. @@ -43,36 +41,20 @@ After a reconnect, the conversation reloads its saved history and clears tempora ### What carries over -Setup summaries stay private to the person who started the chat, within that workspace. -Saving a fleet keeps its reviewed instructions. -Later setup chats use the same summarizing behavior. - During a fleet run, summarizing continues the same run. A later event starts a new run. Chat follow-ups can include recent finished turns; see [what a follow-up keeps](/fleets/overview#what-a-follow-up-message-keeps). Workspace memory follows the fleet's access permissions. Account-wide memory is not available. -### Runtime options - -Models measure text in **tokens**, small pieces of text they read or write. -Set these options in `context` under `config["x-agentsfleet"]` in the fleet's Definition. - -| Option | Effect | Default | Valid range | -|---|---|---|---| -| `context_cap_tokens` | Requests a smaller working window, up to the selected model's limit. | Active model limit | `auto` or 0–4,294,967,295 tokens | -| `stage_chunk_threshold` | Starts summarizing at this fraction of the working window, capped at 90 percent. | `0.90` | `0.0` through `1.0` | -| `memory_checkpoint_every` | Saves pending fleet memory after this many tool calls. | `5` calls | `auto` or 0–4,294,967,295 calls | -| `tool_window` | Keeps the saved setting; compaction decides which complete tool exchanges stay in the working window. | `auto` | `auto` or 0–4,294,967,295 results | +### Model limits -`0` selects the default for each option. -The integer options also accept `auto`. -Changing `context_cap_tokens` never increases the model's context window. +Models measure input and output in tokens. Choose a model with enough context for your task. Its configured context window and output cap bound each request. ## Limits A summary can miss details. -Keep exact instructions in the saved fleet setup and save important findings in fleet memory. +Ask the fleet to pin important standing guidance and findings to memory. If summarizing fails or is cancelled, the current turn stops. The original messages and last complete summary stay available. @@ -84,5 +66,5 @@ Summarizing does not start another event or increase a spending limit. ## Related pages - [Memory](/memory) -- [Budgets](/billing/budgets) +- [Credits and usage](/billing/budgets) - [Author a fleet](/fleets/authoring) diff --git a/docs.json b/docs.json index 12e665b..5cf6be7 100644 --- a/docs.json +++ b/docs.json @@ -34,6 +34,10 @@ { "source": "/billing/plans", "destination": "/billing/budgets" + }, + { + "source": "/cli/platform", + "destination": "/cli/agentsfleet" } ], "navigation": { @@ -53,11 +57,10 @@ "group": "Work with fleets", "pages": [ "fleets/authoring", - "fleets/running", - "fleets/overview", - "fleets/library", "fleets/install", - "fleets/approvals" + "fleets/running", + "fleets/approvals", + "fleets/overview" ] }, { @@ -91,7 +94,8 @@ "group": "Help and updates", "pages": [ "fleets/troubleshooting", - "changelog" + "changelog", + "fleets/library" ] } ] @@ -124,8 +128,8 @@ "group": "Overview", "pages": [ "api-reference/introduction", - "api-reference/error-codes", - "api-reference/scopes" + "api-reference/scopes", + "api-reference/error-codes" ] }, { @@ -235,6 +239,10 @@ "GET /v1/runners/me/runs/{run_id}/fleets", "GET /v1/runners/me/runs/{run_id}/fleets/{fleet_id}/turns", "POST /v1/runners/me/runs/{run_id}/steers", + "POST /v1/runners/me/runs/{run_id}/access", + "GET /v1/runners/me/runs/{run_id}/triggers", + "POST /v1/runners/me/runs/{run_id}/triggers", + "DELETE /v1/runners/me/runs/{run_id}/triggers/{trigger_id}", "GET /v1/runners/me/runs/{run_id}/schedules", "POST /v1/runners/me/runs/{run_id}/schedules", "PATCH /v1/runners/me/runs/{run_id}/schedules/{schedule_id}", @@ -281,20 +289,6 @@ "GET /v1/workspaces/{workspace_id}/models" ] }, - { - "group": "Private setup chats", - "pages": [ - "GET /v1/workspaces/{workspace_id}/drafts", - "POST /v1/workspaces/{workspace_id}/drafts", - "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}", - "PATCH /v1/workspaces/{workspace_id}/drafts/{draft_id}", - "DELETE /v1/workspaces/{workspace_id}/drafts/{draft_id}", - "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}/messages", - "POST /v1/workspaces/{workspace_id}/drafts/{draft_id}/messages", - "PATCH /v1/workspaces/{workspace_id}/drafts/{draft_id}/turns/{turn_id}", - "GET /v1/workspaces/{workspace_id}/drafts/{draft_id}/turns/stream" - ] - }, { "group": "Secrets", "pages": [ @@ -329,12 +323,9 @@ "GET /v1/workspaces/{workspace_id}/fleets", "POST /v1/workspaces/{workspace_id}/fleets", "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/setup-context", "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}", "DELETE /v1/workspaces/{workspace_id}/fleets/{fleet_id}", - "POST /v1/workspaces/{workspace_id}/fleets/{fleet_id}/revisions", "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/memory-access", - "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/setup-context", "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks", "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks/{durable_task_id}", "PATCH /v1/workspaces/{workspace_id}/fleets/{fleet_id}/durable_tasks/{durable_task_id}" @@ -366,6 +357,13 @@ "POST /v1/ingress/qstash/schedules" ] }, + { + "group": "Fleet triggers", + "pages": [ + "GET /v1/workspaces/{workspace_id}/fleets/{fleet_id}/triggers", + "DELETE /v1/workspaces/{workspace_id}/fleets/{fleet_id}/triggers/{trigger_id}" + ] + }, { "group": "Fleet events", "pages": [ @@ -412,8 +410,9 @@ { "group": "Runners", "pages": [ + "runners/install", "runners", - "runners/install" + "runners/recovery" ] } ] diff --git a/fleets/approvals.mdx b/fleets/approvals.mdx index 099afda..a28287c 100644 --- a/fleets/approvals.mdx +++ b/fleets/approvals.mdx @@ -3,8 +3,8 @@ title: Approve a waiting run description: Review requested access, approve or deny it, and revoke standing grants. type: how-to audience: user -verified: 2026-11-12 -product_version: 0.76.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -15,7 +15,7 @@ approval waits until someone approves or denies its request. Open the fleet conversation to decide a request. Summary shows the proposed action and affected resources; choose **Approve** or **Deny** there. -Expand **Action details** for evidence or an optional reason. Saved fleets waiting for connector access use the same controls. Approving the last missing grant finishes setup. +Read the scope on the access card before deciding. A confirmed decision appears beside the action. If the response is uncertain, choose **Check status** before deciding again. @@ -23,22 +23,9 @@ Use `agentsfleet fleet approvals` to inspect requests and decide them from your ## Before you begin -Two kinds of request can appear: +A running fleet asks for a workspace secret or connected provider with `request_access`. Its request names the service and, for GitHub, the repositories and access level. -| Kind | Raised by | Scope of a decision | -|------|-----------|---------------------| -| `integration_grant` | Saving a fleet that needs credentials from a connected service | Covers that fleet and service until revoked. | -| A kind you name | A rule under `gates` in the fleet's Definition | Covers the actions described by the rule's `blast_radius`. | - -An action with no matching rule runs without asking. Add a rule only for the actions you want to approve first. - -Saving a fleet that needs service credentials creates its grant request. -The fleet reads `installing` until someone approves it. Approving the last -missing grant finishes setup in the same request, and the fleet reads `active`. - -A repository write uses that standing grant. You do not approve every run separately. - -Sign in and select the workspace that owns the fleet. A tenant API key needs `approval:read` to list gates and `approval:resolve` to decide them. +Sign in to the workspace that owns the fleet. Deciding a request needs `approval:resolve` and a signed-in person's session. A tenant API key with `approval:read` can list the requests. ## Steps @@ -122,24 +109,14 @@ No credential is issued, and the run makes no provider call. Check with ## Remove or undo -A request can be decided once. Denying it ends the waiting run without granting -access. An approved integration grant can later be revoked. +A request can be decided once. Denying resumes the work without the requested access. You can revoke an approved integration grant. To revoke a grant, copy `<GRANT_ID>` from `agentsfleet fleet grants list --fleet <FLEET_ID>`. Then run `agentsfleet fleet grants revoke <GRANT_ID> --fleet <FLEET_ID>`. -To change which repositories a fleet may reach, or to drop it to read-only, -change `repositories` or `repository_access` in a private improvement chat. -Choose **Edit setup** in the fleet header, then ask for the change. - -Open **… → Instructions** beside the setup chat title to review the change. Close the editor, then choose **Save changes** in the fleet header. - -The next service credential uses the updated repository access. The grant stays -approved, and the fleet keeps running. +To change the approved repository scope, revoke the existing grant. Ask the fleet to request the new scope, and decide its next access card. -Deleting the grant removes all access to that service for this fleet, -including every repository it reached through the service. -The next event is refused before the fleet contacts the provider. +The next run and token mint use the updated approval. A credential already issued to a live run remains with that run. ## Related pages diff --git a/fleets/authoring.mdx b/fleets/authoring.mdx index 6dbe4cd..61d968b 100644 --- a/fleets/authoring.mdx +++ b/fleets/authoring.mdx @@ -1,303 +1,62 @@ --- -title: Author a fleet -description: Describe a fleet in a private chat, check its setup, and save it. +title: Start and guide a fleet +description: Start a fleet with its first message and guide it in chat. type: how-to audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does -Describe the task in a private chat in the dashboard or terminal. -`agentsfleet` drafts the setup for you to review and save. - -A draft is private to the person who started it. Saving creates one fleet in the workspace or updates its existing setup version. -The dashboard does not publish a reusable Plugin. - -A fleet's setup is one Definition: a JSON document holding its description, instructions, and runtime settings, including its name. The dashboard and the terminal edit the same Definition. +The first message creates your fleet, opens its chat, and starts the work you describe. Follow-up messages reach the same fleet. ## Before you begin -Sign in and select a workspace. Setup chat uses eligible models configured by the workspace owner or enabled as the platform default. - -Each model needs credentials and saved inference settings: API format, secure HTTP (HTTPS) base URL, context window, and maximum output tokens. A model listed without these settings cannot author setup. See [Model providers](/fleets/model-providers). +Sign in and select a workspace with a usable model and enough balance for a reply. The workspace owner's [model settings](/fleets/model-providers) determine which models you can choose. -`<MODEL_REF>` is the `ref` of an entry returned by `GET /v1/workspaces/{workspace_id}/models?purpose=authoring`. Choose one whose `eligibility.authoring` is `true`. - -Each chat message is charged to the workspace owner's balance. A message the balance cannot cover fails with `UZ-AUTHOR-007`. - -**Usage** in the account menu shows settled setup-chat costs beside fleet-run costs, including paid failed attempts. Costs remain visible after you delete a private setup chat. Messages still awaiting accounting appear after their costs settle. +The New fleet picker shows the usable default by name. If your picker reads **Workspace model**, sending uses the workspace owner's default. The platform default applies when the owner uses the platform's model. ## Steps -### In the dashboard - 1. Open **New fleet** in the workspace sidebar. -2. Check the selected model, then describe the task. New chats select an available authoring model by default. Each reply can change the draft setup. -3. Select the **Edit instructions** pencil beside the chat title to review the proposal. Keep chatting until it matches your task. -4. Choose **Save and publish** above the message field. Its spinner and elapsed seconds stay visible until the save is confirmed. -5. Wait for the saved fleet's conversation to open. Its summary icon shows durable tasks and saved context. Your private setup conversation remains available. - -The proposed setup creates no fleet and requests no run. **Save and publish** checks and saves the current setup, without creating a Plugin. -It requests no first run, but configured automatic triggers can start work once setup is ready. - -<Note>This feature is coming soon.</Note> - -Choose **Watch a pull request** on the empty setup screen to load a starting request with proposed completion questions and yes/no criteria. -Edit the request before choosing **New fleet**; selecting the suggestion saves nothing and requests no access. -You can also start with your own message. - -Select the **Edit instructions** pencil to open the instruction editor. Closing it keeps your unsaved text. - -Choose **Save changes** in the editor. For an existing fleet, this saves a new setup version. For a new proposal, choose **Save and publish** afterward. - -An untouched editor follows changes from setup chat. If chat changes the setup during manual editing, your text remains available and a conflict blocks updates. -Choose **Discard manual changes and load latest** to replace that local text with the current proposal. - -The status above the message field shows **Reading setup**, **Refining setup**, or **Saving and publishing** during the corresponding work. -Only a confirmed saved version receives a success tick. An uncertain response shows **Update not confirmed** and retains the retry operation. - -Choose **Retry** to check the same save. Repeated clicks during saving do not start another save. -Saving an existing fleet preserves its resolved runtime model; changing the authoring model does not select a different runtime model. - -Sending another authoring request replaces the previous confirmation and its fleet action with the new request's progress. - -Plugin navigation, source links, starters and dashboard publication are paused. -The retained [Plugin API and terminal commands](/fleets/library) manage account-owned setup revisions separately from dashboard saving. - -Open **Show more** to expand a long message and **Show less** to fold it. A reply you watched stream stays open when it finishes. - -Keep unfinished setup steps in view. - -Saved schedules show their registration state and a retry action when needed. -Schedule changes and registration results appear as [activity in fleet chat](/fleets/running#read-schedule-activity). - -**Next wake-up** appears above the fleet's message field, in your browser's timezone. -Its controls edit, pause, resume or remove the schedule. The schedule expression keeps its declared timezone, including daylight-saving changes. - -To change a saved fleet, open **Fleet actions → Edit setup**. The setup conversation opens on its own page, based on the saved revision. -Its back arrow returns to the fleet conversation. - -Describe the change and review instructions through **Edit instructions** beside the summary icon. -Close the editor and choose **Save and publish** above the message field to save the next setup version. -Your unsent message in the fleet conversation stays in place. - -New work uses the updated instructions; work already running keeps its current version. - -### Define success through setup chat - -<Note>Completion questions and saved success criteria are coming soon.</Note> - -Describe how you will know the work is finished. -When your proposal includes success criteria, **What counts as done?** shows each question and its **Yes** and **No** meanings separately from instructions. - -Ask setup chat to add a question or change wording and criteria, then review the proposal before saving. -Each save creates a new setup version; work already started keeps its saved success criteria. - -### Recover a stopped or failed reply - -**Queued…** means your message is waiting to start. **Refining setup…** means an authoring reply has started. - -A failed reply keeps any partial text and shows its failure message. Choose **Try again** when available to retry the original request. - -Open **View details** for diagnostics. A retry can incur another model charge. - -If the provider outcome is uncertain, choose **Stop authoring**, then send a new message. -Earlier usage stays under review, and its reserved balance can limit new work until accounting finishes. - -A definite credential rejection fails the reply without requiring **Stop**. -Ask the credential owner to replace the key, or choose another available authoring model before sending a new message. -A key that worked earlier can expire or be revoked. - -**Stop** keeps setup changes already accepted into the proposal. Review the current proposal before saving. -Stopping setup chat leaves saved fleets running. - -### Find, rename, and delete setup chats - -The sidebar lists saved fleets under **Fleets**. Select a fleet to return to its conversation. - -Open **New fleet → Unfinished setups** to resume a private unsaved chat. Only the person who started the chat can see it. - -A new chat is titled with the first line of your first message, cut to 100 characters. A chat started from a Definition or a Plugin revision takes the first line of its description. A chat with neither reads **New fleet**. - -Choose **… → Rename chat** above the conversation to change its title. A renamed chat keeps your title, and the saved fleet keeps its own name. - -You cannot rename a chat while a reply or Save is running, while earlier usage is being checked, or after the chat closes. - -To delete a chat, choose its delete action and confirm **Delete chat**. The private conversation is removed. Saved fleets keep running, and published Plugin revisions stay available. - -Hover or focus an unfinished setup row to read its full title and status. The editor identifies the saved revision beneath your changes. +2. Check the model, or open the picker to choose another available model. +3. Send the first task. Include the goal, inputs, and constraints the fleet should follow. -### In the terminal +Open a suggestion to fill the composer with editable text. You can also write your own request. -Saves from the command-line interface (CLI) show **Setup saved via CLI** beside their version in the dashboard. -Older receipts without origin metadata keep the general saved-version label. +### Give standing guidance -1. Start a private chat with an authoring model. +Ask the fleet to remember a rule it should follow in later work. For example, send “Remember to link the evidence when you summarize a deployment.” The fleet can pin that guidance to its memory. - ```bash - agentsfleet chat --model <MODEL_REF> - ``` +Ask in chat when you want the fleet to add a schedule, register a trigger, or start a durable task. The fleet asks for access when a tool needs a secret or integration. Review the card in chat and choose **Approve** or **Deny**. - ```text - /review [instance-name] · /save · /run <message> · /publish <label> · /apply · /model <ref> · /stop · /retry · /delete · /quit. Ctrl+C stops the reply being followed. - you › - ``` +### Start from the terminal -2. Describe the task at the `you ›` prompt. - - For example: "Keep team notes in memory. Save notes when asked, and recall them before answering questions." - - Ordinary text is a chat message. A line starting with `/` is an action. - -3. Review the setup under the fleet name you want. - - ```text - /review team-notes - ``` - - The review prints the full Definition, the access it needs, and its readiness checks. Its last line reads `Review digest: <DIGEST>`. - -4. Save the reviewed setup. - - ```text - /save - ``` - - ```text - ✓ Fleet team-notes: active - ``` - - `/run <MESSAGE>` saves and sends the fleet `<MESSAGE>` once. Changing the draft after a review needs a new `/review` before saving. - -### From a Definition file - -Use this path for scripts and repeatable setups. A Definition draft starts without a chat message, so no authoring model call runs. - -1. Write the Definition to a file, such as `team-notes.json`. - - ```json - { - "schema_version": 1, - "description": "Saves and recalls team notes between runs.", - "instructions_md": "Use memory_store when asked to remember a note.\nUse memory_recall before answering questions about saved notes.\nIf no matching note exists, say so instead of guessing.", - "config": { - "name": "team-notes", - "x-agentsfleet": { - "triggers": [], - "tools": ["memory_recall", "memory_store"], - "budget": {"daily_nanos": "1000000000"} - } - } - } - ``` - - `config.name` is the fleet's name: lowercase letters, digits, and hyphens, at most 64 characters. `description` is required, and every fleet list shows it. `daily_nanos` is a decimal string of nanodollars, so `"1000000000"` is one dollar a day. - - An empty `triggers` list, or none at all, means the fleet runs only when you send it a message. - -2. Open a draft from the file and review it. - - ```bash - agentsfleet chat --definition team-notes.json --model <MODEL_REF> --no-input --review --name team-notes - ``` - - ```text - ✓ Draft <DRAFT_ID> created - Instance: team-notes - Runtime model: <varies> - <varies> - Review digest: <DIGEST> - ``` - -3. Save the draft with the digest you reviewed. - - `<DRAFT_ID>` and `<DIGEST>` come from the previous output. - - ```bash - agentsfleet chat <DRAFT_ID> --no-input --save --name team-notes --review-digest <DIGEST> - ``` - - ```text - <varies> - ✓ Fleet team-notes: active - ``` - -To answer mentions in a Slack channel, add a `mention` trigger to `triggers`. [Answer mentions in Slack](/fleets/slack) shows its fields. +Send the first message with [`agentsfleet fleet create`](/cli/agentsfleet#chat), then use `agentsfleet fleet steer` for follow-ups. [Start a fleet from the terminal](/fleets/install) walks through both commands. ## Verify it works -`<FLEET_ID>` comes from `agentsfleet fleet list`. - -```bash -agentsfleet fleet steer <FLEET_ID> "Remember that our release channel is #releases." -``` - -```text -<varies> -``` - -After that run finishes, ask for the saved note: - -```bash -agentsfleet fleet steer <FLEET_ID> "Which channel do we use for releases?" -``` - -```text -<varies> -``` - -Check **Memory** for the note and the reply for `#releases`. -Replies and tool calls vary by model; a successful Save alone does not prove that memory was used. +Find the fleet in **Your Fleets** and check the reply to your first message. **Wakes on**, **Can access**, and **Remembers** show what the fleet has set up as it works. ## Common problems -A Save that prints `installing` and exits with code `1` is waiting on a setup check. The lines after it name each check and its next step, such as a missing secret or a pending integration grant. - -Fix the check. Approving the last missing grant finishes setup, and the fleet reads `active`. For any other check, run `agentsfleet fleet activate <FLEET_ID>` after the fix. - -`UZ-AUTHOR-006` means the setup or its access changed after your review. Review the draft again and save with the new digest. - -`UZ-AUTHOR-008` means the authoring model is unavailable, including a rejected credential. Repair its configuration or select another eligible model. -In the terminal, run `/model <MODEL_REF>` to change models. - -If the dashboard has no eligible model, open model settings. Check the saved endpoint, API format, token limits, and credentials. Loading failures show a retry action separately from missing configuration. - -`UZ-REQ-001` means the Definition is invalid. The detail names the field. Every runtime setting sits under `config["x-agentsfleet"]`, and unknown keys are refused. - -`UZ-AGT-006` means a fleet already uses the name. Review again under a different `--name`. - -`UZ-AUTHOR-002` on a rename means the chat is busy or closed. Wait for the reply or the Save to finish, then rename an open chat. - -A retried draft creation, chat message, Save, Apply, or publish reuses its operation key. For 24 hours after the first attempt, the same key and request return the first result. +### Recover a stopped or failed reply -The same key with a different request, or from another person, fails with `409` and `UZ-AUTHOR-005`. If the first attempt's draft, message, fleet, or Plugin revision was deleted since, the retry fails with `410 Gone` and `UZ-AUTHOR-013`. Start a new operation with a new key. +If a send could not be confirmed, use **Resend** on that message. The browser retries the same operation so a lost response does not create another fleet. -After 24 hours, the key counts as new. +If you see **Choose model**, select an available model. Ask the owner to check [model settings](/fleets/model-providers) if the list has no usable choice. -A Definition holds at most 8 triggers. One webhook allows 1 through 16 event names and 1 through 64 repositories. +For a failed turn, open its details in chat. Check what stopped the run before sending another message, which can incur another model charge. ## Remove or undo -<Warning> - Deleting a setup chat removes its private messages for good. Saved fleets keep running, and published Plugin revisions stay. -</Warning> - -Delete a chat from **Unfinished setups**, with `/delete` in the terminal chat, or with `agentsfleet chat delete <DRAFT_ID>`. - -Saving a fleet, or saving changes to one, closes its chat. `agentsfleet` keeps a closed chat and its messages for 30 days, then deletes them. The chat's `expires_at` field shows when. - -Charges for the draft's chat messages stay in the workspace's billing records. - -You can delete a saved fleet in any status. Deletion cancels its live work and removes its events, grants, keys, and memory. +Open **Fleet actions** and choose **Archive** to stop future work and keep its history. Choose **Delete** to remove the fleet and its history permanently. ## Related pages -- [Plugins](/fleets/library) -- [Command reference](/cli/agentsfleet) -- [Tools](/fleets/tools) -- [Webhooks](/fleets/webhooks) -- [Secrets](/fleets/secrets) -- [Answer mentions in Slack](/fleets/slack) +- [Your first fleet](/quickstart) +- [Run and control a fleet](/fleets/running) +- [Approve a request](/fleets/approvals) +- [Memory](/memory) diff --git a/fleets/connectors.mdx b/fleets/connectors.mdx index 2969838..0dfebd6 100644 --- a/fleets/connectors.mdx +++ b/fleets/connectors.mdx @@ -3,8 +3,8 @@ title: Connect a provider description: Connect a workspace to GitHub, Slack, Zoho Desk, Jira, or Linear. type: how-to audience: user -verified: 2026-11-12 -product_version: 0.76.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -20,7 +20,7 @@ You must own the account that holds the workspace. You also need permission to connect the provider account. Supported providers are GitHub, Slack, Zoho Desk, Jira, and Linear. -**Connect apps** lists the providers offered by the platform. Opening this page creates no connection. +**Connected apps** lists the providers offered by the platform. Opening this page creates no connection. **Connected** means the workspace holds saved authorization. Each card shows its account label when available. @@ -32,21 +32,17 @@ If a provider needs platform setup, choose **Request access** to register your i ## Steps -1. Open the account menu and choose **Connect apps** in the dashboard. +1. Open **Connected apps** in the dashboard sidebar. 2. Choose a provider and click **Connect**. 3. Approve the requested access on the provider's website. -4. Save a fleet that uses the provider. In its conversation, choose **Approve** under **Needs your approval**. +4. Ask a fleet to use the provider. When its access card appears, review the requested scope before approving it. The workspace owns the connector. Each fleet needs a separate approved grant before it can use the connection. -Approving the fleet's last missing grant finishes its setup, and the fleet reads `active`. -If it stays `installing`, run `agentsfleet fleet show <FLEET_ID>` to see what setup still needs. -After you fix it, choose **Finish setup** in its conversation or run `agentsfleet fleet activate <FLEET_ID>`. - -Copy `<FLEET_ID>` from `agentsfleet fleet list`. +The access answer resumes the waiting work. Under **Can access**, you can see the fleet's approved grants and remove them. A connected Slack workspace also lets a fleet answer mentions in a channel. Posting that answer needs no grant, because `agentsfleet` posts it itself. See [Answer mentions in Slack](/fleets/slack). @@ -68,7 +64,7 @@ The provider state should be `connected`. A fleet without an approved grant cann `not_connected` means no saved connection is available. Start the connection again from the dashboard. -If the browser return fails or exceeds 25 seconds, return to **Connect apps** from the recovery page. Check its status, then start a fresh attempt if needed. +If the browser return fails or exceeds 25 seconds, return to **Connected apps** from the recovery page. Check its status, then start a fresh attempt if needed. Never reuse a previous callback URL. @@ -80,7 +76,7 @@ One GitHub App installation can belong to only one workspace. Another workspace ## Remove or undo -Disconnect the connector from **Connect apps**. `agentsfleet` removes the saved connection and stops routing that provider's events to the workspace. Deleting the connector's secret, such as `github`, does the same. +Disconnect the connector from **Connected apps**. `agentsfleet` removes the saved connection and stops routing that provider's events to the workspace. Deleting the connector's secret, such as `github`, does the same. Revoke the application from the provider's account settings. The next connector call fails until you reconnect with valid access. diff --git a/fleets/install.mdx b/fleets/install.mdx index 1236804..c897b44 100644 --- a/fleets/install.mdx +++ b/fleets/install.mdx @@ -1,157 +1,72 @@ --- -title: Install a fleet -description: Create a fleet from a published Plugin revision. +title: Start a fleet from the terminal +description: Create a fleet with a first message and continue its chat from the CLI. type: how-to audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does -This creates a fleet from one published Plugin revision. You review the revision's setup under your fleet name, then save it. - -Saving pins the fleet to that revision. A later revision of the same entry never changes the fleet until you apply it yourself. +Send the fleet's first task from the terminal and use the returned identifier to follow up. ## Before you begin -Sign in and select a workspace. Save every secret the entry needs; the review lists them. - -`<MODEL_REF>` names an authoring model the workspace owner enabled. [Author a fleet](/fleets/authoring) shows where it comes from. A Plugin draft starts without a chat message, so no authoring model call runs. +[Install the command-line interface (CLI)](/cli/install), run `agentsfleet login`, and select a workspace with an available model and balance. ## Steps -1. Browse the workspace gallery. +1. Start the fleet by sending its first message. ```bash - agentsfleet plugins + agentsfleet fleet create "Summarize the nightly health report" --name nightly-health ``` ```text - NAME PLUGIN REVISION AGO - <varies> - Start from a revision: agentsfleet chat --plugin <plugin_id> --revision <revision_id> - ``` - - The collection contains only your account's Plugins. `REVISION` is the entry's latest revision identifier. - -2. Open a private draft from that revision and review it under your fleet name. - - `<PLUGIN_ID>` and `<REVISION_ID>` come from the gallery. `<NAME>` is the fleet name you choose. - - ```bash - agentsfleet chat --plugin <PLUGIN_ID> --revision <REVISION_ID> --model <MODEL_REF> --no-input --review --name <NAME> + ✓ Started fleet nightly-health (<FLEET_ID>). First turn <TURN_ID>: <varies>. + Talk to it with: agentsfleet fleet steer <FLEET_ID> ``` - ```text - ✓ Draft <DRAFT_ID> created - Instance: <NAME> - Runtime model: <varies> - <varies> - Review digest: <DIGEST> - ``` - - The review shows the full setup, the secrets, tools, and network hosts it needs, and a readiness line for each. - -3. Save the draft with the digest you reviewed. - - ```bash - agentsfleet chat <DRAFT_ID> --no-input --save --name <NAME> --review-digest <DIGEST> - ``` - - ```text - <varies> - ✓ Fleet <NAME>: active - ``` - - Add `--run-now <MESSAGE>` to send the fleet one message once it is active. - -4. Read the fleet's webhook URLs, if its setup declares a webhook trigger. + The command returns after the daemon accepts the message. The fleet's reply can still be running. - `<FLEET_ID>` comes from `agentsfleet fleet list`. +2. Open its interactive chat or send a follow-up with the fleet name. ```bash - agentsfleet --json fleet show <FLEET_ID> + agentsfleet fleet steer @nightly-health "Keep the summary to three lines" ``` ```text <varies> ``` - Each `webhook_urls` entry pairs a `source` with its `url`. For GitHub, open **Repository settings → Webhooks → Add webhook**. Use the matching workspace webhook secret. - -Plugin navigation and source links are paused in the dashboard. Use the terminal procedure above to start from a Plugin revision. + Omit the message to open interactive chat in a terminal. ## Verify it works -```bash -agentsfleet fleet status -``` - -```text -Fleets -Name: <NAME> -Status: active -Events: <varies> -Budget: <varies> -Waiting: 0 -``` - -`Waiting` counts approvals that need your decision. A count above zero also -prints the command that lists them. - -## Common problems - -A Save that prints `installing` and exits with code `1` is waiting on a setup check. The lines after it name each check, such as a missing secret or a pending integration grant, and its next step. - -Fix each check. Approving the last missing grant finishes setup, and the fleet reads `active`. The fleet keeps its identifier while it waits. - -After you fix a missing secret, connection, model, or wallet balance, check setup again: +Read the fleet's recent turns using the identifier from the create response. ```bash -agentsfleet fleet activate <FLEET_ID> +agentsfleet fleet turns <FLEET_ID> ``` ```text -✓ <varies> active. +<varies> ``` -While a check still fails, the fleet stays `installing`. The command then prints `agentsfleet fleet show <FLEET_ID>` as the next step. An API client sends `PATCH` with `{"status":"active"}` instead. +Each accepted message has its own turn. Check the turn's status and reply before repeating a request. -`UZ-AUTHOR-006` means the setup or its access changed after your review. Review again and save with the new digest. - -`UZ-AGT-006` means the fleet name already exists. Review again under a different `--name`. - -<Warning> - Deleting a fleet permanently removes its events, sessions, schedules, - integration grants, connector channels, and memory. Choose a different name - to keep the existing fleet and its data. -</Warning> - -To reuse the taken name, run `agentsfleet fleet delete <FLEET_ID>`. Deletion -releases the name. An archived fleet keeps its name until you delete it. +## Common problems -A Save whose reply was lost, or that stays `installing`, prints a recovery line with `--operation-id` and `--candidate-id`. Repeat the same command with both flags to resume that Save without creating a second fleet. +If the name already exists, choose an unused name. When the workspace default model is unavailable, choose a usable runtime reference with [`--model`](/cli/agentsfleet#chat). ## Remove or undo -Deleting a fleet removes its events, telemetry, sessions, grants, keys, and memory. This loss cannot be undone. - -`<FLEET_ID>` comes from `agentsfleet fleet list`. You can delete a fleet in any status, and deletion cancels its live work first. - -```bash -agentsfleet fleet delete <FLEET_ID> -``` - -```text -✓ <varies> deleted. -``` +Use `agentsfleet fleet archive <FLEET_ID>` to keep the history and stop future work. See [removing a fleet](/fleets/running#remove-or-undo) if you want to delete its history too. ## Related pages -- [Plugins](/fleets/library) -- [Author a fleet](/fleets/authoring) -- [Secrets](/fleets/secrets) -- [Run and control a fleet](/fleets/running) -- [Answer mentions in Slack](/fleets/slack) +- [Command reference](/cli/agentsfleet) +- [Start and guide a fleet in the dashboard](/fleets/authoring) +- [Retired Plugins](/fleets/library) diff --git a/fleets/library.mdx b/fleets/library.mdx index 60c177a..1c56fa5 100644 --- a/fleets/library.mdx +++ b/fleets/library.mdx @@ -1,127 +1,32 @@ --- -title: Plugins -description: Reuse account-owned setup revisions through the API and terminal. +title: Retired Plugins +description: Start new fleets with a message after the retirement of fleet Plugins. type: explanation audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What it is -A Plugin is a reusable fleet setup owned by your account. -Each immutable revision holds a reviewed Definition and its required secrets, tools and network hosts. -Your account can reuse it across its workspaces; other accounts cannot read it. - -The dashboard's Plugin navigation, source links, starters and publication controls are paused. -**Save and publish** saves a fleet setup version without publishing a Plugin. -The Plugin API and command-line interface (CLI) remain available. +Fleet Plugins are retired. You can start a fleet by sending its first message. ## Why it exists -A Plugin lets you reuse a reviewed setup without sharing its private authoring conversation. -It starts an independent fleet from one pinned revision; it does not add capabilities to an existing fleet. +A Plugin held a reusable setup revision. This page explains what to do if an older guide tells you to open one. ## How it behaves -A later Plugin revision does not change fleets saved from an earlier revision. -Publishing creates no fleet, and saving a fleet creates no Plugin. - -### Start from the terminal - -List the Plugins your account owns: - -```bash -agentsfleet plugins -``` - -```text -NAME PLUGIN REVISION AGO -<varies> -Start from a revision: agentsfleet chat --plugin <plugin_id> --revision <revision_id> -``` - -`agentsfleet plugins list` reads the same account-owned collection. -`REVISION` is the latest revision identifier. [Install a fleet](/fleets/install) shows how to review and save one. - -An empty page reads `No published plugins on this page.` - -### Start from a revision link - -Dashboard Plugin source links are paused. Use `agentsfleet chat --plugin <PLUGIN_ID> --revision <REVISION_ID>` in the terminal instead. -The identifiers come from `agentsfleet plugins`; they grant no additional access and include no private setup conversation. - -### Publish a reviewed setup - -Publish from a reviewed private draft. Publishing leaves the draft open for further editing. -`<DRAFT_ID>` and `<DIGEST>` come from its review; `<LABEL>` is your chosen display name, from 1 to 100 characters. - -```bash -agentsfleet chat <DRAFT_ID> --no-input --publish <LABEL> --review-digest <DIGEST> -``` - -```text -<varies> -✓ Published plugin revision <REVISION_ID> -``` +To start a fleet in the dashboard, open **New fleet**, select a model, and send your first message. The message creates the fleet and starts its first turn. -Inside interactive chat, `/publish <LABEL>` publishes after `/review`. -Publication needs `plugin:write`. - -To append a revision, add `--publish-to <PLUGIN_ID> --plugin-etag <ETAG>`. -Copy the identifier and `etag` from `agentsfleet --json plugins list`. -A stale tag is refused; reread the Plugin before retrying. - -| Option | Effect | Default | Unit or range | -|---|---|---|---| -| `--publish <LABEL>` | Publishes a new Plugin. | None | Text, 1 to 100 characters | -| `--publish-to <PLUGIN_ID>` | Appends a revision; needs `--publish` and `--plugin-etag`. | None | Plugin identifier | -| `--plugin-etag <ETAG>` | Supplies the Plugin tag you inspected. | None | Entity tag | -| `--review-digest <DIGEST>` | Supplies the review you inspected. | None; required | Digest text | - -### Remove a Plugin - -`<PLUGIN_ID>` comes from `agentsfleet plugins list`. Removal needs `plugin:write`. - -<Warning> - Removal permanently deletes the Plugin and its revision history. Fleets already saved from it keep running. -</Warning> - -```bash -agentsfleet plugins delete <PLUGIN_ID> -``` - -```text -✓ <varies> is no longer one of this workspace's plugins. Fleets already installed from it keep running. -Publish reviewed chat setup with: agentsfleet chat --help -``` - -Existing drafts keep their content and lose their link to the removed Plugin. -A missing Plugin or one owned by another account returns `404` with `UZ-AUTHOR-001`. -The response does not reveal whether another account owns that identifier. - -### Use the API - -Use `/v1/workspaces/{workspace_id}/plugins` to list or publish your account's Plugins. -Its item route accepts `plugin_id`; `/revisions` lists or appends immutable revisions. -The old Fleet library routes, `/owned` collection, platform publication and `library:write` scope are removed without aliases. +Use [`agentsfleet fleet create`](/cli/agentsfleet#chat) in the terminal to do the same. Send later instructions in the fleet's chat. ## Limits -A Definition allows 32,768 characters each for description and instructions, and 448 KiB of JSON overall. -The first instructions a chat model writes allow 12,288 characters. - -A Definition declares at most 128 tools, 64 secrets and 64 network hosts. -Tool and secret names allow 128 characters; network hosts allow 255. - -Plugin lists return at most 100 entries per page. -Use `--starting-after <CURSOR>` with the cursor the previous page prints. -Removing a fleet does not remove its Plugin; delete the Plugin separately. +The draft and Plugin APIs, the `agentsfleet plugins` and `agentsfleet chat` commands, and the `plugin:write` scope are retired. The error registry keeps their codes for earlier logs. ## Related pages -- [Install a fleet](/fleets/install) -- [Author a fleet](/fleets/authoring) - [Command reference](/cli/agentsfleet) -- [Secrets](/fleets/secrets) +- [Retired draft and Plugin error codes](/api-reference/error-codes#drafts-and-setup) diff --git a/fleets/model-providers.mdx b/fleets/model-providers.mdx index 1c368a7..7542943 100644 --- a/fleets/model-providers.mdx +++ b/fleets/model-providers.mdx @@ -3,21 +3,20 @@ title: Use your own model provider description: Store a model-provider credential and run fleets on it instead of the platform default. type: how-to audience: user -verified: 2026-11-12 -product_version: 0.76.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does Store your provider credential, then select it as your account's default model. -A fleet keeps the model reference saved in its setup. +Each fleet keeps its own model reference. Each configured model names the workspace that owns its provider key. Switching workspaces does not move that key or change the model's saved reference. -Your provider bills model usage. Setup chat offers models configured for your -workspace owner and the enabled platform default. +Your provider bills model usage. The New fleet picker offers eligible models configured for the workspace owner and the platform default. ## Before you begin @@ -96,11 +95,10 @@ For the command-line interface (CLI), use these steps: secret_ref my-model ``` -New setup reviews resolve your account default unless the Definition selects a model. -Check **Runtime model** in the review before saving. +New fleets use the workspace owner's default when you send the first message without choosing a different model. Changing the account default does not replace an existing fleet's saved model reference. -To change that reference, choose **Edit setup** in the fleet header. Update the model in the chat, then review and save the setup. +Use the model picker on the fleet's conversation to switch the model for later runs. ## Point at your own endpoint @@ -122,17 +120,16 @@ agentsfleet secrets create my-gateway --provider openai-compatible \ ## Verify it works Check that `agentsfleet models current` names your secret. -Before testing a fleet, review its setup and confirm **Runtime model** uses your selected model reference. -Save the updated setup if it still names the previous model. +Before sending a message, check the selected model in the fleet's conversation. Send that fleet a message with `agentsfleet fleet steer <FLEET_ID>`, using an identifier from `agentsfleet fleet list`. Check the response and usage in your provider account. ## Common problems -A saved key can expire or be revoked. If setup chat reports `UZ-AUTHOR-008` after a credential rejection, replace the key or select another model. +A saved key can expire or be revoked. Replace the provider key or select another model if the key is rejected. -The rejected reply fails without requiring **Stop**. If the provider outcome is uncertain, follow [setup-chat recovery](/fleets/authoring#recover-a-stopped-or-failed-reply). +If a first message fails with `UZ-SETUP-008`, check the workspace default and the model's runtime eligibility. An unknown provider or model returns the accepted values. Run `agentsfleet models list --provider <PROVIDER_ID>` to check your choice. @@ -167,4 +164,4 @@ Deletion fails with `UZ-VAULT-004` while an entry still references the secret. ## Related pages - [Manage secrets](/fleets/secrets) -- [Install a fleet](/fleets/install) +- [Start a fleet from the terminal](/fleets/install) diff --git a/fleets/overview.mdx b/fleets/overview.mdx index 5b243a0..7b584ec 100644 --- a/fleets/overview.mdx +++ b/fleets/overview.mdx @@ -3,8 +3,8 @@ title: Fleet overview description: Understand what a fleet owns and how its lifecycle works. type: explanation audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -12,7 +12,7 @@ executable: false A fleet handles one recurring outcome. It belongs to one workspace and responds to declared triggers. -A fleet's Definition holds its setup. The instructions describe the task. The runtime settings declare triggers, tools, secrets, network hosts, budgets, and context settings. +A fleet's chat records its work. Its settings and saved rows hold the model, triggers, approved grants, memory, and network access. ## Why it exists @@ -22,21 +22,16 @@ A fleet keeps repeated event work in one place. The workspace controls access wh | State | Meaning | Next actions | |---|---|---| -| `installing` | Setup needs a secret, grant, or another readiness check. | Fix the named check and activate, or archive to cancel setup | | `active` | The fleet accepts new events. | Archive or delete | | `archived` | The fleet never accepts work again. Its history stays readable. | Delete, or set up a new fleet | You can delete a fleet in any status. A service guard archives a fleet when an anomaly rule trips. Archiving cannot be undone, so set the fleet up again in a new chat. -Saving a draft creates the fleet. The active workspace owns it, and authorized workspace members control it. +Sending the first message creates a fleet in the active workspace. Authorized members can manage it. The fleet page opens directly in its conversation. Use the left navigation to switch fleets or return to **Your fleets**. Choose the model beside the Send arrow; changing it preserves your unsent message. -Open **Fleet actions → Edit setup** to open the saved setup conversation. -Its back arrow returns to the fleet conversation. -Both chats share the composer and text loading highlight. - Select the summary icon to open **Fleet summary**. **Durable tasks** shows unfinished work, with its objective, saved success criteria and progress. Outputs and Changes appear when recorded data exists; Sources lists saved repository context. @@ -82,10 +77,9 @@ Choose **Resend** to send the message again. The fleet runs it at most once, eve Each unsent message keeps its own **Resend** and **Dismiss** until you choose one. The list survives a page reload and shows in other tabs. It stays with you: someone who signs in next on the same browser never sees it. -An expired session shows **Sign in** beside **Resend**, so you can sign in and then resend. Resending the same message is safe; changing the text makes it a new message. A message can be at most 8,192 bytes. +An expired session shows **Sign in** beside **Resend**, so you can sign in and then resend. Resending the same message is safe; changing the text makes it a new message. A message can be at most 1,048,576 characters and cannot contain a null character. -The fleet API's `webhook_urls` lists each provider webhook address. -Open **Fleet actions → Edit setup**, then **Edit instructions** beside the setup chat title to review triggers and their filters. +The **Wakes on** list shows triggers and schedules. Read webhook URLs and filters with `agentsfleet fleet triggers list <FLEET_ID>`. Each schedule's `description` states its timing and time zone, such as `At 9:00 AM (Asia/Kolkata)`. Its `run_state` and nullable `next_run_at` describe whether it will run: @@ -98,15 +92,9 @@ Each schedule's `description` states its timing and time zone, such as `At 9:00 The server works out the state and next run when you request the fleet. Run history stays in **Chat** and **Activity**. -An improvement runs in a private chat pinned to the fleet's current setup revision. -Choose **Save and publish** to save its next revision. Running work keeps the revision it started with. - -The fleet keeps its identifier and memory across revisions. Saving changes never publishes them as a Plugin. +Send new instructions in the same chat. Ask the fleet to pin standing guidance to memory when it should carry over to later work. -If the fleet's setup changed after loading, saving is refused with [`UZ-AUTHOR-003`](/api-reference/error-codes#UZ-AUTHOR-003) or [`UZ-AUTHOR-006`](/api-reference/error-codes#UZ-AUTHOR-006). -Reload the chat, check the setup, then save again. - -Archiving a fleet cancels its live work and setup. It keeps the fleet's records and blocks all later work. +Archiving a fleet cancels its live work. It keeps the fleet's records and blocks all later work. Deleting a fleet cancels its live work and removes all fleet records. A replacement fleet receives a new identifier and new webhook URLs. @@ -135,17 +123,15 @@ A fresh sandbox checks out the fleet's repositories again and holds none of the ## Limits -The fleet receives only declared tools and secrets. +The fleet receives only approved credentials. [Network restrictions](/fleets/tools#how-it-behaves) depend on the tool and the runner's network policy. -Daily or monthly budgets can block new work. +An exhausted account balance can block new work. The summary uses the latest saved event. A fleet with no history shows an empty outcome. -`agentsfleet` validates the Definition in every draft, Save, and Apply. An invalid Definition never replaces the active fleet settings. - ## Related pages -- [Install a fleet](/fleets/install) +- [Start a fleet from the terminal](/fleets/install) - [Run and control a fleet](/fleets/running) - [Author a fleet](/fleets/authoring) - [Webhooks](/fleets/webhooks) diff --git a/fleets/running.mdx b/fleets/running.mdx index 3dca13f..9c01cad 100644 --- a/fleets/running.mdx +++ b/fleets/running.mdx @@ -3,8 +3,8 @@ title: Run and control a fleet description: Inspect, message, activate, archive, and delete a fleet. type: how-to audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -52,14 +52,9 @@ Install a fleet. Copy its identifier from `agentsfleet fleet list`. <varies> ``` - Approve the fleet's integration grant during setup to allow repository access. - That approval lasts until you revoke it. Custom approval rules can pause - individual runs; review those requests with [`agentsfleet fleet approvals`](/fleets/approvals). + If the fleet needs repository access, review its request in chat. An approved grant lasts until you revoke it. You can also use [`agentsfleet fleet approvals`](/fleets/approvals). - In the dashboard chat, a reply appears as it arrives. You can send another - message while a run is active; the new event waits its turn and keeps its - own place in the conversation. Reasoning and tool activity are shown - separately from the final reply. + Replies appear as they arrive. A follow-up can wait or join the active run at its next safe boundary. The chat shows reasoning and tool activity separately from the final reply. While a reply runs, the chat keeps your place. Your new message moves to the top of the panel, and the reply grows below it. @@ -69,7 +64,7 @@ Install a fleet. Copy its identifier from `agentsfleet fleet list`. To change the fleet's model, choose a model in the chat composer. The saved choice applies to future chat, webhook and scheduled runs. - Saving keeps your unsent message and private setup edits. **Model changed** appears in **Chat** and **Activity** after the save. + Changing the model keeps your unsent message. The change appears in the fleet's chat. Choose **Run details** to open usage and duration details. Press **Escape** or click outside the details to close them. @@ -131,7 +126,7 @@ An archived fleet returns `UZ-AGT-020` when you try to rename it or change its s For API lifecycle updates, send the strong entity tag (ETag) from the fleet body's `etag` field in `If-Match`. Compression may weaken the response header. A missing `If-Match` returns `428`; an outdated value returns `412`, including for an archived fleet. -`UZ-AGT-012` means the fleet is still installing or was archived, so it refuses new work. Check its status with `agentsfleet fleet show <FLEET_ID>`. After you fix setup, run `agentsfleet fleet activate <FLEET_ID>` to activate an installing fleet. +If a fleet refuses new work, check its state with `agentsfleet fleet show <FLEET_ID>`. An archived fleet cannot accept more messages. If a model save fails, the composer keeps the last saved choice. Choose **Retry** for an unconfirmed save, **Reload choices** to refresh available models, or **Reload fleet** when another save changed the setup. diff --git a/fleets/secrets.mdx b/fleets/secrets.mdx index 71a739b..f42a5bd 100644 --- a/fleets/secrets.mdx +++ b/fleets/secrets.mdx @@ -3,8 +3,8 @@ title: Manage secrets description: Store, replace, inspect, and delete workspace secrets. type: how-to audience: user -verified: 2026-10-23 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -82,13 +82,9 @@ Use `agentsfleet secrets create` for a new name. ## Verify it works -In setup chat, ask to use the `api_token` field from the `stripe` secret for requests to `api.stripe.com`. +In the fleet's chat, name the workspace secret and field that the task needs. Keep the value out of chat. Review the fleet's access card before approving it. -Share the secret name and field, and keep the value out of chat. -Review the requested tools and access before saving. - -Save a fleet that declares the secret name. If a required secret is missing, -the fleet stays `installing`, and the readiness check names the secret to create. +If the secret is missing, create it in the workspace and ask the fleet to try again. You can check approved secret access under **Can access**. The list and show commands return metadata only. Neither command returns secret fields or values. diff --git a/fleets/slack.mdx b/fleets/slack.mdx index 84767a0..5a2245a 100644 --- a/fleets/slack.mdx +++ b/fleets/slack.mdx @@ -1,163 +1,67 @@ --- title: Answer mentions in Slack -description: Attach a fleet to a Slack channel so it answers when someone mentions agentsfleet there. +description: Attach a fleet to a Slack channel so it answers mentions there. type: how-to audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does -A fleet attached to a Slack channel answers when someone mentions the `agentsfleet` app in that channel. The fleet reads the thread, runs once, and posts its answer as a reply in the same thread. - -Slack sometimes delivers one mention twice. The second delivery starts no second run. +A fleet can answer when someone mentions the agentsfleet app in a subscribed Slack channel. The answer appears in the same thread. Retried Slack deliveries do not start another turn. ## Before you begin -Open the account menu and choose **Connect apps**. Connect Slack to the active workspace. See [Connect a provider](/fleets/connectors) for the full procedure. - -Invite the `agentsfleet` Slack app to the channel. The app receives mentions only in channels it belongs to. +Open **Connected apps** in the dashboard and connect Slack to the active workspace. Invite the agentsfleet Slack app to the channel. See [Connect a provider](/fleets/connectors). -Find the channel identifier (ID) in Slack. Open the channel's details and copy **Channel ID** from the bottom of the **About** tab. It starts with `C` for a public channel or `G` for a private one. +Open the channel's details. Copy its identifier (ID) from **Channel ID** in the **About** tab. ## Steps -1. Add a `mention` trigger for the channel to the fleet's Definition. - - `<CHANNEL_ID>` is the channel ID you copied. The entry goes in the `triggers` list under `config["x-agentsfleet"]`, beside the fleet's other triggers: - - ```json - { - "type": "mention", - "source": "slack", - "channels": ["<CHANNEL_ID>"] - } - ``` - - In a chat, you can ask for the same trigger in words, such as "answer mentions in Slack channel `<CHANNEL_ID>`". [Author a fleet](/fleets/authoring) covers the chat and the Definition file. - - `channels` holds exactly one channel ID. One fleet answers in one channel. To answer in a second channel, save a second fleet. - -2. Review the setup and check that it carries the one `mention` trigger, then save it. - - `<DRAFT_ID>`, `<NAME>`, and `<DIGEST>` come from the review output. - - ```bash - agentsfleet chat <DRAFT_ID> --no-input --save --name <NAME> --review-digest <DIGEST> - ``` - - ```text - <varies> - ✓ Fleet <NAME>: active - ``` - - In the dashboard, review **Edit instructions** beside the chat title. Choose **Save and publish** above the message field. - -3. Mention the app in the channel and ask your question. - - ```text - @agentsfleet why did the last deploy fail? - ``` - - The fleet reads the thread you asked from and replies in that thread. - -4. Start with the fleet's name when the channel has more than one fleet. +1. Start a fleet or open an existing one in the workspace that owns the Slack connection. +2. Send “Add a Slack mention trigger for channel `<CHANNEL_ID>`” in its chat. The fleet calls `trigger_add` with kind `mention` and that channel ID. +3. Confirm the channel under **Wakes on**. A fleet subscribes to one Slack channel. +4. Mention the app in that channel. Include the fleet's name when more than one fleet can answer. ```text @agentsfleet ci-responder why did the build fail? ``` - Case does not matter. A `:` or `,` right after the name is ignored. - -A mention that names no fleet goes only to a fleet that is running and has no `repository_access: write` in its Definition. The table shows which fleet answers a mention. - -| The channel has | The mention names a fleet | Who answers | -|---|---|---| -| No attached fleet | No | The channel's own fleet, described below | -| One running fleet without write access | No | That fleet | -| Several running fleets without write access | No | Nobody. A notice lists the fleets' names. | -| Attached fleets, none running without write access | No | Nobody. A notice asks you to name one. | -| Any attached fleet | Yes | The named fleet. For an archived fleet, an active fleet in the channel posts the archived notice; with none, no notice is sent. | - -A fleet whose Definition declares `repository_access: write` answers only when a mention names it. -From one mention it can open at most one draft pull request (PR). -It cannot merge the PR, mark it ready for review, or change a workflow. - -### The channel's own fleet - -`agentsfleet` creates one fleet per channel the first time a mention reaches no attached fleet or needs a notice. Its name is `slack-channel-<TEAM_ID>-<CHANNEL_ID>`, in lower case. - -This fleet answers from a model with no tools and no network access. Its budget is `daily_nanos: "1000000000"`, so it spends at most 1 dollar a day. When you ask for something it cannot reach, it tells you to set up a fleet in `agentsfleet chat` with a `mention` trigger for this channel. - -Its memory belongs to the channel, and no other fleet reads it. It also posts the channel's notices. +A named mention matches the fleet name without regard to case. A colon or comma can follow the name. A fleet with approved GitHub write access answers only when you name it. ## Verify it works -1. Mention the app in the channel. +Check for the reply in the Slack thread. Open the fleet's chat to see the turn, or list the turns from the terminal. -2. Check that a reply from the fleet appears in the same thread. +```bash +agentsfleet fleet turns <FLEET_ID> --actor 'slack:*' +``` -3. Open the fleet in the dashboard. Its trigger card reads **Chat mention** with the channel ID. +```text +<varies> +``` -4. List the fleet's events. `<FLEET_ID>` comes from `agentsfleet fleet list`. - - ```bash - agentsfleet fleet events <FLEET_ID> - ``` - - ```text - <varies> - ``` +Get `<FLEET_ID>` from `agentsfleet fleet list`. The actor identifies the Slack team and sender. ## Common problems -A notice replaces an answer when `agentsfleet` cannot pick one fleet. Each notice names the next step. - -| Notice starts with | Why | What to do | -|---|---|---| -| `Several fleets answer in this channel` | The mention named no fleet, and more than one could answer. | Start the message with one of the listed names. | -| `The fleets attached here answer only when named` | Every attached fleet has repository write access or is archived. | Start the message with one of the listed names. | -| `<NAME> is archived and cannot answer` | The named fleet is archived. | Mention another fleet attached to the channel. | +| Symptom | What to do | +|---|---| +| No fleet subscribes to the channel. | Connect Slack, then ask a fleet to add the channel's mention trigger. | +| Slack asks which fleet should answer. | Start your message with one of the fleet names listed in the notice. | +| The named fleet is archived. | Name an active fleet subscribed to the channel. | +| The fleet sees only your mention. | Paste relevant context into the message if Slack could not return the thread or the app cannot read private channel history. | -A notice appears 30 to 60 seconds after the mention. - -The fleet reads the first message of the thread and the latest 19 replies. It cuts each message at 2,000 characters and the whole thread at 16,000. - -In a private channel, the fleet sees only your mention. The Slack app cannot read private channel history. The fleet also answers from the mention alone when Slack does not return the thread within 1.5 seconds. - -If Slack loses its reply to a posted answer, `agentsfleet` checks the thread before it posts again. The answer appears once. In a private channel `agentsfleet` cannot check, so the answer can appear twice. - -A fleet you save under the name `slack-channel-<TEAM_ID>-<CHANNEL_ID>` with settings of its own is never used as the channel's own fleet. While it holds that name, a mention that needs the channel's own fleet starts no run. Rename or delete that fleet. - -A fleet you save under that name with the channel fleet's exact runtime settings counts as the channel's own fleet. It answers in that fleet's place. - -A mention from a bot, an edited message, or the app's own reply starts no run. - -A mention from a Slack workspace that is not connected to an `agentsfleet` workspace starts no run. Connect Slack again from **Connect apps** in the account menu. +The app reads the first thread message and up to 19 later replies. It bounds thread retrieval to 1.5 seconds. An edited message or an app reply to itself does not start another turn. ## Remove or undo -To detach a fleet from the channel, remove its `mention` trigger and apply the change. - -1. Open the fleet in the dashboard and choose **Fleet actions → Edit setup**. -2. Ask the chat to remove the Slack mention trigger. -3. Open **Edit instructions** beside the setup chat title and check that the trigger is gone. -4. Close the editor, then choose **Save and publish** above the message field. - -In the terminal, start the same chat with `agentsfleet chat --fleet <FLEET_ID> --setup-revision <SETUP_REVISION> --model <MODEL_REF>`. `<SETUP_REVISION>` is the `setup_revision` field that `agentsfleet --json fleet show <FLEET_ID>` prints. Ask for the change, then run `/review` and `/apply`. - -<Warning> -Deleting the channel's own fleet permanently removes its memory, events, and other fleet records. -The next mention that needs it creates a new fleet with empty memory. -</Warning> - -To remove it, run `agentsfleet fleet delete <FLEET_ID>`. +Remove the Slack trigger under **Wakes on** in the fleet's sidebar. From the terminal, run `agentsfleet fleet triggers list <FLEET_ID>` to find the trigger identifier. Then use `agentsfleet fleet triggers delete <FLEET_ID> <TRIGGER_ID>`. ## Related pages - [Connect a provider](/fleets/connectors) -- [Author a fleet](/fleets/authoring) -- [Install a fleet](/fleets/install) +- [Start and guide a fleet](/fleets/authoring) - [Run and control a fleet](/fleets/running) diff --git a/fleets/tools.mdx b/fleets/tools.mdx index 2892efc..1be48f1 100644 --- a/fleets/tools.mdx +++ b/fleets/tools.mdx @@ -3,28 +3,26 @@ title: Fleet tools description: Understand the tools that a fleet can call. type: explanation audience: user -verified: 2026-11-04 -product_version: 0.73.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What it is -A tool gives a fleet one named action. The fleet author declares allowed tools in the fleet's Definition. +A tool gives a fleet one named action. The runtime determines which tools a run can call. | Group | Tools | |---|---| -| Network | `http_request`, `web_search`, `web_fetch`, `pushover` | +| Network and notifications | `http_request`, `web_fetch`, `web_search`, `notify` | | Memory | `memory_store`, `memory_recall`, `memory_list`, `memory_forget` | -| Schedule | `cron_add`, `cron_list`, `cron_remove`, `cron_update`, `cron_run`, `cron_runs`, `schedule` | +| Access and questions | `request_access`, `ask_user` | +| Triggers and schedules | `trigger_add`, `trigger_list`, `trigger_remove`, `schedule`, `cron_add`, `cron_list`, `cron_remove`, `cron_update`, `cron_run`, `cron_runs` | +| Work and messages | `task_start`, `task_input`, `propose_change`, `update_plan`, `message`, `fleet_activity`, `fleet_steer` | | Delegation | `delegate`, `spawn`, `wait_agent`, `send_input`, `list_agents`, `interrupt_agent` | -| Files | `file_read`, `file_write`, `file_append`, `file_delete`, `file_edit`, `file_read_hashed`, `file_edit_hashed`, `apply_patch` | -| Local work | `shell`, `exec_command`, `write_stdin`, `git`, `image` | -| Browser | `browser`, `browser_open`, `screenshot` | -| Messaging | `message` | -| Planning | `update_plan` | +| Files and local work | `file_read`, `file_write`, `file_edit`, `apply_patch`, `shell`, `exec_command`, `write_stdin`, `git`, `image` | -`exec_command` starts a process the fleet drives across calls, and `write_stdin` sends that process input. `apply_patch` applies a patch to the workspace. `update_plan` records the fleet's plan steps, which the thread shows. +`exec_command` starts a process the fleet can drive across calls. `write_stdin` sends input to that process. `apply_patch` changes files in the sandbox workspace. ## Why it exists @@ -32,27 +30,11 @@ The allowlist limits what the fleet can do. The fleet's instructions do not gran ## How it behaves -The runtime owns the built-in tools. A fleet receives only names listed in `tools` under `config["x-agentsfleet"]`. +The runtime enforces the run's tool and network policy. A call outside that policy returns a tool error. -```json -{ - "tools": ["http_request", "memory_recall"], - "network": {"allow": ["api.github.com"]} -} -``` +A tool such as `http_request`, `git`, or `notify` can need an approved credential. The fleet uses `request_access` to ask, and a person decides the access card in chat. -`http_request`, `web_fetch`, and `pushover` follow the fleet's network host list. -An entry may be a host name or a URL. -Only its host counts, so `https://api.github.com:443/repos` allows these tools to reach `api.github.com` on any port. - -Sandbox traffic also follows the runner operator's network policy. -The fleet's list alone does not describe every destination a sandbox can reach. - -Secret references are filled by the credential firewall during an approved outbound request. - -The runner refuses a run that names an unknown or unavailable tool. -Check spelling against the list above and keep the runner updated. -It does not silently remove that tool and continue. +The runner operator's policy controls what sandbox processes can reach. The fleet's HTTP switches govern its HTTP tools. ### Command endings @@ -69,34 +51,16 @@ The command's outcome remains unknown; inspect its effects before asking the fle ### HTTP egress settings -<Note>This feature is coming soon.</Note> - -Ask for HTTP access in the fleet's setup chat, then review and save the proposed Definition. -The native API also accepts these settings under `config["x-agentsfleet"].network`: - -```json -{ - "http_egress": "restricted", - "package_manager_domains": true, - "allow": ["api.github.com"], - "read_only": true -} -``` +A fleet starts with **Allow all** and **Packages** off. Open its chat to change these switches. -`http_egress` defaults to `restricted`; `allow` names additional exact domains. -`allow` accepts up to 64 entries, each 1 to 255 characters. -`package_manager_domains` defaults to `false`. - -Enable the package preset to allow the standard npm, Python, Rust and Go registries through HTTP tools. -It includes `registry.npmjs.org`, `pypi.org`, `files.pythonhosted.org`, `static.crates.io`, `crates.io`, `index.crates.io`, `proxy.golang.org` and `sum.golang.org`. +| Control | Effect | +|---|---| +| **Allow all** | Allows HTTP tools to reach public destinations. Private addresses still fail the network check. | +| **Packages** | Allows the standard npm, Python, Rust, and Go package registries. | -For public secure HTTP (HTTPS) access, set `http_egress` to `public`. -You then need no individual domain list for HTTP tools. -Private or reserved addresses, credential bindings, repository limits and read-only rules still apply. +The terminal command is `agentsfleet fleet network use <FLEET_ID> <allow-all|private>`. Add `--packages` or `--no-packages` to change the package setting. You can address a fleet as `@NAME`. -`http_egress` and `package_manager_domains` do not enlarge sandbox network access. -Entries in `allow` can also admit sandbox destinations when `read_only` is `false`, subject to the runner operator's policy. -Dedicated dashboard controls are coming later; the setup review describes the saved HTTP egress policy. +The API accepts `http_egress` and `package_domains` on the fleet update route. Include the fleet's current `ETag` in `If-Match`. ### Schedule tools @@ -106,7 +70,7 @@ A fleet can plan its own follow-up runs. `agentsfleet` keeps every schedule and |---|---| | `cron_add` | Creates a recurring schedule from a five-field cron expression, a message, and an optional zone. The zone defaults to Coordinated Universal Time (UTC). | | `schedule` | Creates one follow-up at a moment within the next year. The moment rounds up to the next whole minute, which must be at least a minute away. The schedule runs once and is then removed; running it with `cron_run` counts as that one run. | -| `cron_list` | Lists every schedule of the fleet. Each one names its source: `fleet`, `api` for a person, or `trigger` for a `cron` trigger in its Definition. | +| `cron_list` | Lists every schedule of the fleet. | | `cron_update` | Changes, pauses, or resumes a schedule the fleet created. | | `cron_remove` | Deletes a schedule the fleet created. | | `cron_run` | Runs a schedule now. The new run waits behind the current one. A run that a schedule started cannot run a schedule now. | @@ -131,7 +95,7 @@ Apart from those replaced secrets, the line appears as plain text, as the fleet ### Child agents -A child agent is a second agent inside the same run, working on one task. It shares the run's sandbox, files, memory, and budget. It starts from its task alone and does not see the conversation. +A child agent is a second agent inside the same run, working on one task. It shares the run's sandbox, files, and memory. It starts from its task alone and does not see the conversation. A child holds the tools named in the call's `tools` list, and its parent must hold each one. Without `tools`, the child holds every tool its parent holds. Naming a tool the parent lacks answers `child_tool_not_held`. @@ -156,8 +120,7 @@ A child's status is `running`, `done`, `failed`, or `interrupted`. A `child_id` Every destination must pass the fleet's existing network and request rules. Other methods and requests with a body return the first response. </Note> -In restricted mode, review and save each exact download host outside the enabled package preset before using redirected downloads. -A redirect cannot add a host to the policy. +A redirect must pass the same HTTP policy as the original request. All supplied headers are removed permanently when the origin changes, including when a later redirect returns to the original origin. @@ -180,7 +143,7 @@ A run has at most 4 children working at once and starts at most 16 in all. Past When the run ends, every child still working ends `interrupted`. -Remove a tool name from the Definition in an improvement chat to revoke it. Applying the reviewed change gives later runs the new list. +To revoke a credential, remove it from **Can access**. Later runs and token requests use the updated access. A fleet can hold 32 schedules in total, including up to 16 it creates itself. A 17th fleet-created schedule fails with [`UZ-SCHED-009`](/api-reference/error-codes#UZ-SCHED-009). diff --git a/fleets/troubleshooting.mdx b/fleets/troubleshooting.mdx index 9426fef..3041234 100644 --- a/fleets/troubleshooting.mdx +++ b/fleets/troubleshooting.mdx @@ -3,8 +3,8 @@ title: Troubleshoot a fleet description: Find and fix common fleet failures. type: troubleshooting audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -14,15 +14,15 @@ executable: false |---|---| | Every command fails | Run `agentsfleet doctor`. | | A webhook does not create a run | Read recent webhook events. | -| A connected GitHub App sends nothing | Check `repositories` in the fleet's Definition. | +| A connected GitHub App sends nothing | Check the GitHub event subscription under **Wakes on**. | | A run starts and fails | Read the activity stream error. | | A fleet returns the wrong result | Compare tool calls with the fleet's instructions. | -| New runs are blocked | Check fleet state and budgets. | +| New runs are blocked | Check the fleet state and account balance. | | Files from the last message are gone | Read [What a follow-up message keeps](/fleets/overview#what-a-follow-up-message-keeps). | ## Why it happened -Most failures come from authentication, workspace selection, webhook signatures, missing secrets, tool access, or budget limits. +Most failures come from authentication, workspace selection, webhook signatures, missing secrets, tool access, or a low account balance. Every API error carries a stable error identifier and request identifier. Use both values when comparing a response with the error registry. @@ -43,7 +43,7 @@ Every API error carries a stable error identifier and request identifier. Use bo `<FLEET_ID>` comes from `agentsfleet fleet list`. ```bash - agentsfleet fleet events <FLEET_ID> --since 1h --json + agentsfleet fleet turns <FLEET_ID> --since 1h --json ``` ```text @@ -60,7 +60,7 @@ Every API error carries a stable error identifier and request identifier. Use bo 3. Apply the fix named by the stable error identifier. - `UZ-REQ-001` from a chat or Save points to an invalid Definition field. A Save that stays `installing` names each missing secret or grant. + `UZ-SETUP-008` means no eligible model is available for creation. Ask the workspace owner to check the default model. `UZ-WH-010` points to a signature mismatch. `UZ-AGT-012` points to a fleet that cannot accept work. @@ -74,8 +74,7 @@ Every API error carries a stable error identifier and request identifier. Use bo event arrived and matched no fleet. The status is green either way, so read the body. - Set `repositories` beside `"source": "github"` in the webhook trigger. - Use `owner/repository`; case does not matter. + Ask the fleet to add a GitHub event trigger with the right repository. Use `owner/repository`. Then check the fleet's integration grant: @@ -93,8 +92,8 @@ Every API error carries a stable error identifier and request identifier. Use bo ## How to prevent it -Run `agentsfleet doctor` before installation. Test one manual message before registering a webhook. +Run `agentsfleet doctor` before creating a fleet. Test one manual message before registering a webhook. -Keep the fleet's instruction steps numbered, and name only tools its Definition declares. Store stable provider event identifiers for duplicate protection. +Give the fleet a specific goal and check the approved scope before enabling a provider trigger. -Use fleet budgets to bound cost. Check the activity stream after every applied setup change. +Review spending in **Usage**. Check the fleet's chat after changing its triggers or grants. diff --git a/fleets/webhooks.mdx b/fleets/webhooks.mdx index 195dad5..7efe02c 100644 --- a/fleets/webhooks.mdx +++ b/fleets/webhooks.mdx @@ -3,201 +3,99 @@ title: Configure a webhook description: Send signed provider events to a fleet. type: how-to audience: user -verified: 2026-11-15 -product_version: 0.77.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does -A webhook sends provider events to one fleet. `agentsfleet` verifies the request before creating an event. - -Connect a GitHub App to route its events to subscribed fleets. -For a webhook you configure yourself, use the fleet URL listed in `webhook_urls`. +A webhook delivery wakes a fleet after the server verifies the request. A workspace GitHub App routes its deliveries to fleets subscribed to each repository. ## Before you begin -Create a workspace secret with the sender's signing value in its `webhook_secret` field. For Svix, keep the full `whsec_` value in that field. Use **Secrets** or the [secrets command](/fleets/secrets). - -Add a webhook trigger to the `triggers` list under `config["x-agentsfleet"]` in the fleet's Definition. - -```json -{ - "type": "webhook", - "source": "github", - "repositories": ["owner/repository"], - "events": ["pull_request"], - "credential_name": "github" -} -``` - -[Author a fleet](/fleets/authoring) shows the whole Definition and how to save it. +For a fleet webhook URL, save a workspace secret with the sender's signing value in the `webhook_secret` field. For Svix, store the full `whsec_` value there. Use **Secrets** or [the secrets command](/fleets/secrets). -`source` names the provider in lowercase letters, digits, and hyphens. It is also the last part of the fleet's webhook URL. Two webhook triggers on one fleet cannot share a source, and `approval` is reserved. +A custom webhook source uses lowercase letters, digits, and hyphens. It must be unique within the fleet. The names `approval` and `github` are reserved. -GitHub, Linear and Slack use their built-in signing rules. Other sources require -a `verifier` object. Choose the recipe that matches your provider's webhook guide. +Match the verifier to the sender's signature. Built-in sources `linear` and `slack` choose their own recipe. -All three body recipes use SHA-256 with a Hash-based Message Authentication Code (HMAC), keyed by the stored signing secret. Other digest algorithms fail verification. - -| `scheme` | Signature format | `header` | +| Verifier scheme | What the sender signs | Signature header | |---|---|---| -| `body-hex-sha256` | `sha256=` followed by hex over the raw body | required | -| `body-hex` | bare hex over the raw body | required | -| `body-base64-sha256` | standard padded base64 over the raw body | required | -| `slack-v0` | Slack version and timestamp | omitted; fixed Slack headers | -| `svix-v1` | Svix identifier and timestamp | omitted; fixed Svix headers | - -For example, a provider that sends a prefixed hex signature can use: - -```json -{ - "type": "webhook", - "source": "acme", - "credential_name": "acme-signing", - "verifier": {"scheme": "body-hex-sha256", "header": "x-acme-signature"} -} -``` - -An authored header must be an HTTP token of 1–128 characters, without spaces. -GitHub, Linear and Slack reject a `verifier` override. - -For a Svix sender, use -`"verifier": {"scheme": "svix-v1"}` and store its `whsec_` value in the named -credential's `webhook_secret` field. Trigger order does not affect routing. +| `body-hex-sha256` | The raw body, with a `sha256=` prefix before the hex digest | Specify the provider header | +| `body-hex` | The raw body, with a bare hex digest | Specify the provider header | +| `body-base64-sha256` | The raw body, with a padded base64 digest | Specify the provider header | +| `slack-v0` | Slack's version and timestamp scheme | Slack's fixed headers | +| `svix-v1` | The Svix identifier and timestamp | Svix's fixed headers | -Verification accepts signed incoming events. You still register the URL with -the sender; choosing a recipe creates no provider subscription or account access. - -<Warning> -`repositories` is required when the event arrives through a connected GitHub -App. One App delivery is offered to every fleet in the workspace. A fleet that -names no repository has subscribed to nothing. - -The delivery is then answered `200` with `{"ignored": "UZ-WH-022"}`, so GitHub -records it as successful and no run starts. Read the body, not the status. - -A delivery posted to the fleet's own webhook URL does not need it. That URL -already names the fleet and the source, so the sender chose both. -</Warning> - -Omit `events` to accept every event type the path supports. -List event names to accept only those types. - -The connected App starts runs for `pull_request` and failed `workflow_run` events. -Workflow events must have action `completed` and conclusion `failure`. -Events from repair branches are ignored. - -`deployment_status`, `push`, and `issues` start no run, even if you name them or omit `events`. +The body recipes use SHA-256 and a hash-based message authentication code (HMAC). A custom header is 1 to 128 characters and contains no spaces. ## Steps -Choose the procedure for a connected GitHub App or a webhook URL you configure yourself. - ### A connected GitHub App -Save the fleet first. A grant belongs to a fleet, so the fleet has to exist before its -grant can be approved. - -1. Connect the provider once per workspace. - - Open the account menu and choose **Connect apps**. Choose GitHub and approve the access it requests. The workspace owns the connection. +1. Open **Connected apps** and connect GitHub to the workspace. Allow the App to see the repositories you need. +2. Ask the fleet to add a GitHub event trigger for those repositories. Name the event types you want, such as `pull_request`. +3. Check the trigger under **Wakes on**. Approve a scoped GitHub request in chat if the fleet needs to make calls to GitHub. -2. Save a fleet whose webhook trigger names your repositories. +The App already sends deliveries to agentsfleet. The repository list on the trigger limits where the fleet receives events. It can receive `pull_request` events and failed `workflow_run` events. - A Plugin cannot know your repository. Before you save, ask the chat - to set `repositories` on the webhook trigger, or edit the Definition file, - then review the change. `<DRAFT_ID>`, `<NAME>`, and `<DIGEST>` come from the review. - - ```bash - agentsfleet chat <DRAFT_ID> --no-input --save --name <NAME> --review-digest <DIGEST> - ``` - - ```text - <varies> - ✓ Fleet <NAME>: installing - <varies> - ``` - -3. Approve the fleet's integration grant. - - Saving raises the grant, and the fleet reads `installing` until a person - approves it with [`agentsfleet fleet approvals`](/fleets/approvals). Approving - its last missing grant finishes setup, and the fleet reads `active`. - -Register nothing on the repository. The App already delivers, and its events -reach the fleets whose `repositories` name that repository. +The server ignores deliveries from repair branches. ### A fleet URL -Use this for any provider without a connected App. - -1. Save the fleet, then read its webhook URLs. - - `<FLEET_ID>` comes from `agentsfleet fleet list`. +1. Ask the fleet to add a webhook with a source name, signing secret name, and verifier. Include any event filters you want. +2. Copy the URL listed under **Wakes on**, or list the triggers in your terminal. ```bash - agentsfleet --json fleet show <FLEET_ID> + agentsfleet fleet triggers list <FLEET_ID> ``` ```text <varies> ``` -2. Copy the `url` from the `webhook_urls` entry whose `source` matches the provider. - - Each source has its own URL, ending in `/v1/webhooks/<FLEET_ID>/<SOURCE>`, including Svix senders. The former `/v1/webhooks/svix/<FLEET_ID>` address returns `404`; replace it with the URL Save returns. + Select the entry with the matching source. Its URL ends in `/v1/webhooks/<FLEET_ID>/<SOURCE>`. -3. Register the URL and signing secret with the provider. +3. Register the URL and signing secret with the sender. - For GitHub, open **Repository settings → Webhooks → Add webhook**. Choose the - required event names. +For example, ask the fleet to add an `acme` webhook using secret `acme-signing`, the `body-hex-sha256` scheme, and header `x-acme-signature`. - The GitHub fleet URL accepts pull request (PR) actions `opened`, `reopened`, `synchronize`, and `ready_for_review`. - A connected App also accepts other PR actions. Both paths ignore repair branches. - -4. Send a provider test event. - - The provider owns delivery and retries. `agentsfleet` owns the URL until the - fleet is deleted. +The stored secret name is the trigger's `secret_name`. ## Verify it works -`<FLEET_ID>` comes from `agentsfleet fleet list`. +Check that the fleet received a turn in its chat. Use the fleet identifier from `agentsfleet fleet list` to check in the terminal. ```bash -agentsfleet fleet events <FLEET_ID> --actor 'webhook:*' --since 1h +agentsfleet fleet turns <FLEET_ID> --actor 'webhook:*' --since 1h ``` ```text <varies> ``` -A successful request returns HTTP `202`. A filtered or inactive event returns HTTP `200` without opening a run. +A newly accepted delivery returns HTTP `202`. A filtered or inactive delivery can return HTTP `200` without starting a turn. ## Common problems | Error | Why it happened | Fix | |---|---|---| -| `UZ-WH-001` | The fleet URL is wrong or deleted, or the fleet has no webhook trigger with that source. | Copy the current URL from the fleet. | -| `UZ-WH-010` | The signature does not match. | Use the same signing secret on both sides. | -| `UZ-WH-011` | The signed timestamp differs by more than 5 minutes. | Correct the sender clock. | -| `UZ-WH-020` | The workspace has no usable signing secret for the trigger. | Store `webhook_secret` in the secret named by `credential_name`, or `source` when omitted. Svix requires its full valid `whsec_` value in that field. | -| `UZ-WH-030` | The body exceeds 1 MiB. | Filter or shorten the provider body. | +| `UZ-WH-001` | The webhook URL is wrong, or the fleet or trigger was removed. | Copy the current URL from its trigger. | +| `UZ-WH-010` | Signature verification failed. | Use the same signing secret and recipe on both sides. | +| `UZ-WH-011` | The signed timestamp differs by more than five minutes. | Correct the sender clock. | +| `UZ-WH-020` | The workspace has no usable signing credential. | Set `webhook_secret` in the workspace secret named by the trigger. | +| `UZ-WH-030` | The request exceeds the size limit. | Shorten the body to at most 1 MiB. | -Providers can deliver the same event more than once. Use a stable provider event identifier and make fleet actions safe to repeat. - -Rate-limited requests include `Retry-After`. The provider should wait for that delay before retrying. +For a rate-limited delivery, the sender should wait for the delay in the `Retry-After` response header before retrying. ## Remove or undo -Delete the webhook from the provider first. Open **Fleet actions → Edit setup**, then ask the chat to remove the trigger. -Review the updated setup and choose **Save and publish** above the message field. - -Deleting the fleet removes its webhook URL. Requests to the old URL then return `UZ-WH-001`. +Remove the provider registration, then remove the trigger under **Wakes on**. You can also run `agentsfleet fleet triggers delete <FLEET_ID> <TRIGGER_ID>`. ## Related pages -- [Author a fleet](/fleets/authoring) +- [Start and guide a fleet](/fleets/authoring) +- [Connect a provider](/fleets/connectors) - [Secrets](/fleets/secrets) - [Troubleshooting](/fleets/troubleshooting) diff --git a/index.mdx b/index.mdx index e8f21c7..6b40244 100644 --- a/index.mdx +++ b/index.mdx @@ -3,8 +3,8 @@ title: Welcome to agentsfleet description: Create a fleet, give it a task, and review the result. type: explanation audience: user -verified: 2026-10-24 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -19,7 +19,7 @@ Give repeated work a fleet you can message, inspect, and stop. ## How it behaves -Start with [your first fleet](/quickstart). Describe a task, review the setup, and send a message. +Describe a task and send it as the first message to create a fleet. [Your first fleet](/quickstart) walks through an example. When you need more: @@ -30,8 +30,7 @@ When you need more: ## Limits -Review tools, access, and spending limits before saving. -Setup chats and runs use the workspace owner's balance. +Review access requests in the fleet's chat. Runs use the workspace owner's balance. `agentsfleet` is in early access. Public behavior may change before version 2.0.0. diff --git a/memory.mdx b/memory.mdx index 4206dbe..7b41949 100644 --- a/memory.mdx +++ b/memory.mdx @@ -3,8 +3,8 @@ title: Memory description: Learn what a fleet can remember between events. type: explanation audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -16,7 +16,7 @@ The fleet creates, owns, updates, and removes its memory entries. Workspace memb ## Why it exists -Memory lets a fleet keep useful conclusions between events. Store conclusions instead of full transcripts. +Memory keeps useful conclusions between turns. Ask the fleet to save the important facts and standing guidance. ## How it behaves @@ -31,7 +31,7 @@ Memory lets a fleet keep useful conclusions between events. Store conclusions in `memory_list` filters entries. `memory_forget` deletes one key. -The dashboard's fleet detail page lists each entry's content, category, and update time. Forgetting an entry requires fleet write access. +Open **Fleet actions → Saved memories** to see the content, category, and update time. Removing an entry needs fleet write access. The API route is `DELETE /v1/workspaces/{workspace_id}/fleets/{fleet_id}/memories/{key}`. It returns `204` after deletion and `UZ-MEM-004` when the key is absent. @@ -49,7 +49,7 @@ KEY CATEGORY UPDATED PREVIEW `PREVIEW` shows the opening of the entry's content, so a key's meaning is readable without a second command. -The list is newest first and pages by cursor. `--starting-after <KEY>` resumes after a key an earlier page returned. When more entries remain, the table prints the command that fetches the next page, and `--json` carries `next_cursor` for scripts. +The list starts with the newest entry. If more entries remain, the client prints the command for the next page. Scripts can read `next_cursor` from `--json`. The dashboard's memory panel follows the cursor to the end on its own, so it shows every entry. diff --git a/quickstart.mdx b/quickstart.mdx index b09b851..dc54209 100644 --- a/quickstart.mdx +++ b/quickstart.mdx @@ -3,71 +3,49 @@ title: Your first fleet description: Create a fleet in the dashboard and give it a task. type: tutorial audience: user -verified: 2026-10-31 -product_version: 0.71.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What you will build -Create a fleet that turns team updates into three short bullets. -Use text you paste into chat; this task needs no external app connection. +Create a fleet that turns team updates into three short bullets. It works with text you paste into chat and needs no external app connection. ## Before you begin -You need hosted access and a workspace with an available model and balance. -If you need access, [join the waitlist](https://accounts.agentsfleet.net/waitlist). - -Setup chat and fleet replies are charged to the workspace owner's balance. -Review the proposed spending limit before saving. +You need hosted access and a workspace with an available model and balance. If you need access, [join the waitlist](https://accounts.agentsfleet.net/waitlist). ## Steps -1. [Open the dashboard](https://app.agentsfleet.net) and sign in. Select the workspace where the fleet belongs. -2. Choose **New fleet**. Check the selected model, then send this request: +1. [Open the dashboard](https://app.agentsfleet.net), sign in, and select a workspace. +2. Choose **New fleet**. Check the model beside the message field and switch it if you prefer another available model. +3. Send your first message. ```text - Create a fleet called team-updates. - Summarize each message into three bullets: progress, blockers, and next actions. - Use only the text I send. Do not add tools, connections, schedules, or webhooks. - Flag missing information rather than guessing. - ``` - - The reply proposes a setup in a private chat. Saving creates the fleet; send it a message to start its first run. - -3. Choose **… → Instructions** beside the chat title. Read the instructions and review the proposed access and spending limits. + Summarize this update in three bullets: progress, blockers, and next actions. + Use only the text I send. Flag missing information rather than guessing. - If the proposal needs changes, return to setup chat and describe them. Check the updated proposal before continuing. - -4. Close the editor and choose **Save fleet**. Wait for the confirmed saved version above the message field, then choose **Open fleet** to enter its **Chat**. -5. Send your first task: - - ```text The signup page is ready for review. The welcome email still needs copy from Maya. Tomorrow, review signup and finish the email. ``` - The fleet replies in the conversation. Its wording varies by model. + Sending creates the fleet and starts its first turn. Its chat opens as soon as the fleet exists. ## Verify it works -Check that the reply separates progress, blockers, and next actions without inventing facts. -Send a follow-up asking for a shorter version. - -You can return to the saved fleet from the sidebar. **Activity** shows its runs and costs. +Check that the reply separates progress, blockers, and next actions. Send a follow-up asking for a shorter version. You can return to the same fleet from the sidebar. -If no model is available, ask the workspace owner to check [model settings](/fleets/model-providers). -If saving or a run fails, follow the displayed next step or open [Troubleshooting](/fleets/troubleshooting). -Check a failed run before retrying; another run can incur another charge. +If no model is available, ask the workspace owner to check [model settings](/fleets/model-providers). If a message fails, follow the next action shown in [the fleet's chat](/fleets/running). ## What you learned -You described a task, checked its setup, saved a fleet, and reviewed its reply. +You created a fleet by sending a message and refined its answer in the same chat. ## Related pages -- [Change a fleet's setup](/fleets/authoring) +- [Start and guide a fleet](/fleets/authoring) - [Connect an app](/fleets/connectors) - [Run and control a fleet](/fleets/running) -- [Build a GitHub pull request (PR) reviewer from the terminal](/tutorials/github-pr-reviewer) +- [Build a GitHub pull request reviewer](/tutorials/github-pr-reviewer) diff --git a/runners.mdx b/runners.mdx index ba96c2f..18c53b6 100644 --- a/runners.mdx +++ b/runners.mdx @@ -1,314 +1,132 @@ --- -title: Runners -description: What a runner does, the policy you assign it, and when it stops taking work. +title: Manage runners +description: Register Linux runner hosts, set their policies, and read their state. type: explanation audience: operator -verified: 2026-11-09 -product_version: 0.75.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What it is -A runner is a host that runs your fleets. It takes work from `agentsfleetd`, runs it inside a sandbox, and reports the result back. - -You enrol every runner from the dashboard. Startup requires a runner token. -The runner receives provider credentials only for authorized calls, without database credentials, cache credentials, or direct vault access. +A runner is a Linux host that takes work from agentsfleet. It starts the model and runs local tools in a sandbox. The daemon assigns work and keeps the final result. ## Why it exists -Runners run fleet code separately from the control plane. -Their tokens reach assigned work without direct access to the control plane's data stores. - -Runners are replaceable. When one stops answering, unfinished work can be assigned again after its lease expires. -External actions must be safe to repeat if the first runner acted before losing contact. +Runners keep fleet tools separate from the service that stores accounts, permissions, and messages. You can add hosts for capacity and limit what each host can do. ## How it behaves ### Enrolling a host -Open **Admin → Runners → Add runner** and fill in the policy. `agentsfleetd` mints a runner token and shows it once. Copy it before you close the dialog, because it is never shown again. +Use an operator credential with `runner:register`. Choose the host identifier and prepare its assigned policy JSON file. The command writes the token to a new private file. -Put that token on the host, then start `agentsfleet-runner`. [Install a runner](/runners/install) covers the binary and its toolbox. The host reads three required variables and seven optional ones: +```bash +agentsfleet platform runners register --host-id <HOST_ID> --policy <POLICY_FILE> --token-out <TOKEN_FILE> +``` -| Variable | What it sets | Default | Valid values | -|---|---|---|---| -| `AGENTSFLEET_API_URL` | The control plane for retained HTTP operations, such as credentials and memory access. | none, required | URL beginning with `http://` or `https://` | -| `AGENTSFLEET_RUNNER_STREAM_URL` | The private runner listener for work and results. | none, required | An `https://` origin, such as `https://runner.example.net:4443`, with no credentials, path, query or fragment | -| `AGENTSFLEET_RUNNER_STREAM_TLS_CA_CERT_FILE` | Extra trusted certificate-authority roots, in Privacy-Enhanced Mail (PEM) format. | operating-system trust store | A readable public certificate bundle | -| `AGENTSFLEET_RUNNER_TOKEN` | The runner's identity, such as `agt_rtest00000000`. | none, required | The token the dashboard showed once | -| `RUNNER_STORAGE_HOME` | Where the host keeps sandboxes, repository mirrors, and the toolbox. | `/var/lib/agentsfleet-runner` | An absolute directory path | -| `AGENTSFLEET_LOG_LEVEL` | The lowest level the runner writes to standard error. | `info` | `off`, `error`, `warn`, `info`, `debug`, `trace` | -| `OTEL_EXPORTER_OTLP_ENDPOINT` | Where the runner sends its traces and metrics, over OpenTelemetry Protocol (OTLP). Unset sends nothing. | none | An `http` or `https` URL with a host and no query, such as `http://127.0.0.1:4318` | -| `OTEL_EXPORTER_OTLP_PROTOCOL` | How the runner encodes what it sends. | `http/protobuf` | `http/protobuf`, `http/json` | -| `OTEL_EXPORTER_OTLP_TIMEOUT` | How long one send may take. | 10,000 milliseconds | A whole number of milliseconds above 0 | -| `OTEL_SERVICE_INSTANCE_ID` | The name each trace and metric from this host carries, so two hosts' counts stay apart. | none | Any text, such as the host's name | +```text +<varies> +``` -An unreadable log level falls back to `info`. A missing or malformed address or token stops the runner at start and names the variable. +`<HOST_ID>` names the machine. `<POLICY_FILE>` is the local policy file, and `<TOKEN_FILE>` is the new path for the runner token. The server shows the token only at creation or rotation. -No policy value is read from the host. A runner that carried its own isolation setting could disagree with the dashboard, and nothing would compare the two. +[Install the runner](/runners/install) on that host. An account with `runner:tenant` can use `agentsfleet runners register` for its own work. A tenant-controlled runner handles work from its account using that account's model key. ### The runner connection -Each host opens one authenticated connection to the private runner listener. -Work, progress, results and fleet setup calls share that connection. +The runner opens one authenticated connection to its private listener. It prefers HTTP/3 and can use HTTP/2 if the first connection fails in an eligible way. -The runner prefers HTTP/3 and uses HTTP/2 after eligible connection failures. -A healthy connection keeps its chosen transport until it closes. - -Allow User Datagram Protocol (UDP) and Transmission Control Protocol (TCP) to the listener's port, normally 4443. -Both transports require Transport Layer Security (TLS) 1.3 with `X25519MLKEM768` key exchange. -The listener's certificate must match the hostname or address in `AGENTSFLEET_RUNNER_STREAM_URL`. +| Required setting | What it supplies | +|---|---| +| `AGENTSFLEET_API_URL` | The control-plane address for remaining HTTP requests | +| `AGENTSFLEET_RUNNER_STREAM_URL` | The private secure HTTP (HTTPS) listener origin, without a path or credentials | +| `AGENTSFLEET_RUNNER_TOKEN` | The token issued for this host | -Your operator supplies a private network route to that listener. -Set `AGENTSFLEET_RUNNER_STREAM_TLS_CA_CERT_FILE` when its certificate uses a private issuer. -The runner needs the public issuer certificate, never the issuer's signing key or the server's private key. +Your operator supplies the route to the listener. Allow its port over User Datagram Protocol (UDP) and Transmission Control Protocol (TCP). The default port is 4443. -An explicit `HTTPS_PROXY` selects HTTP/2 through an HTTP CONNECT proxy. -`NO_PROXY` selects hosts that bypass that proxy. -Certificate failures stop connection setup; fallback keeps the same verification requirements. +Both transports use Transport Layer Security (TLS) 1.3 with `X25519MLKEM768` key exchange. The certificate must match the listener's hostname. For a private issuer, set `AGENTSFLEET_RUNNER_STREAM_TLS_CA_CERT_FILE` to its public certificate bundle. ### Results during an outage -The runner retries unacknowledged results from memory with jittered delays of 250 milliseconds to sixty seconds. -The daemon saves accepted results and billing records. -The runner writes no report files and replays no results from a previous process. - -A connection loss keeps pending results in memory while the runner reconnects. -Process loss can discard results or usage that the daemon has not accepted. - -On service shutdown, the runner allows thirty-five seconds for accepted work and result delivery. -It then stops remaining work and allows five seconds for worker cleanup. -Process exit can discard results still awaiting acknowledgement. +The runner retries a result it still holds while it reconnects. Stopping the process can lose results the daemon has yet to accept. The daemon keeps results it already accepted. ### What the runner sends to a collector -The runner holds no telemetry credential. Setting `OTEL_EXPORTER_OTLP_HEADERS`, or a signal's own header variable such as `OTEL_EXPORTER_OTLP_TRACES_HEADERS`, stops the runner at start and names the variable. A user name or password in the endpoint stops it too, so give the credential to the collector on the host. - -The runner sends uncompressed. Any `OTEL_EXPORTER_OTLP_COMPRESSION` variable, a signal's own included, stops it at start. - -With an endpoint set, the runner sends one trace for each run. The trace holds the run, each model turn, and each tool call, with the lease and event identifiers. +Set `OTEL_EXPORTER_OTLP_ENDPOINT` to send traces and metrics to an OpenTelemetry collector. The runner sends timings and identifiers for runs and tool calls. Prompts, replies, tool outputs, and credentials stay out of these records. -It also sends counts and timings with no tenant or fleet name on them: - -- model turn time and retries, by provider -- sandbox start time -- live updates it could not deliver -- memory saves that failed -- tool call time, by tool -- processes the kernel killed inside a sandbox for lack of memory -- sandboxes kept between runs, by what became of them - -It counts what it could not deliver to the collector in `agentsfleet_runner_otlp_entries_discarded_total`. It never sends its log lines, a prompt, a reply, a tool's output, or a credential. Log lines stay on standard error, for the host's log store. +The runner rejects credential headers and authentication in the collector URL. Configure authentication on the collector if it forwards data. ### The policy you assign -Change the policy under **Admin → Runners → Edit**. -`agentsfleetd` sends the update over the existing connection. -The next heartbeat checks the policy again if that update is lost. - -<Note>The grouped editor and TypeSafe Jev default are coming soon.</Note> - -The editor groups isolation, network access, durable work, and advanced settings. -The fields scroll while **Save** stays visible. - -| Field | What it sets | Default | Valid values | -|---|---|---|---| -| Sandbox engine | The host runtime. The dashboard shows the supported engine without changing the host's startup settings. | Bubblewrap | Bubblewrap | -| Isolation | How strongly the host separates a running fleet from itself. | Landlock | Landlock, Nested container, None | -| Enable all public internet access | Allow outbound connections, subject to each fleet’s own rules. | enabled | enabled, disabled | -| Enable package manager domains | Allow the standard package registry hosts while public access is off. | native package preset | enabled, disabled | -| Additional allowed domains | Open the pencil popup to add exact hosts, optionally with ports. | none | Up to 32 total hosts, including the enabled package preset | -| Workers | How much work the host runs at once. Increasing beyond its startup worker count requires a runner restart. Lowering below current usage can block renewals; wait for completion reports first. | 1 | 1 to 64 | -| Durable tasks | Let the runner continue tasks across sessions. Changes apply to new work. | enabled | enabled, disabled | -| Decision model | The reviewed model used for request and goal checks. The dashboard retains existing model selections. | TypeSafe Jev, when enabled in the catalogue | Enabled reviewed decision models, or an explicit None choice | -| Mounts | Extra host directories the sandbox can read or write. | the daemon's own baseline paths | Up to 16 absolute paths, each read-only or read-write | - -Turn off **Enable all public internet access** to limit outbound connections. Enable package manager domains or add hosts through the pencil beside **Additional allowed domains**. - -Turning off both switches with no additional domains blocks outbound connections. **Save** in the popup updates the form; **Save** in the runner editor applies the assignment. Unchanged popup saves preserve inactive hosts in an existing blocked assignment. - -### TypeSafe Jev credentials - -A platform admin enables the reviewed `jev-latest` model and stores its API key in the platform-admin workspace's encrypted Secrets. -Use the secret name `typesafe` and field `api_key`. -The deployment must identify that workspace through `PLATFORM_ADMIN_WORKSPACE_ID`. - -The dashboard preselects the enabled Jev catalogue entry; it does not create a model or save a provider key. -If Jev is unavailable, configure it or select another enabled decision model before saving. - -Choosing **None** deliberately continues without a decision model, including when the operator lacks model catalogue access. -API clients still supply their decision model identifier explicitly. - -The daemon reads the provider key for each authorized decision call. -A missing or revoked key blocks that call without using an environment-key fallback. - -The three isolation settings differ in what enforces the boundary: - -| Isolation | What it means | -|---|---| -| Landlock | The Linux kernel restricts which files the fleet can touch. | -| Nested container | The fleet runs inside a container on a Linux host or virtual machine. | -| None | No sandbox. Development builds only. | - -### Labels - -Labels are short names you give a runner when you enrol it. Change them under **Admin → Runners → Edit**, or send `PATCH /v1/fleets/runners/{runner_id}` with a `labels` list. - -The new list replaces the old one, and an empty list clears every label. A runner holds at most 32 labels of at most 64 bytes each. `agentsfleetd` reads the labels before offering work, so the host needs no restart. - -### The sandbox each run gets - -A run whose fleet declares a sandbox tool gets its own sandbox. No fleet setting picks its size yet, so every sandbox gets these defaults. - -| Limit | Default | Valid range | -|---|---|---| -| Memory | 2 GiB | 256 MiB to 64 GiB | -| Processor | 2 cores | 0.25 to 32 cores | -| Processes and threads | 512 at once | none, always 512 | -| Workspace disk, holding `/workspace` and `/tmp` | 4 GiB | 1 GiB to 256 GiB | -| Disk throughput | 200 MiB per second each way | none | - -A runner refuses a run that asks for a size outside these ranges, before it builds a sandbox. - -Commands share the memory limit minus 64 MiB, which the sandbox keeps for itself, and there is no swap. When commands need more, the kernel kills one of their processes. The command it belonged to reads `Process killed: out of memory` with the code `out_of_memory`, and the sandbox and its files stay for the next command. +This example sets one worker on a Linux host. It blocks sandbox egress and disables durable work. Save it as a starting point for the file you pass to `--policy`. -`/tmp` lives on the workspace disk, so the two share one size limit. A write past it fails with `No space left on device`, and the sandbox keeps running. The kernel refuses a new process or thread past 512. +```json +{ + "sandbox_tier": "landlock_full", + "network_policy": "deny_all_egress", + "registry_allowlist": [], + "worker_count": 1, + "extra_binds": [], + "durable_tasks_enabled": false +} +``` -Shared memory, `/dev/shm`, holds at most a quarter of the memory limit, 512 MiB by default. A write past it fails with `No space left on device`, and later commands keep the rest of the memory. +Set the sandbox tier, network policy, worker count, and durable task setting in the assigned policy. Use `agentsfleet platform runners update <RUNNER_ID> --policy <POLICY_FILE>` to replace it. -After a run finishes without failing, the runner keeps its sandbox for 10 minutes for the fleet's next run. A kept sandbox is frozen, and it still holds its memory and disk. The runner keeps at most one per worker, drops the oldest first, and drops other fleets' sandboxes when every worker is busy. +Each heartbeat reports what the host can enforce. If the host cannot meet its assigned policy, the daemon marks it degraded and withholds new work. The next heartbeat checks the new policy. -While a runner keeps a fleet's sandbox, only that runner takes the fleet's next run, unless it goes offline. [What a follow-up message keeps](/fleets/overview#what-a-follow-up-message-keeps) lists what ends the wait early. +Change labels with `agentsfleet platform runners update <RUNNER_ID> --labels <LABELS>`. Labels help choose a runner for a fleet. They grant no permissions. ### Tools inside a sandbox -The read-only toolbox includes Git, Python, Node.js, uv, ripgrep, jq and curl. -It contains neither apt, dpkg nor Perl. Install project dependencies in the writable workspace. +A Linux sandbox uses bubblewrap and Landlock. Local tools work inside the fleet's workspace. The host's network policy controls where sandbox processes can connect. -Common Git operations, including clone, commit, merge, rebase, fetch, pull and push, remain available. -Perl-based helpers such as `git request-pull` and `git filter-branch` are unsupported. - -### What a sandbox can reach - -The network policy decides what each sandbox reaches. - -| Controls | What the sandbox reaches | -|---|---| -| Public internet access enabled | The host’s network, subject to each fleet’s rules. | -| Public access off, package domains or additional hosts enabled | Allowed addresses only. | -| Both switches off, no additional domains | Nothing beyond its loopback interface. | - -For limited network access, the runner combines enabled package hosts and additional allowed domains with the fleet’s `network.allow` hosts. -A fleet that sets `read_only` reaches its hosts only through `http_request`. - -The package preset includes `registry.npmjs.org`, `pypi.org`, `files.pythonhosted.org`, `crates.io`, `index.crates.io`, `static.crates.io`, `proxy.golang.org`, and `sum.golang.org`. -Custom domains supplement this preset when package manager domains are enabled. -Wildcard domains are unsupported; add each exact host. - -The runner looks up each host's Internet Protocol version 4 (IPv4) addresses on the host itself. The sandbox finds those names in its own `/etc/hosts` and has no Domain Name System (DNS) resolver. Traffic to port 53 is dropped, so a name outside the list never resolves. - -Each sandbox joins the host through its own virtual Ethernet pair. `nf_tables` rules on the host side of that pair admit only the allowlist's addresses. The rules live in the host's network namespace, so code inside the sandbox cannot see or change them. - -The runner refuses a run before its sandbox starts when a listed host has no IPv4 address. It also refuses a run whose allowlist holds more than 256 addresses. The run then fails with "the egress allowlist could not be resolved into addresses this runner can admit". - -Hosts under `network.allow` must resolve to public addresses. Private or reserved addresses include `10.0.0.0/8`, `100.64.0.0/10` and the cloud metadata address `169.254.169.254`. A host resolving to one fails the run with "the fleet allows an egress host at a private or reserved address". - -Runner-approved package hosts and additional domains are exempt, so you can use a package mirror on your own network. - -In both cases the runner's log names the host and never an address. - -Limited network access needs three things from the host: - -- a kernel with `nf_tables` -- IPv4 forwarding on, `net.ipv4.ip_forward=1` -- no host firewall whose forward policy drops traffic - -At start, the runner tests an isolated network pair and removes it. A failed test reports `egress_enforcement: false` in the heartbeat. - -A runner assigned limited network access then reads degraded with the reason `egress enforcement unavailable`. +The `git` tool can read and change its local checkout. Remote commands such as `git push`, `git fetch`, and `git clone` are refused. ### The states a runner shows -The runner page shows two facts side by side: what you have told the runner to do, and whether the host is answering. +Get `<RUNNER_ID>` from `agentsfleet platform runners list`. Inspect its state before changing or stopping it. -The first is the admin state, which the API returns as `status`. You set it with the actions below. +```bash +agentsfleet platform runners show <RUNNER_ID> +``` -Only `active` runners can send authenticated requests. +```text +<varies> +``` -| Admin state | Meaning | +| Administrative state | Meaning | |---|---| -| `active` | Takes work. The normal state. | -| `cordoned` | Stops new work and blocks runner requests. | -| `draining` | Drain requested; runner requests are blocked. | -| `drained` | No remaining work; runner requests stay blocked. | -| `revoked` | Its token is blocked. This is terminal for the enrolled host. | +| `active` | The runner can take work. | +| `cordoned` | Operator action stopped work and runner requests. | +| `draining` | The operator requested a drain. | +| `drained` | The runner has finished draining. | +| `revoked` | The runner token is blocked. | -The second is liveness. The host reports it through its heartbeat; you cannot set it. - -| Liveness | Meaning | -|---|---| -| `registered` | Enrolled, but no heartbeat has arrived yet. | -| `online` | Heartbeating and idle. | -| `busy` | Heartbeating and running work. | -| `offline` | Heartbeats stopped. Its work expires and another runner takes it. | +Liveness shows what the host is doing. `registered` has yet to send a heartbeat. `online`, `busy`, and `offline` mean connected and idle, running work, or missing heartbeats. ### When a runner stops taking work -A runner reports what its kernel can actually enforce on every heartbeat. `agentsfleetd` compares that report against the policy you assigned. - -When the host cannot meet the assignment, the runner is marked **degraded** and is sent no work. The reason names the one missing piece, such as cgroup controllers not delegated. Fix that piece, or lower the assignment, and the next heartbeat clears the mark. - -The runner page carries the verdict of those checks beside the runner's state and labels. It reads **checks passed**, **N checks failed**, **checks stale**, **checks pending**, or **checks never run**. Select it to read the full report, check by check. +Use `agentsfleet platform runners cordon`, `drain`, or `revoke` with the runner identifier. Let the runner report active work before imposing a cordon or drain. Those actions can block renewals and completion reports. -You can also stop a runner deliberately: - -- **Cordon** stops new work reaching it. -- **Drain** requests a drain and stops new work reaching it. -- **Revoke** blocks its token and tells the runner to stop. - -<Warning> -Cordon and Drain also block renewals and completion reports for work already running. -Wait for the runner to finish and report its work before using either action. -Unreported work can expire and run again elsewhere. -</Warning> - -A runner that disappears needs no manual reassignment. -Unfinished work becomes available again after its lease expires. -Work whose completion was accepted stays complete. +If the host disappears, its unfinished work becomes eligible after the lease expires. See [Recovery after a runner fails](/runners/recovery). ### Lease history -Each runner page lists the leases the runner held, newest first. A lease is one piece of fleet work the runner took. `GET /v1/fleets/runners/{runner_id}/leases` returns the same list. - -A finished lease stays in the history for 30 days, counted from when it finished. Deleting its fleet does not remove it. A lease still running is never removed. +A lease records which runner took a run. Use `agentsfleet platform runners runs <RUNNER_ID>` to read its runs. Use `agentsfleet platform runners history <RUNNER_ID>` to inspect events such as registration, cordon, and return. -The API returns `fleet_name: null` once the fleet is gone; the dashboard still shows its callsign from the saved identifier. -The event type and actor are blank once the event is gone. - -Each lease carries `destination`, which says whether you can open its fleet: - -| `destination` | Meaning | -|---|---| -| `available` | The fleet exists in your account. **Open fleet** links to it. | -| `fleet_deleted` | The fleet was deleted. The lease keeps its fleet identifier, and no link is shown. | -| `not_permitted` | The fleet belongs to another account. No link is shown. | - -The runner's lifetime totals count every lease it took, so they can exceed the history the page lists. +The API exposes the same lists at `GET /v1/admin/runners/{runner_id}/runs` and `GET /v1/admin/runners/{runner_id}/history`. ## Limits -- **Limited network access supports IPv4.** The runner refuses a run whose listed host has only Internet Protocol version 6 (IPv6) addresses. -- **A run keeps the addresses it started with.** A host whose address changes during a run stays unreachable until the next run looks it up again. -- **None is refused outside development.** A release build of `agentsfleetd` rejects it at startup. -- **A run sends at most 256 spans, and the runner at most 128 a second.** The rest are counted in `agentsfleet_runner_spans_suppressed_total`, not sent. Every run keeps its top-level span, so each run stays one trace. -- **A host can lie about what it enforces.** The capability report is self-declared, so treat placement as something you decide, not something the host proves. -- **Upgrade the runner and server together.** Both must support the same runner protocol; the previous HTTP work operations are removed. +A host must support the isolation its policy requires. Use `agentsfleet-runner probe` before starting the service. + +Upgrade the runner and daemon together so they use the same protocol. A tenant runner handles only its account's work and cannot use the platform model credential. ## Related pages -- [Recovery after a runner fails](/runners/recovery) - [Install a runner](/runners/install) -- [Install a fleet](/fleets/install) -- [Run and control a fleet](/fleets/running) -- [Manage secrets](/fleets/secrets) +- [Recovery after a runner fails](/runners/recovery) +- [Command reference](/cli/agentsfleet) diff --git a/runners/install.mdx b/runners/install.mdx index f060de8..313b005 100644 --- a/runners/install.mdx +++ b/runners/install.mdx @@ -3,8 +3,8 @@ title: Install a runner description: Put the runner binary and its signed toolbox on a Linux host, check the host, and start the runner as a service. type: how-to audience: operator -verified: 2026-11-19 -product_version: 0.75.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -39,11 +39,11 @@ The certificate must match the listener's hostname or address. ## Steps -1. Download `agentsfleet-runner-bundle-linux-amd64.tar.gz` from the [release](https://github.com/agentsfleet/agentsfleet/releases) you want to run. +1. Download `agentsfleet-runner-linux-amd64.tar.gz` from the [release](https://github.com/agentsfleet/agentsfleet/releases) you want to run. - The bundle holds the binary and the toolbox image with its manifest and signature. It also holds the image's software bill of materials, its vulnerability scan, and `release.pub`, the public signing key. + Download the matching toolbox image, manifest, and manifest signature from that same release. They are separate release assets. -2. Make a private scratch directory for the bundle, and keep its path in `BUNDLE_DIR`. Run the remaining steps in this same shell. +2. Make a private scratch directory for the release files, and keep its path in `BUNDLE_DIR`. Run the remaining steps in this same shell. ```bash BUNDLE_DIR=$(mktemp -d) @@ -55,10 +55,10 @@ The certificate must match the listener's hostname or address. `mktemp -d` makes a new directory that only root can open. Do not reuse a fixed path under `/tmp`. Another user who creates it first could swap the binary before you install it. -3. Unpack the bundle into it. +3. Unpack the runner archive into it and copy the three toolbox files there. ```bash - tar -xzf agentsfleet-runner-bundle-linux-amd64.tar.gz -C "$BUNDLE_DIR" + tar -xzf agentsfleet-runner-linux-amd64.tar.gz -C "$BUNDLE_DIR" ``` ```text @@ -73,12 +73,9 @@ The certificate must match the listener's hostname or address. ```text agentsfleet-runner-linux-amd64 - release.pub toolbox-<varies>.erofs toolbox-<varies>.json toolbox-<varies>.json.sig - toolbox-<varies>.sbom.spdx.json - toolbox-<varies>.scan.json ``` The part between `toolbox-` and the extension is the image's SHA-256 digest. The steps below call it `<SHA256>`. @@ -119,7 +116,7 @@ The certificate must match the listener's hostname or address. 8. Write the three required variables to `/etc/default/agentsfleet-runner` with root-only read permissions. - Replace `<API_URL>` with your control-plane address and `<RUNNER_TOKEN>` with the dashboard token. + Replace `<API_URL>` with your control-plane address and `<RUNNER_TOKEN>` with the token issued by the registration command. Your operator supplies `<STREAM_ORIGIN>`, such as `https://runner.example.net:4443`, without a path, query, fragment or embedded credentials. ```ini @@ -134,36 +131,28 @@ The certificate must match the listener's hostname or address. AGENTSFLEET_RUNNER_STREAM_TLS_CA_CERT_FILE=<CA_CERT_FILE> ``` - [Runners](/runners#enrolling-a-host) lists the remaining optional variables. + Keep the token file and the environment file readable only by the service operator. -9. Write the service to `/etc/systemd/system/agentsfleet-runner.service`. +9. Install `deploy/baremetal/agentsfleet-runner.service` from the matching release's source tree. Replace `<UNIT_FILE>` with the downloaded file's local path. - ```ini - [Unit] - Description=agentsfleet Runner - After=network.target + ```bash + install -m 644 <UNIT_FILE> /etc/systemd/system/agentsfleet-runner.service + ``` - [Service] - ExecStartPre=-+/usr/sbin/modprobe erofs - ExecStart=/usr/local/bin/agentsfleet-runner run - EnvironmentFile=/etc/default/agentsfleet-runner - Environment=OTEL_SERVICE_INSTANCE_ID=%H - RuntimeDirectory=agentsfleet - Environment=HOME=/run/agentsfleet - Restart=always - RestartSec=5 - KillMode=mixed - TimeoutStopSec=300 - Delegate=cpu io memory pids - DelegateSubgroup=runner - - [Install] - WantedBy=multi-user.target + ```text + (no output) ``` - `ExecStartPre=` loads the EROFS module before every start, because the runner refuses a kernel that has not loaded it yet. The leading `-` lets the service start on a host without `modprobe`, or one whose kernel has EROFS built in. + The shipped unit sets resource limits, filesystem protections, and its restart policy. It selects `/etc/agentsfleet/agentsfleet-runner.toml`. - `Delegate=` and `DelegateSubgroup=` give the runner its own cgroup subtree. Each sandbox's memory, processor, process, and disk limits are written there. `%H` names each host's telemetry after the host. + Create that profile before starting the unit. An empty file uses the defaults below. + + If you set a custom `RUNNER_STORAGE_HOME`, add its absolute path to a service drop-in. This gives the runner write access under the shipped filesystem protections. + + ```ini + [Service] + ReadWritePaths=<RUNNER_STORAGE_HOME> + ``` 10. Load the service and start it. @@ -223,7 +212,7 @@ agentsfleet-runner probe The `kvm` check reports whether `/dev/kvm`, the Kernel-based Virtual Machine (KVM) device, opens. A failed `kvm` check does not stop the runner, because the bubblewrap sandbox needs no KVM device. -Open **Admin → Runners** in the dashboard. The new runner reads `online` within one heartbeat. +Use `agentsfleet platform runners show <RUNNER_ID>` to check the host. A healthy, idle host reports `online` after its first heartbeat. ## Common problems @@ -262,18 +251,14 @@ rm -f /var/lib/agentsfleet-runner/toolbox/incoming/toolbox-* (no output) ``` -Then unpack the previous release's bundle as in steps 2 to 4. Install its binary as in step 5, stage its toolbox as in step 7, and start the service. +Then unpack the previous release's runner archive and stage its matching toolbox. Install its binary as in step 5, stage its toolbox as in step 7, and start the service. -To remove the runner for good, revoke it under **Admin → Runners**. +To remove the runner for good, run `agentsfleet platform runners revoke <RUNNER_ID>`. Deleting `/var/lib/agentsfleet-runner` removes its toolbox, repository mirrors and sandbox files. Unacknowledged results exist only in the running process and can be lost when that process stops. ## Runner-local settings -<Note> -Runner profiles are coming with the next checkpoint recovery release. -</Note> - The managed host deploy installs `/etc/agentsfleet/agentsfleet-runner.toml` and selects it through `AGENTSFLEET_RUNNER_CONFIG_FILE`. For a manually installed service: @@ -342,11 +327,11 @@ Required file restores wait for a runner-wide admission slot while lease renewal Optional captures skip a busy boundary and preserve the previous committed checkpoint. Each admitted operation retains the compiled four-transfer window. -The runner refuses unreadable files, unknown settings, invalid bounds, and renewal intervals longer than the supported safety windows. +The runner refuses unreadable files, unknown settings, and invalid bounds. Keep tokens in the environment file. Worker count remains assigned per runner by the daemon. ## Related pages - [Runners](/runners) -- [Install a fleet](/fleets/install) +- [Start a fleet from the terminal](/fleets/install) diff --git a/runners/recovery.mdx b/runners/recovery.mdx index d38bca4..3b8b492 100644 --- a/runners/recovery.mdx +++ b/runners/recovery.mdx @@ -3,13 +3,11 @@ title: Recovery after a runner fails description: Checkpoints, automatic quarantine, and the runner status commands. type: explanation audience: operator -verified: 2026-11-18 -product_version: 0.78.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- -<Note>This feature is coming soon.</Note> - ## What it is An eligible platform runner can resume unfinished work from its last complete checkpoint after the previous runner fails. @@ -104,11 +102,11 @@ The new attempt replaces the provisional reply; the final saved reply remains au ### Reading quarantine status -After 105 seconds without heartbeats, a background sweep marks the runner offline and adds automatic quarantine. +By default, the daemon marks a disconnected runner offline and places it in quarantine 114 seconds after its last heartbeat. This quarantine stops new assignments while preserving the separate operator status. Thirty seconds of continuous valid, healthy heartbeats clears automatic quarantine. -A heartbeat gap of 20 seconds or a degraded heartbeat resets the return check. +A gap of two heartbeat intervals or a degraded heartbeat resets the return check. Clearing automatic quarantine preserves an operator's cordon, drain, or revocation. Use credentials with `runner:read` permission. @@ -137,8 +135,8 @@ The runner response omits `cordon` when automatic quarantine is absent. The filter above then shows `"cordon": null`. - `agentsfleet platform runners list` shows connection state and automatic quarantine across hosts. -- `agentsfleet platform runners events <RUNNER_ID>` shows cordon and return events. -- `agentsfleet platform runners leases <RUNNER_ID>` shows the host's work history. +- `agentsfleet platform runners history <RUNNER_ID>` shows cordon and return events. +- `agentsfleet platform runners runs <RUNNER_ID>` shows the host's work history. ## Limits diff --git a/snippets/contact.mdx b/snippets/contact.mdx index bb9aa71..4e80dd4 100644 --- a/snippets/contact.mdx +++ b/snippets/contact.mdx @@ -1,3 +1,3 @@ -{/* Public support address. Runtime copies use the same value. Change every copy together. */} +{/* Public support address. Keep it in sync with the address in the main repository. */} export const SUPPORT_EMAIL = "agentsfleet@agentmail.to"; diff --git a/snippets/rates.mdx b/snippets/rates.mdx index 239d425..d39e38f 100644 --- a/snippets/rates.mdx +++ b/snippets/rates.mdx @@ -1,20 +1,4 @@ -{/* - Single source of truth for agentsfleet pricing strings on the docs site. - - Each string mirrors a rate the daemon declares once, in Rust: - - STARTER_CREDIT — STARTER_CREDIT_NANOS in rustd/crates/afd_tenant/src/signup/mod.rs - - EVENT_RATE — no receive charge exists: afd_billing charges usage only - (billing_and_provider_keys.md §3) - Nanos convert to dollars through NANOS_PER_USD in afd_core::money. No client - recomputes a charge; each renders the amount the daemon served. - - Bumping a rate needs a paired PR across the lead repo's constant AND this - snippet; no automated cross-repo guard exists yet. The per-second run rate - (RUN_NANOS_PER_SEC in nanos.rs) has no docs-side display string: it is - announced inline in changelog.mdx as point-in-time history, not surfaced as a - live constant. Historical per-stage rates from before the run-fee rebill are - likewise frozen inline in changelog.mdx (STAGE_*_M66), not here. -*/} +{/* Match the daemon's STARTER_CREDIT_NANOS and usage-only billing. */} export const STARTER_CREDIT = "$5"; export const EVENT_RATE = "free"; diff --git a/tutorials/github-pr-reviewer.mdx b/tutorials/github-pr-reviewer.mdx index fd83b38..a4b563d 100644 --- a/tutorials/github-pr-reviewer.mdx +++ b/tutorials/github-pr-reviewer.mdx @@ -1,211 +1,61 @@ --- -title: Build a GitHub PR reviewer -description: Create your first fleet and send it a GitHub event. +title: Review GitHub pull requests +description: Start a fleet from the terminal and have it review GitHub pull request changes. type: tutorial audience: user -verified: 2026-10-24 -product_version: 0.65.0 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What you will build -You will create a GitHub pull request (PR) reviewer fleet from a Definition file. -It will receive PR events and post review comments. +Create a fleet that reviews pull requests in one GitHub repository. Its review appears in the fleet's chat. ## Before you begin -If you need hosted access, [join the waitlist](https://accounts.agentsfleet.net/waitlist). Public website access links open the waitlist, including **Sign in** links. +[Install the command-line interface (CLI)](/cli/install) and sign in. Select a workspace with an available model and balance. -If you already have access, sign in to the dashboard to manage your workspace. Choose **Manage account** for your profile and sign-in security. You can also open [account settings](https://app.agentsfleet.net/settings/account) directly. - -You need Bun 1.4 or later, an `agentsfleet` account, and a GitHub repository that you can manage. - -Your workspace owner must enable a model with credentials, an API format, an endpoint, and token limits. -Copy its eligible `ref` from `GET /v1/workspaces/{workspace_id}/models?purpose=authoring`; step 6 calls this `<MODEL_REF>`. - -Create a GitHub token that can read the repository and post comments. Keep the token ready for step 4. - -These steps use a repository webhook and a saved token. -For a connected GitHub App, follow [Configure a webhook](/fleets/webhooks#a-connected-github-app) instead. +Use **Connected apps** to connect GitHub to that workspace. Give the App access to the repository you want to review. [Connect a provider](/fleets/connectors) covers the installation. ## Steps -1. Install the `agentsfleet` command-line interface. +1. Start the fleet. Replace `OWNER/REPOSITORY` with the connected repository. ```bash - bun install --global @agentsfleet/cli + agentsfleet fleet create --name pr-reviewer "Add a GitHub pull_request trigger for OWNER/REPOSITORY. When it wakes you, review the changes and report correctness and test gaps in this chat. Ask for read access to this repository when you need it." ``` ```text - installed @agentsfleet/cli with binaries: - - agentsfleet + ✓ Started fleet pr-reviewer (<FLEET_ID>). First turn <TURN_ID>: <varies>. + Talk to it with: agentsfleet fleet steer <FLEET_ID> ``` -2. Check the installed version. - - ```bash - agentsfleet --version - ``` - - ```text - <varies> - ``` - -3. Sign in through a browser on the same computer as your terminal. - - ```bash - agentsfleet login - ``` - - ```text - Connect your terminal - Open this link on this computer: - login_url: <varies> - Check code: <varies> - Waiting for authorization… (Esc to cancel) - browser: opened - <varies> - Finalizing sign-in… - ✓ signed in as <varies> — <varies> - ``` - - Compare the check code in your browser with your terminal. Choose **Authorize** only if you started the sign-in and both codes match. - - For a remote terminal or another device, use `agentsfleet login --no-open` and follow [manual sign-in](/cli/agentsfleet#browser-on-another-device). - - Login keeps your previous workspace if it is still available; otherwise it selects the first available workspace. - Check `agentsfleet workspace show` before saving secrets. - Use `agentsfleet workspace use <WORKSPACE_ID>` to switch, with an identifier from `agentsfleet workspace list`. - -4. Save the GitHub secret in your active workspace. - - Replace `<GITHUB_TOKEN>` with your repository token. - Generate `<GITHUB_WEBHOOK_SECRET>` as a random value of at least 32 bytes; GitHub will use the same value in step 9. - - <Warning> - This inline example can leave credentials in shell history. - For regular use, pipe JSON from your secret manager to `agentsfleet secrets create github --data=@-`. - </Warning> - - ```bash - agentsfleet secrets create github --data='{"host":"api.github.com","token":"<GITHUB_TOKEN>","webhook_secret":"<GITHUB_WEBHOOK_SECRET>"}' - ``` - - ```text - ✓ Secret 'github' stored in vault. - ``` - - `host` binds the outgoing token to `api.github.com`. - The client stores the values without printing them again. - -5. Write the fleet's Definition to `pr-reviewer.json`. - - ```json - { - "schema_version": 1, - "description": "Reviews GitHub pull requests and posts review comments.", - "instructions_md": "Read `repo` and `number` from the event.\nFetch the pull request diff from https://api.github.com/repos/{repo}/pulls/{number} with http_request and ${secrets.github.token}.\nPost one review with event COMMENT that lists correctness, security, and test gaps.\nNever approve, merge, or close a pull request.", - "config": { - "name": "pr-reviewer", - "x-agentsfleet": { - "triggers": [{"type": "webhook", "source": "github", "events": ["pull_request"]}], - "tools": ["http_request"], - "credentials": ["github"], - "network": {"allow": ["api.github.com"]}, - "budget": {"daily_nanos": "2000000000"} - } - } - } - ``` - - `daily_nanos` caps spending at 2 dollars a day. [Fleet budgets](/billing/budgets) explains the unit. - -6. Open a private draft from the file and review it. - - Use the `<MODEL_REF>` from **Before you begin**. - This file starts a draft without making an authoring-model request. - - ```bash - agentsfleet chat --definition pr-reviewer.json --model <MODEL_REF> --no-input --review --name pr-reviewer - ``` - - ```text - ✓ Draft <DRAFT_ID> created - Instance: pr-reviewer - Runtime model: <varies> - <varies> - Review digest: <DIGEST> - ``` - - The review prints the setup, runtime model, and required access. Check them before you save. - The authoring model and runtime model can differ. - -7. Save the fleet with the digest from the review. - - ```bash - agentsfleet chat <DRAFT_ID> --no-input --save --name pr-reviewer --review-digest <DIGEST> - ``` - - ```text - <varies> - ✓ Fleet pr-reviewer: active - ``` - - A fleet that reads `installing` is waiting on a setup check, such as an integration grant to approve. The lines after it name each check and its next step. - -8. Read the fleet's webhook URL. - - `<FLEET_ID>` comes from `agentsfleet fleet list`. - - ```bash - agentsfleet --json fleet show <FLEET_ID> - ``` - - ```text - <varies> - ``` - - The `webhook_urls` entry with `source` set to `github` holds the URL. - -9. Add the webhook in GitHub. - - Open **Repository settings → Webhooks → Add webhook**. Use the webhook URL from step 8 as the payload URL. - - Choose `application/json` as the content type. Use the same webhook secret from step 4. - - Select **Pull requests** as the event. GitHub now sends PR events to your fleet. - -10. Open a PR in the repository. - - GitHub sends the event after you open the PR. The fleet then attempts the review and posts its comment. +2. Open the fleet in the dashboard and check that **Wakes on** lists the repository. If an access card appears, check the repository and read scope before approving it. +3. Open a pull request in GitHub. Review the fleet's reply after its turn completes. ## Verify it works -`<FLEET_ID>` comes from `agentsfleet fleet list`. +Use the identifier from the create response to find the fleet's turns. ```bash -agentsfleet fleet logs <FLEET_ID> +agentsfleet fleet turns <FLEET_ID> --actor github-app ``` ```text -Event Stream - <varies> webhook:github <varies> +<varies> ``` -The activity stream should show a GitHub event. Check the PR for the fleet's review comment. - -Review text and tool calls vary by model. If the run fails, inspect the event and follow [Troubleshoot a fleet](/fleets/troubleshooting). +The turn should identify the repository event. Check the reply for the review. If the fleet cannot read the changes, check the GitHub connection and the fleet's approved repository scope. ## What you learned -You installed the client, signed in, and saved a secret. You reviewed a fleet's setup, saved the fleet, and connected GitHub to it. +You started a fleet from the terminal, subscribed it to a repository, and checked its review in chat. ## Related pages - [Your first fleet](/quickstart) -- [Install the client](/cli/install) -- [Author a fleet](/fleets/authoring) -- [Manage secrets](/fleets/secrets) -- [Use webhooks](/fleets/webhooks) +- [Start a fleet from the terminal](/fleets/install) +- [Configure a GitHub event trigger](/fleets/webhooks#a-connected-github-app) +- [Approve a waiting run](/fleets/approvals) - [Troubleshoot a fleet](/fleets/troubleshooting) diff --git a/workspaces/managing.mdx b/workspaces/managing.mdx index b6512d1..da363a5 100644 --- a/workspaces/managing.mdx +++ b/workspaces/managing.mdx @@ -3,8 +3,8 @@ title: Manage workspaces description: Create, select, inspect, and remove local workspace entries. type: how-to audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -38,10 +38,10 @@ Install the client and sign in. Account setup normally creates and selects your ```text NAME WORKSPACE STATUS AGO - platform-ops <varies> active <varies> + platform-ops <varies> Selected <varies> ``` - `STATUS` reads `active` for the workspace you are working in. `AGO` is how + `STATUS` reads `Selected` for the workspace you are working in. `AGO` is how long ago each one was created. 3. Select a workspace. diff --git a/workspaces/overview.mdx b/workspaces/overview.mdx index 5141d12..c688783 100644 --- a/workspaces/overview.mdx +++ b/workspaces/overview.mdx @@ -3,8 +3,8 @@ title: Workspace overview description: Understand what a workspace owns and separates. type: explanation audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- @@ -12,7 +12,7 @@ executable: false A workspace groups fleets, secrets, connectors, and access. Each workspace belongs to one tenant. -A workspace is not tied to one source repository. Each fleet declares its own trigger source. +A workspace can have fleets for many repositories. Each fleet has its own triggers. ## Why it exists @@ -20,14 +20,14 @@ Use separate workspaces when teams or environments need different fleets and sec ## How it behaves -You create a workspace through the client or API. The tenant owns the workspace. The dashboard calls a tenant an account. +Create a workspace through the client or API. The dashboard calls its owning tenant an account. An account has one owner, the person who signed up. The owner can invite members, who open and steer every workspace in the account. Only the owner stores secrets, connects integrations, and manages people. A fleet belongs to exactly one workspace. Secrets and connectors do not cross workspace boundaries. Account setup creates a default workspace. -After login, the client keeps your previous workspace if it is still available; otherwise it selects the first available workspace. +After login, the client keeps your previous workspace if you can still reach it. Otherwise it selects the first available workspace. ## Limits diff --git a/workspaces/teammates.mdx b/workspaces/teammates.mdx index 5d42325..8d25774 100644 --- a/workspaces/teammates.mdx +++ b/workspaces/teammates.mdx @@ -3,14 +3,14 @@ title: Invite teammates description: Invite people into your account so they can open and steer its fleets. type: how-to audience: user -verified: 2026-10-19 -product_version: 0.62.1 +verified: 2026-11-25 +product_version: 0.90.0 executable: false --- ## What this does -An invite lets another person work in every workspace of your account. They open its fleets, watch them live, and steer them. +Invite a teammate to open fleets, see their replies, and send messages in any workspace of your account. Everyone who joins is a **member**. You stay the account's one **owner**. @@ -24,7 +24,7 @@ Everyone who joins is a **member**. You stay the account's one **owner**. A member who tries an owner action sees "Only the account owner can do this." -A message anyone sends to a fleet shows at once on every screen open on that fleet. It is marked queued until the fleet starts on it. A teammate's message shows their name above it. +A teammate's message appears in the fleet chat with their name. You can see whether the fleet has started work on it. ## Before you begin @@ -68,7 +68,7 @@ Your teammate opens the workspace switcher. Their own workspaces sit under **You **The invite was sent to a different email address ([`UZ-INV-002`](/api-reference/error-codes#UZ-INV-002)).** Your teammate is signed in with another address. They sign in with the invited address and open the link again. -**The invite is no longer valid ([`UZ-INV-001`](/api-reference/error-codes#UZ-INV-001)).** The invite expired or was revoked, so create a new invite. An already-accepted invite means your teammate is a member; remove them before inviting again. +**The invite is no longer valid ([`UZ-INV-001`](/api-reference/error-codes#UZ-INV-001)).** Create a new invite if the link expired or was revoked. Check the **People** table first in case your teammate already joined. **We could not send the email ([`UZ-INV-005`](/api-reference/error-codes#UZ-INV-005)).** Sending again found no mail service, or the mail service refused. The invite still works, so copy its link and send it yourself.