Skip to content

AgentRun v0.1.0-beta.70

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 29 Nov 06:42
· 102 commits to main since this release
109737b

Breaking:

  • agentrun deploy no longer makes a new agent when the agent its lock names is not on the target. A target answers another workspace's agent the same way it answers a deleted one (404), so the old behaviour could deploy a second agent into the wrong workspace. Deploy now exits 2, writes nothing, and leaves the lock untouched. The message says why: the agent was deleted there, or it belongs to another workspace.
    A script or CI job that relied on a redeploy after the agent was deleted must now pass --agent new to make another agent (the lock then names it), or --agent ID to deploy onto an existing one. Signing in to the workspace that has the agent also fixes it.

Changes:

  • DAYTONA_PUBLIC_EGRESS is a new optional setting, and most operators leave it unset: unset, nothing changes. Set it only when your self-hosted Daytona target's runners drop every sandbox connection outside an allow list and you run a gate on that list that admits HTTPS by its TLS server name. It names the gate as <IPv4>:<port> (the provider option publicEgress), and a malformed value is refused when the provider is made. A computer whose network is open or a list then has its egress proxy send each tunnel to port 443, an HTTP CONNECT or a SOCKS5 CONNECT, to the gate once every check passes, with the program's bytes unchanged. The tunnel is carried only when its TLS ClientHello names the host the checks passed, so a tunnel to a listed host can't reach another host through the gate; a tunnel that names another host or none, or that goes to an IP literal, is closed with nothing sent. Plain HTTP and every other port still go to the checked address, and a host the proxy refuses never reaches the gate.

  • A run can ask to learn at its start: POST /v2/agents/{id}/runs takes learning: {"settings": {...}}, and the run learns for its agent with those loop numbers (compile_after, agree_min, audit_every and the rest a definition's learning object takes), whatever its revision's learning says. It must bring its own model_key and max_cost_usd; without both it is 400 learning_needs_cap and nothing starts. All of its learning work spends that key inside that cap: its compile turn, its check's replay runs on their share of what the cap leaves, and its audit's shadow on what is left after. A replay or shadow that does not fit is dropped before it starts, with nothing spent, and the run says why in words in learning_work.dropped and in a learning row of its timeline. capabilities.features.run_learning says a server takes it: true only while its learning is on, and off, the object is 400 learning_off ("Learning is off on this server.") with nothing stored. Once a run asked, the agent's own learning reads (learning.pending, the loop and promotions reads, an owner's replay, an audit's hold) take the newer of its newest run that asked (from its start) and its current revision (from its save): a revision saved after that run wins, one saying learning: false reading as not learning, until another run asks. A start whose ask can't be recorded for its agent is refused with a 5xx and nothing is made; of overlapping starts the agent reads the newest whose run was made, and one that makes no run never hides the one before it. Each ask is recorded on its own, so starts never contend: however many asking runs an agent has, any number of starts at once are each recorded and none is refused. A purged run (DELETE /v2/runs/{id}) no longer counts: its agent reads the newest asking run still there. A follow-up spends the run's own key alone: once its turn ended, a message must bring model_key (the run's max_cost_usd still caps it), else 400 learning_needs_cap with nothing written, and a grade's words open no feedback round on it. An inline run (POST /v2/runs) still takes "use" alone; the object on a trigger_firing start or a workflow revision's start is 422 at learning with nothing stored, so a run a trigger starts keeps its revision's learning.

  • agentrun runs message RUN_ID --content TEXT --wait sends the message and waits for that message's own turn to end or wait on a person, then prints the run as runs wait does, with the same exit codes. agentrun runs wait RUN_ID --message MESSAGE_ID waits for the turn of a message already sent, by the message_id runs message answered. Before, runs message followed by runs wait could print the previous turn's answer at once: a server that takes a message (202) may go on answering the ended run, its old answer final, for several seconds before the message's turn starts, and runs wait ended on that.

    • runs message --wait reads the timeline before it sends the message, then waits for a person's message row that was not there before (told apart by its id, so a server restart that numbers the rows anew changes nothing), and for the run's end or wait on a person after that row. A retry under the same --idempotency-key that the server replays (Idempotent-Replayed: true) went before the read, so it is waited for as runs wait --message waits, and says so on stderr. --timeout SECONDS bounds the whole command; past it, the run is printed as it is and the command exits 1, saying how to wait again for that message.
    • runs wait --message takes the row whose id is MESSAGE_ID, or ends :MESSAGE_ID, as the message's row. With no such row, it takes the first person's message after the run's end as the wait first finds it, or, when the run is already working then, the message its turn took. On a server whose rows do not carry the message's id, a turn that ended before runs wait --message started is not seen, and the command waits for the next message (use --timeout, or runs message --wait, which has no such gap).
    • runs wait without --message, and runs message without --wait, work as before.
  • A keyed Firecrawl web_fetch on a capped run is no longer refused just because Firecrawl's most for a scrape (10,000 PDF pages, $9.90) is more than the cap has left. When the whole most doesn't fit, the scrape is held at what the cap has left and sent with its PDF pages capped (parsers pdf maxPages) to what that hold buys, so Firecrawl can't parse or bill past it. It is refused, unsent and in the cap's words, only when what is left doesn't buy even one page. The charge is still the creditsUsed Firecrawl reports, never above the hold. A paid tool call's fee can now carry a least (Fee.least, ToolCapRequest.least, ModelRequest.paid.least), and a Pay's send is told what the cap held.

  • The publish workflow keeps @parcha/agentrun off npm's latest until the hosted API runs a serve its commands work with, so latest never names a CLI whose hosted routes answer 404. The launcher's manifest names the oldest hosted serve it needs, agentrun.hostedServeFloor (0.1.0-beta.68, the first serve that answers GET /v2/computers in a workspace), beside agentrun.hostedRoutes, the routes its commands call; a test fails when a command starts calling a route the list does not name. Before the launcher's npm publish, the publish step reads hosted's GET https://api.agentrun.ai/v2/capabilities, with no token, and compares its server.version to the floor in semver order (node scripts/hosted-serve-floor.mjs). It tries 4 times, 10 seconds at most each, with 2, 4 and 8 seconds between tries. At or above the floor the launcher is published as latest, as before. Below the floor, or unreadable (a 404 included), it is still published, the same archive with the same flags, at the next dist-tag instead, and verified on npm like every other package; latest stays on the previous launcher and the step passes. A warning, also in the step summary, names the floor, hosted's answer, and the command an npm owner runs once hosted serves the floor: npm dist-tag add @parcha/agentrun@<version> latest. The workflow can't run it, because a trusted publisher can't run npm dist-tag. The next release with hosted at the floor publishes its launcher as latest as usual. Staging and walks can install @parcha/agentrun@next or the exact version.

  • The publish workflow publishes a package only once npm lists every release package it pins, so npm i @parcha/agentrun no longer fails with ETARGET partway through a release. npm accepts a package whose dependencies it does not list yet, and lists a version minutes after it accepts it, a large archive later than a small one. In beta.67 and beta.68 the launcher, which pins @parcha/agentrun-serve exactly, was listed four or five minutes before serve (beta.68: 17:12:08Z, serve 17:16:07Z). Each package now waits for its pins, in both packuments, before its npm publish. That is node scripts/verify-published.mjs --package <directory> --pins, with the 20-minute registry budget, and a package that pins no release package asks nothing. Pins still unlisted at the end of the budget stop the release as a failed publish does: nothing after it goes out, and what went out before it is verified. A release takes about as long as its chain of pins takes to be listed (beta.68's: a few minutes more), not once per layer.

  • The contract's RunCreate.max_cost_usd now says what the server does: a run's cap defaults to its definition's max_cost_usd, else none. It said "else the effort default", but no effort default cap exists, and a run started with no cap on the run or its definition runs uncapped, as the MCP tool's description already said. A hosted install may apply its own default cap, and the run read names it in cost.cap_usd. The agentrun CLI's --max-cost-usd help and its skill reference carry the same words.

Install

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