Added codework tui, which opens the terminal UI against a local background server. It reuses the server registered in <home>/service.json when that server answers with the registered pid, and otherwise starts a detached codework serve --service that logs to <home>/log/server.log. A server from another CLI version is replaced, concurrent starts converge on one server, and a server that dies while the TUI runs is restarted on the same port so the TUI reconnects. Pass --server <url> to use a server of your own.
Added codework service start|restart|status|stop to manage that background server.
Added the server.info RPC, which returns the running server’s { pid, version }.
Changed
The ACP session config now lists every thinking level the model supports and keeps the selected level as given.
Fixed
Fixed a failed codework serve reporting only an error tag. It now shows the cause, such as EADDRINUSE.
Breaking Changes
Moved the RPC route to /rpc/v1. Clients that connect with --server or their own URL must use ws://<host>:<port>/rpc/v1.
First release of the terminal UI on latest, still in development. The launcher resolves a prebuilt binary from the platform package for macOS (arm64, x64) or Linux (arm64, x64; static musl), falling back to CODEWORK_TUI_BIN. Nothing is downloaded at runtime, and Windows is not supported.
The TUI connects to the server named in CODEWORK_RPC_SERVER instead of starting its own, and shows a reconnecting state after a dropped connection instead of failing the turn.
Added automatic retry of transient provider failures in the harness loop. A turn whose request fails with a rate limit, overload, 5xx, timeout or dropped connection, including one that fails mid-stream, is retried with exponential backoff. Configure it with a top-level retry block in settings.jsonc: { "maxRetries": 3, "baseDelayMs": 2000, "maxDelayMs": 60000 }, where maxRetries: 0 turns it off. Quota errors are never retried, and a server that asks to wait longer than maxDelayMs fails the turn. Each failed attempt stays in the session as an aborted entry that the model never sees, and clients receive session.retry.scheduled and session.retry.finished events to show progress.
Fixed
Fixed an interrupted turn never reporting session.turn.aborted. The cleanup that settles the turn’s open draft and publishes the event was skipped on interruption, so the draft was only cleaned up on the session’s next run.
Added optIn to plugin definitions. An opt-in plugin is selected like any other but runs only when a settings entry turns it on: { "plugin": "<id>", "enabled": true }.
Added Paths to the plugin context: the harness’s own home, bin, cache, data and log directories on the host.
Added prepareArguments, constrainedSampling and encodeDetails to tool definitions, to repair common argument shapes before validation, constrain how the provider generates arguments, and control the details stored with a result.
Added readBytes and scanLines to the sandbox filesystem. scanLines returns a bounded window of a file’s lines; a remote backend runs the scan inside the sandbox (Scan.script) so only the window crosses the network.
Added SandboxMutation, which serializes the harness’s own read-modify-write of one file across parallel tool calls. Every mount layer provides it through withMutation.
Added spillPath to the runtime config and sandbox mounts: where oversized tool output is written inside the sandbox, /tmp by default.
Added idleTimeoutMs to model options in settings, defaulting to 300000.
Breaking Changes
A sandbox filesystem Provider must now implement readBytes and scanLines. A backend that only runs processes can use readBytesViaShell and Scan.script.
Added idleTimeoutMs to the request options in aikit. A stream that goes this long without a chunk is aborted as a retryable timeout, so a dead connection fails instead of waiting out timeoutMs. It defaults to 300000 in model.options.
Added the normalizeOptionalNulls export, which drops the null a strict tool call sends for an omitted optional argument whose schema does not accept null. validateToolArguments now applies it.
Changed
A usage-limit error now classifies as Quota instead of RateLimit, so it is not retried. This covers codes such as insufficient_quota and usage_limit_exceeded, and messages about credit balance, billing or an exhausted quota. A limit that names a per-minute or per-second window still counts as a rate limit.
An Anthropic model that cannot disable thinking now records providerThinkingLevel: "high" when asked to run with thinking off, since the request runs at that default effort. The effort is sent on the wire; a caller’s own effort provider option still wins.
Fixed
Fixed tools with constrainedSampling: { type: "json_schema" } being rejected by Anthropic and other strict providers. aikit set strict: true but sent the original schema; it now converts it to the strict subset (closed objects, every property required, optional ones nullable). A "prefer" tool whose schema the provider cannot express in strict mode, such as Anthropic with minimum, is sent non-strict; a "require" tool throws.
Breaking Changes
model.options.maxRetries, the retry inside the provider SDK, now defaults to 0 (was 3). The SDK retried silently, only before the stream started, and also retried quota errors. Combined with the loop retry, one outage would have cost up to 16 requests. Set it per model if an endpoint needs it.
resolveOpenAICodexToolConstraint now resolves grammar constraints only, and Message.resolveJsonSchemaConstraint is removed; convertTools handles JSON-schema strictness for every provider.