Skip to content

AgentRun v0.1.0-beta.68

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Nov 17:22
· 210 commits to main since this release
5d68436

This release serves a workspace more of its own: on a server behind a backend, a request in a workspace now reads and changes its own agents' triggers, MCP servers, run and agent extras, marketplace, computers and disks, archives and deletes its own agents and packages, makes webhook triggers and rotates their secrets, and names its template uploads per workspace (#4103, #4105, #4108, #4116, #4118, #4120, #4121). A run in a workspace never gets the server's GitHub App token or a paired computer (#4113, #4117). The command gains agentrun race start and race show, with --wait (#4130, #4155). Codemode runs Python scripts (#4149), the import reads Cursor's CLI (#3552), computers gain Fly Sprites and Vercel Sandbox providers (#4127, #4140), and deploy/northflank holds a Northflank template (#3568). undici 8.14.0 everywhere keeps an idle HTTP/2 session from ending serve (#4129).

Upgrading and going back:

Upgrading: Postgres migration 0036 keys imported_templates by workspace and id, and on SQLite the server's open does the same in place, with the schema version staying 18. Each row keeps the workspace it already had, and a row with none stays in none, still one package a name there. On Postgres, runners must drain before the deploy: 0036 drops the key on the id alone and raises the runner floor to 36, so drain and stop runners of earlier builds, start this build's server, then start this build's runners. A server of an earlier build refuses a Postgres schema at 0036, as it does any later schema. On SQLite the runner is unaffected: a runner of the earlier build opens the store before and after. On SQLite, a server of an earlier build started again on a store this build's server has opened (a rollback) opens it, but every upload it takes fails until this build's server is back.

  • Postgres migration 0035 (#4112) is additive and comes before 0036 in the same upgrade.

Known issues:

  • A run stopped while it was still queued and then reopened by a message ends ended, and its first input reaches the model, because its end is written off the run's root conversation. The fix ships in a later beta.
  • In Mode 2, a run with no computer mounting its folder files no fal results (evidence/fal); the call works as before (#3777).
  • A learned workflow refused for a host setting (a tool gated, denied or missing) still reads serving, while every run it is given hands back to the agent.
  • For up to about 10 minutes after the release is published, an install can fail while npm shows the new packages one by one. Try again a few minutes later.
  • An API token's GET /v2/settings/calendar is refused 403 in the words for saving a secret. Reading the calendar's settings takes the owner's signed-in session in the console, as saving them does.
  • Workspaces: a caller-picked agent id another workspace holds answers 409 agent_exists; trusting a template publisher applies to every workspace; packages imported before the backend sent the header belong to no workspace; and a launch disk no agent owns is served to any workspace. The serve README's Workspaces section lists these.

The server's own changes are listed in packages/serve/CHANGELOG.md; the rest follow.

  • osw (packages/computer-bench/image/osw/osw.py, run as python3 osw.py), the runtime that runs an OSWorld task's own setup and evaluator inside a bench desktop image, so a task ports as OSWorld's JSON instead of a hand-written check. osw setup <osworld.json> starts OSWorld's in-VM server on 127.0.0.1 as the desktop user, runs the task's config through OSWorld's SetupController and stops the server (the apps it launched stay up). osw eval <osworld.json> starts it again, runs postconfig, then each getter and metric with its options and conj, as OSWorld's DesktopEnv.evaluate() does. Every download and gold is fetched by URL and checked against the sha256 the task pins; golds are fetched only by osw eval, after the agent has ended, into a folder only its owner reads. It exits 0 for a score of 1, 1 for a lower score, 2 for a task it can't check, and 75 when the check could not run (a getter or metric raised, a download's sha256 differs, the server didn't start). OSWorld's code (Apache-2.0) is not in this repository: osw imports it at run time from the path --osworld or OSW_OSWORLD names.
  • agentrun race start ... --wait and agentrun race show LABEL --wait follow every lane's run to its end, on the run's own timeline as runs wait does, then print the lanes side by side: lane, harness and model, status, cost of cap, seconds, and the first line of each answer (control characters removed). --json prints the lanes as JSON instead. Exit 0 when every lane completed; 1 when a lane failed, was cancelled, did not start or still runs past --timeout (default 1800 seconds, the runs go on), each such lane named on stderr; 8 when no lane failed but one waits on a person, with where to answer it (an approval on the race's page in the console).
  • agentrun race start --lane HARNESS/MODEL --lane ... --task TEXT|@FILE runs one task on 2 to 4 harness and model lanes side by side from the terminal, the way the console's New race form does. Each lane is a new agent of its own with a new agent's default tools on that server, plus one run of it carrying the race's task, cap (--max-cost-usd, default 1), any --file ids, and the labels the race view reads (race, lane, harness, model). One refused lane leaves the others started: the refusal is printed and the command exits 1. It prints the label and each lane's agent and run. agentrun race show LABEL reads the race back in lane order: each lane's harness, model, run, status, cost, cap and seconds.
  • The Composio listings (POST /v2/settings/mcp-servers/composio/toolkits and .../composio/tools) take "api_key_env": "COMPOSIO_API_KEY" in place of api_key, as the Composio save does: the key is read from the server's environment and never sent by the caller. On an API-only server (AGENTRUN_API_ONLY=1) the token, scoped to a workspace or not, now lists Composio's toolkits and a toolkit's actions this way, so a backend in front of it can show its own picker. A key the token sends as api_key is still 403, and on any other server the token's listing stays 403.
  • @parcha/agentrun-import reads Cursor's CLI (cursor-agent) as a source (cursor, run by serve's cursor harness). Each chat is a SQLite store of its own, <config>/chats/<workspace hash>/<agent id>/store.db (an ACP session's in <config>/acp-sessions/<id>/), where <config> is CURSOR_CONFIG_DIR, else $XDG_CONFIG_HOME/cursor, else ~/.cursor, as cursor-agent picks it. SQLite goes through node:sqlite on Node and bun:sqlite under Bun.
    • Cursor's CLI keeps no token usage on the machine: no tokens, cost or error for a request, and each turn's model only encrypted (never read). Its usage is on Cursor's server. Each assistant message counts as one request of unknown tokens (serve's unmetered), never 0, on an unknown model, and a chat's cost is null. A request's key is Cursor's requestId where the message names one, else the message's id. A later message of the same request adds its text and calls to it and counts once.
    • A chat is read once, whole, in its root's message order: the messages are JSON blobs, and only their order needs the root, a protobuf of which the reader reads field 1 alone. There is no cursor (null) and no resumed read: each read reads the store again. A message the root names that the store does not hold is passed over.
    • No message has a time of its own. Every turn is at the chat's start (the agent's createdAt, else meta.json's createdAtMs), and the chat ends at meta.json's updatedAtMs. Time at work is that span when it is under the 15-minute gap, else 0.
    • A chat's id is its folder's name, the agent id: cursorSessionId(file), which serve uses too. A subagent's chat (subagentInfo) is a child of the agent it names. One over a caller's size cap is tied to that agent from its store's metadata row alone, never its messages (the reader's parentOf), so serve leaves the run it belongs to out with it as large, never imported without its work. Cursor's default name, New Agent, is no title.
    • turns: false keeps no prompt, answer text, tool output or call argument in its requests. The session's working directory is kept either way, so a listing (serve's plan) still finds its project.
    • The store is opened read-only with a 5 s busy timeout and only SELECTed from. A store no cursor-agent has open (no store.db-wal or store.db-shm beside it) is opened immutable (immutable=1), since SQLite's read-only open of a WAL store makes its -wal and -shm and leaves them after close: the read writes nothing into ~/.cursor, and a chat read is never taken for one written to. A writer that comes while an immutable read is open (a -wal or -shm after it, or the store's size or mtime moved) fails that read. The store's SQL guard (scripts/store-sql-guard.test.mjs) allows SQL outside the store in that one named file and holds it to SELECTs, its busy timeout and read-only opens (bun:sqlite's readonly: true, or its flags form SQLITE_OPEN_READONLY | SQLITE_OPEN_URI with those consts as SQLite numbers them, 0x01 and 0x40). The guard also finds a driver module named through a const (const NODE_SQLITE = "node:sqlite"; await import(NODE_SQLITE)) and counts bun:sqlite as a driver.
    • serve imports Cursor runs under a cursor revision whose instructions are the project's AGENTS.md, else its CLAUDE.md. The project's .cursor/skills folder is among its skill folders. serve reads ~/.cursor under the home it imports.
    • serve: the imported_from.source and by_source enums and ImportSource include cursor, and agentrun-serve import --from takes it. A chat left out of a chosen project's import (still being written) is told by the workspace its meta.json names. A chat's size and last write (the reader's stat, what serve's live check, size cap and saved stamp go by) take its SQLite write-ahead log (store.db-wal) and its meta.json with the store: a chat cursor-agent is still writing, store.db's mtime old while its log grows, is left out as live, and one imported already whose log has grown since is read again.
  • A waiting run's question (pending.kind question) may now say when it expires unanswered: expires_at, an RFC 3339 UTC time, as the browser and computer asks already do. It is optional and additive. A backend that sets the question a deadline fills it; the local server sets none and leaves it out, so a question read there is unchanged. The TypeScript and Python clients' and the console's run types carry the optional field.
  • A new computer provider, sprites: a Linux sandbox on a Fly sprite (a Firecracker microVM Fly keeps by name), over the Sprites API with no SDK. It takes SPRITES_TOKEN, the name Fly's own CLI reads, and loads from @parcha/agentrun-computer/sprites or providerFor("sprites", { token }). A computer starts from Fly's own Ubuntu image, "default", the only one a sprite has, so it is a sandbox alone: no desktop and no Archil mount. The exec is the exec WebSocket's binary frames, its kill the session's kill call. Serve offers it as a box once AGENTRUN_BOXES lists sprites and the token is set, and the launcher holds SPRITES_TOKEN with the other secrets. fly (Fly Machines) is unchanged. No live run has been made yet: the arch, a label string's room, the status of a create whose name is taken, root in the sprite, the exec socket through 75 s of silence and whether an exec keeps a sprite awake are unverified until then.
  • A new computer provider, vercel: a Linux sandbox on Vercel Sandbox (a Firecracker microVM), over Vercel's REST API with no SDK. It takes VERCEL_TOKEN, VERCEL_TEAM_ID and VERCEL_PROJECT_ID, all required, and loads from @parcha/agentrun-computer/vercel or providerFor("vercel", { token, teamId, projectId }). A computer starts from the box image as the project's Vercel Container Registry holds it, agentrun-box:<recipe hash>, which the operator pushes once with vercel vcr build docker . agentrun-box:<hash> --push from box/. Serve offers it as a box once AGENTRUN_BOXES lists vercel and the three keys are set, and the launcher holds VERCEL_TOKEN with the other secrets. No live run has been made yet: whether root makes a network namespace in the microVM, whether the log stream keeps a split character whole and holds 75 s of silence, and the status of a create whose name is taken are unverified until then.
  • Jev's web decider takes a setup: jevWebDecider(jev, name?), with JEV_SETUPS and DEFAULT_JEV_SETUP exported. The default, "shipped", answers exactly as before. "top2-best300-found5" keeps Jev's two most relevant search results whole and shows each later one only the passage of its snippet Jev scores most relevant (at most 300 characters; the url, title and relevance stay, and the sift line says to web_fetch the url to read it), and gives a fetch's objective 5 found chunks instead of 8.
  • computer-bench no longer sends a grader's fail on a task whose checks are not sufficient to the human queue as "the grader says fail where the checks say pass". Passing checks on such a task only say nothing structural went wrong, so the grader's verdict decides the run either way; the queue keeps the runs the grader can't decide (unknown) or that no grader read.
  • agentrun login's device sign-in, when the server denies it (access_denied, from the authorization endpoint or the poll), now also says that a team workspace takes a key only from a team admin: ask one to deploy for you, or sign in again and choose another workspace. The words are the CLI's own; the server's error_description is still never printed.
  • The E2B provider talks HTTP/1.1 to E2B on every call. When an idle HTTP/2 session in the E2B SDK's client timed out, its error landed where nothing listened for it, and that could end the whole server and every run in it.
  • The shipped stop graces now outlast the close of the runner beside the server, which takes up to 40 s with the image's 6 s drain when a browser's release hangs to its provider's 30 s cleanup bound, and up to 55 s with the CLI's 30 s drain. The quickstart compose.yaml and the compose file install.sh --vps writes give 45 s of stop grace (35 s before), as the runners, the Helm chart and the Coolify and Dokploy templates already did. The macOS service waits 60 s before launchd kills it (ExitTimeOut, 35 s before), and agentrun stop and the installer's stop of a background AgentRun wait 60 s before a SIGKILL (45 s before). Render's fixed 30 s stays under that close: render.yaml and the README say what a stop there can cut. A runner's close now counts its drain from the close's start, and waits for a claim still in flight (one re-reading the store after an unanswered commit) inside the drain and the stop's window, so that close stays inside the bound the graces are set from: before, that wait could add up to 25 s ahead of the drain.
  • A classifier request (Jev's, or any decider's: a search sift, a fetch's passage judge, a page guard) that a stop kept from leaving the process is no longer billed at its hold. One on a call already stopped asks for no payment. One stopped while its payment was being admitted is never sent, settles at $0, and its receipt line reads not billed (aborted). Before, the provider's own stop before sending read as a failure that may have been billed, so the run paid the request's full hold. A request stopped after it was sent is still billed as before.
  • Keyed Firecrawl is charged the credits Firecrawl reports, held at the most a call can cost. Before this, a search was held at 2 credits per 10 results plus 1 a scraped result, and a scrape at 1. But Firecrawl bills each PDF page it parses: on 17 measured calls it billed 6.47 times what was recorded, almost all of it in PDF pages.
    A keyed search no longer asks Firecrawl to scrape its results. Each snippet is Firecrawl's description of the result, its query-relevant highlight, as Exa's highlights and Parallel's excerpts are. A search is held at Firecrawl's 2 credits per 10 results.
    A keyed web_fetch reads a PDF whole on Firecrawl's basic proxy. It is held at the most Firecrawl parses of one PDF, 10,000 pages ($9.90), so a run whose cap has less than $9.90 left cannot fetch through keyed Firecrawl. The new pdfMaxPages setting (1 to 10,000) caps both the pages read and the hold; a PDF cut at that cap reaches the agent starting [PDF: pages 1-100 of N were read; …]. Parallel, the default, is unaffected.
    Each call is charged the creditsUsed Firecrawl reports, never above the hold. A creditsUsed that is missing, fractional, negative or not a number, or an answer that is not JSON or is past the 8 MiB bound, is charged the hold. The receipt line names the reported credits and the hold. A body asking for a proxy other than basic has no price and is not sent.
  • While a search provider is held to a reset it named (a keyless daily allowance spent, a 429 naming hours to wait), web_search tells the model which provider is held and until when, for example search is unavailable: firecrawl-keyless is out of quota until 2026-11-29T00:00:00Z; exa-keyless is rate-limited until 2026-11-29T00:00:00Z; answer from what you have. Before, it answered search is unavailable for the rest of this run, which named no provider and no reset and stopped being true at the reset. A search whose next provider found nothing while another was held now answers an error saying both, instead of an empty result list that read as "nothing exists"; its receipt still names the provider that was asked, and its fee and search count are unchanged. A provider waiting out a short rate limit is named the same way. When a provider is held twice (its own wait and its key out of quota, say), the words name the hold that ends last, the time it can actually be asked again. A quota that names no reset still answers search is unavailable for the rest of this run.
  • CI's test shards are balanced on current timings: scripts/ci-timings.json is rewritten from 285 shard logs of 15 merge-queue runs, and covers the 125 serve test files it was missing.
    The slowest tests (redact-contract, key-refusal, key-refusal-sequence-parity) were modelled at seconds and took minutes, so the any shards ran 131 s to 291 s (median of 15 runs) against a plan of 162 s each. The old plan's shards modelled on the new weights span 146 s to 266 s; the new plan's span 182 s to 184 s.
  • undici 8.14.0 (the HTTP/2 idle-timeout fix) reaches installs from npm through the packages' own ranges, not the repository's root overrides, which apply only to this repository's lockfile. serve asks for undici ^8.14.0, and the Archil and E2B SDKs ask for ^8.12.3, so a fresh install resolves them all to 8.14.0 or later; an install that keeps an older lockfile keeps its older undici until it is refreshed. The coding-agent harness serve loads pins its own undici 8.12.3, which it runs with HTTP/2 off, so it can't hit the crash. The E2B provider's HTTP/1.1 connection stays as a second guard for E2B either way.
  • The box image and the default Docker image run Node.js 24.22.3 with its own npm, the release serve's image runs, in place of Debian's nodejs and npm 9: each unpacks the release's tarball into /usr/local after checking it against its sha256 for the host's architecture (DOCKER_NODE_VERSION, DOCKER_NODE_SHA256). The box recipe's hash moves to 243c3c1a9d57, so the next release publishes ghcr.io/parcha-ai/agentrun-box:243c3c1a9d57 and its E2B template, a Daytona box snapshot is built again as agentrun-box-243c3c1a9d57, and the relay's pinned recipe hash changes with it (relays/cloudflare/wrangler.json, redeploy the relay). A Docker host builds the default image once more at its next computer.
    A Docker computer's egress proxy takes a cap on the connections it holds open at once: egress.maxTunnels (a whole number from 1 to 256, default 64; past the cap a new connection is answered 429), passed as the proxy's --max-tunnels and read back as made. serve sets it from AGENTRUN_BOX_MAX_TUNNELS, listed with the start-time switches; any other value stops the start, in words naming the setting.
  • An E2B computer can now run on a cloud that speaks E2B's API, or start from a template of the operator's own, by three optional settings beside E2B_API_KEY, set in the environment or saved in Settings → Computers: AGENTRUN_E2B_DOMAIN (the cloud's domain; unset, e2b.app), AGENTRUN_E2B_API_URL (its API's URL where that isn't https://api.<domain>: https alone, with no login, query or fragment, else refused naming the setting before any call) and AGENTRUN_E2B_TEMPLATE (the template every E2B computer starts from in place of the box template, as AGENTRUN_DAYTONA_SNAPSHOT names Daytona's snapshot; an agent's computer.image may name it). The key in E2B_API_KEY goes to whichever cloud the domain names, and the proxy follows that domain and API URL. In the computer package these are E2B's domain, apiUrl and template options. With none set, nothing changes. The computer package's README lists seven clouds that speak E2B's API (Maritime, Orble, SUFY, Alibaba Cloud Agent Sandbox, PPIO, UCloud and Tencent Cloud Agent Runtime) with each one's settings; none has been run live yet.
  • A new computer provider, instabox: a Linux sandbox on an InstaBox machine (a Firecracker microVM), over the InstaBox API and SSH, with no SDK. It takes INSTABOX_API_KEY, the name InstaBox's own CLI and SDK read, and loads from @parcha/agentrun-computer/instabox or providerFor("instabox", { apiKey }). A computer starts from one of InstaBox's templates, "minimal" by default, or a snapshot of the key's workspace, so it is a sandbox alone: no desktop and no Archil mount. The exec is SSH through InstaBox's gateway, logged in as a token the API mints per machine, with the gateway's host key pinned to the fingerprint the token names, and that pin required: a token answer with no fingerprint, or a malformed one, is refused before any connection, so the token never leaves. The shared SSH exec takes a hostKey pin for that, and a pinned option that refuses a login without one before its tunnel opens; no other provider sets either. A computer switches off InstaBox's idle pause and maximum run, which only a paid plan allows; the free plan's refusal is a refused that says so. Serve offers it as a box once AGENTRUN_BOXES lists instabox and the key is set, and the launcher holds INSTABOX_API_KEY with the other secrets. No live run has been made yet: the token's none auth and its host key, a taken name's 409, a deleted machine's read, sshd as the one vendor listener, minimal on every paid plan, the metadata bound on compact JSON, 75 s of SSH silence and root's network namespace are unverified until then.
  • A new Jev setup, "top3-best300-found8": the 3 most relevant search results stay whole, each later one shows only its passage (at most 300 characters) Jev scores most likely to hold what the search needs, and a fetch's objective keeps 8 found chunks, as "shipped" does. Pick it with jevWebDecider(jev, "top3-best300-found8"). The default stays "shipped".
  • A hosted provider's REST call that is sent again after a refusal (a 429, a 503, or any answer its retry rule names) now waits as long as the answer's Retry-After header asks, in seconds or as an HTTP date, when that is longer than its own backoff. Before, it sent again after the backoff alone (from 500 ms), which the vendor refused again. A Retry-After longer than the call's timeout is not waited out: the call fails then, with the code it already had (limit for a 429) and words that give the wait the vendor asked for.
  • Render: a create reads the workspace's whole sandbox listing twice, not three times: once before it makes the sandbox, and once to settle a race after. The first look for a racing create's sandbox, right after Render answers the create, asks for the sandbox's whole name, one page. A request asked again under another run or epoch is still refused as exists with no second sandbox made, and two creates of one request that race still leave one sandbox.

Install

  • Server: npx @parcha/agentrun-serve@0.1.0-beta.68; every @parcha/agentrun-* package of this release is 0.1.0-beta.68 on npm
  • Launcher and CLI: npx @parcha/agentrun@0.4.36
  • Python client: pip install parcha-agentrun==0.3.35
  • Server image: docker pull ghcr.io/parcha-ai/agentrun-server:v0.1.0-beta.68 (linux/amd64, linux/arm64)
  • Helm chart: helm install agentrun oci://ghcr.io/parcha-ai/charts/agentrun --version 0.1.0-beta.68