Repository navigation
AgentRun v0.1.0-beta.70
Pre-releaseBreaking:
agentrun deployno 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 newto make another agent (the lock then names it), or--agent IDto deploy onto an existing one. Signing in to the workspace that has the agent also fixes it.
Changes:
-
DAYTONA_PUBLIC_EGRESSis 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 optionpublicEgress), and a malformed value is refused when the provider is made. A computer whose network isopenor 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}/runstakeslearning: {"settings": {...}}, and the run learns for its agent with those loop numbers (compile_after,agree_min,audit_everyand the rest a definition'slearningobject takes), whatever its revision'slearningsays. It must bring its ownmodel_keyandmax_cost_usd; without both it is400 learning_needs_capand 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 inlearning_work.droppedand in alearningrow of its timeline.capabilities.features.run_learningsays a server takes it: true only while its learning is on, and off, the object is400 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 sayinglearning: falsereading 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 bringmodel_key(the run'smax_cost_usdstill caps it), else400 learning_needs_capwith 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 atrigger_firingstart or a workflow revision's start is422atlearningwith nothing stored, so a run a trigger starts keeps its revision's learning. -
agentrun runs message RUN_ID --content TEXT --waitsends the message and waits for that message's own turn to end or wait on a person, then prints the run asruns waitdoes, with the same exit codes.agentrun runs wait RUN_ID --message MESSAGE_IDwaits for the turn of a message already sent, by themessage_idruns messageanswered. Before,runs messagefollowed byruns waitcould 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, andruns waitended on that.runs message --waitreads 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-keythat the server replays (Idempotent-Replayed: true) went before the read, so it is waited for asruns wait --messagewaits, and says so on stderr.--timeout SECONDSbounds 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 --messagetakes 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 beforeruns wait --messagestarted is not seen, and the command waits for the next message (use--timeout, orruns message --wait, which has no such gap).runs waitwithout--message, andruns messagewithout--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 (
parserspdfmaxPages) 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 thecreditsUsedFirecrawl reports, never above the hold. A paid tool call's fee can now carry aleast(Fee.least,ToolCapRequest.least,ModelRequest.paid.least), and aPay'ssendis told what the cap held. -
The publish workflow keeps
@parcha/agentrunoff npm'slatestuntil the hosted API runs a serve its commands work with, solatestnever 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 answersGET /v2/computersin a workspace), besideagentrun.hostedRoutes, the routes its commands call; a test fails when a command starts calling a route the list does not name. Before the launcher'snpm publish, the publish step reads hosted'sGET https://api.agentrun.ai/v2/capabilities, with no token, and compares itsserver.versionto 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 aslatest, as before. Below the floor, or unreadable (a 404 included), it is still published, the same archive with the same flags, at thenextdist-tag instead, and verified on npm like every other package;lateststays 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 runnpm dist-tag. The next release with hosted at the floor publishes its launcher aslatestas usual. Staging and walks can install@parcha/agentrun@nextor the exact version. -
The publish workflow publishes a package only once npm lists every release package it pins, so
npm i @parcha/agentrunno 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-serveexactly, 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 itsnpm publish. That isnode 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_usdnow says what the server does: a run's cap defaults to its definition'smax_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 incost.cap_usd. TheagentrunCLI's--max-cost-usdhelp 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