Repository navigation
Arcwright 2.4.0: automatic checks, rollback, track records
Automatic checks, diffs and rollback, a track record for every model, and fixes from a review by two outside experts.
- Local agents can read files again: since 1.5.0, the local agents'
read_filetool crashed on every call (it assigned to a Buffer's read-onlylength), so a local model could not read its spec or the code and often ran out of steps. Found by a live run of this version withollama:qwen3.5:9b: the same task went from failing after 205 s to passing its checks in 41 s. A line range can now also reach past the first 60 KB of a file. Tests now cover reading. - Long model answers no longer fail: a local model that thought for more than 5 minutes before answering got "fetch failed" (Node's fetch gives up waiting for response headers), although the run allows 10 minutes per request. Model requests now use Node's http module, with the run's own time limit as the only limit. Found by the benchmark.
- Benchmark rerun with these fixes:
ollama:qwen3.5:9bpassed 11 of 12 tasks on the first try and 12 of 12 within one follow-up, median 69 s per task (README andbench/resultsupdated). - Automatic checks: Claude can give a task the commands that prove it works (
checks: ["npm test"]). With Automatic checks turned on in the console, Arcwright runs them as soon as the agent finishes, shows each one live in the transcript and on the map, and sends failures (command, exit code, end of output) back to the same agent in the same conversation before Claude reviews (auto_fix, default 1, up to 3). Claude then gets each check marked PASS or FAIL, the files changed across the automatic fixes, and the output of failed checks fenced as untrusted data. Approving a task whose checks failed adds a warning. - Checks are off until the user turns them on (the console asks to confirm), are not run when the agent changed files that run code, and are signed when Claude sets them so a command changed in the task file is never run. Check results in the timeline are signed too. When they are off, Claude is told the commands and runs them during review.
- Commands without secrets: commands run by local agents (and checks) get an environment without variables that look like tokens, keys or passwords, or the usual cloud and API credentials, and a timeout or a stop now ends every process they started, not just the shell (
server/shell.js). - Local agents stop at their time limit even in the middle of a model request or a command; before, the limit was only checked between steps.
- No duplicate task numbers: a task number is claimed with an exclusive create, so two Claude sessions dispatching at once never collide.
- Cancel no longer edits the task file while its worker runs; it leaves a signal file the worker reads. On macOS and Linux, a cancelled task ended as "failed" or stayed "running" (a stopped worker still looks alive until it is reaped); cancel now records the cancellation itself when it stops the worker.
- Test failures on GitHub Actions also show as annotations on the pull request.
- No false usage limits: only the provider's own messages are scanned, never the agent's reply, so an agent working on rate limiting does not bench its model.
- Bounded timeline: past 50 MB (
AGB_TIMELINE_MAX_BYTES) a project's live timeline starts over and keeps the previous one; the console reads only its latest 4 MB when it connects. - Checkpoints and real diffs: in a git project, the files are saved before and after every run as private commits (
refs/arcwright/<task>/run<N>-before|after), with a separate index so the user's index, branch and working tree are untouched. Results show lines added and removed per file and give Claude thegit diffrange; the console shows the totals on each task.AGB_NO_CHECKPOINTS=1turns them off. - Rollback:
arcwright_rollbackand a Revert task button in the console put every file a task changed back as it was before its first run. Files edited since the task finished are left alone and listed, unlessforce. The task is marked reverted. - Track record: a private log of every run and review (
~/.arcwright/runs.ndjson, numbers only, projects and tasks hashed) gives each model a record on this machine: tasks approved on the first try, checks passed, failures, time per run.arcwright_modelsshows it to Claude, which routes on evidence; the console's models list shows each model's first-try record. - Work kept off Claude: each run records its tokens and lines;
arcwright_list_tasksand the console's project view show how many tokens the agents used (and how many on local models, at no cost) instead of Claude. - Skill: when and how to pass checks, and reviewing their results. Also choosing models on their track record, reading exact diffs, rollback, and reporting the agents' work.
- Tests for every fix and for the checks (off by default, the fix loop, auto_fix 0, changed commands, sensitive files, signed events, cancel).