Starts Nov 20. Live now. 40% off your first invoice with code BLACKFRIDAY26, Nov 20 to Dec 1. See pricing

← All releases

v2.21.0

November 3, 2026

Automation-resilience release: Muse Code joins the supported harnesses, interrupted ad-hoc worker tasks resume after a restart instead of failing, Sentry polling survives upstream outages without wedging the worker, and sandboxed agents can delegate work again. The srt and smolvm sandbox providers are removed without a deprecation release; see Upgrade notes before upgrading.

Upgrade notes

  • Action required: the srt and smolvm sandbox providers are removed in 2.21.0 without a deprecation release. Both are gone, so AGENT_SANDBOX=srt|smolvm (or --sandbox srt|smolvm) in .devintern-code/.env, a workspace .env, or the shell now fails every run immediately — including unattended worker and webhook runs — and devintern sandbox reports the same message and exits non-zero. Before upgrading from 2.20.1, switch to nono (whole-process confinement) or docker (microVM boundary); the policy variables are unchanged. See Sandbox providers.

Added

  • Muse Code harness (DEV-187): AGENT_HARNESS=muse runs Meta’s muse exec CLI for story drafting and ticket implementation. DevIntern passes --disable-request-user-input for unattended runs (requires Muse Code 1.4.9+; older versions fail with an upgrade message), maps skipPermissions to --disable-approval (Muse’s filesystem sandbox stays on) with --sandbox-network enabled so headless publishing and package installs do not stall on Muse’s per-destination network review, maps --max-turns to --max-model-steps, sends AGENT_MODEL to --model and AGENT_EFFORT to --reasoning-effort, uses the :read-only profile for read-only analysis, and delivers oversized prompts through --prompt-file. --json stays opt-in via structured output, so normal runs keep plain text output and the existing usage-limit/turn-limit detectors. On macOS under nono, DevIntern disables Muse’s inner Seatbelt (nested Seatbelt is unsupported), requires META_API_KEY, and hides ~/.config/muse/auth.json from the run so agent shell commands cannot read the stored credential. The Muse exit code reports how the turn ended, not whether the implementation or tests passed. See docs/code/configuration.md#agent-harness
  • Interrupted ad-hoc tasks auto-resume after a worker restart: startup recovery now inspects rows left running by a dead worker, and when the latest local run recorded a branch and implementation report (and the branch still exists) the row returns to pending so session pickup inherits that branch and report instead of failing. Automatic resume is bounded per row by WORKER_INJECTED_AUTO_RESUME_LIMIT (default 1; 0 disables it) so a restart loop cannot re-run the same task forever, while worker add --resume and the dashboard Re-queue task reset the budget. --wait follows the replacement run through a bounded restart grace, a row whose latest run already succeeded settles done, and a still-live task child blocks resume/re-queue until it exits

Removed

  • srt sandbox provider removed: AGENT_SANDBOX=srt and --sandbox srt now fail with a migration error naming nono (or docker for a microVM boundary) instead of the generic unknown-provider list. nono remains the supported whole-process wrapper. The SANDBOX_RUNTIME marker is still detected so a DevIntern launched inside an existing srt shell inherits the enclosing confinement instead of nesting another sandbox.
  • smolvm sandbox provider removed: AGENT_SANDBOX=smolvm and --sandbox smolvm now fail with a migration error naming docker (or nono for local confinement). The provider, its registration and export, its tests, setup notes, and documentation are gone. The supported providers are native, nono, and docker (plus none / auto).

Fixed

  • Implementation resume state is persisted before commit and auto-review: the harness now records the completed implementation stage, branch, and agent report before delivery’s commit, verification, and review phases, so a crash or SIGTERM during those phases leaves resumable state instead of forcing a fresh run. Session pickup requires landed commits (or an authoritative commit probe) before resuming, downgrades an early success to failed when delivery halts as incomplete, and prefers the newest fresh summary so a stale incomplete file from an earlier attempt cannot mask a later success.
  • Sentry polling survives upstream 5xx and hung connections: transient network errors and Sentry 5xx responses retry twice with short backoff and honor Retry-After within a 4-second aggregate wait budget, each request carries a 10-second timeout and one whole fetch a 15-second cap, and non-auth 4xx plus auth/rate-limit responses classify immediately. Repeated identical failures log once with a recovery line, and the first tick no longer blocks worker startup or the auto-update successor. Sentry query tokenization keeps quoted phrases and a quoted is:unresolved intact instead of dropping the required unresolved filter.
  • --help no longer executes subcommands: devintern init --help scaffolded .devintern-code/ and devintern logout --help signed the user out because the pre-Commander dispatch ignored the flag. init, login, logout, whoami, sandbox, and doctor now print their usage and exit 0, and workspace --help points at worker instead of failing.
  • Sandboxed agents can delegate work with worker add: the agent sandbox policy now grants write access to injected/ (ad-hoc task prompts), state/ (the queue database), and automations/ (automation cursors), and the worker creates injected/ and automations/ at startup because a grant only covers existing paths. Enqueue failures report the error with the paths to grant instead of a minified stack trace, while --json keeps stdout clean.
  • A reused base worktree starts from the default branch: the persistent base worktree shared by automations and review jobs was returned untouched, so a prior run’s feature branch or tracked leftovers could become the next automation’s starting commit. Reuse now detaches at origin/<default> and discards tracked leftovers, leaving the previous branch intact and keeping untracked files such as installed dependencies.
  • GitHub webhooks reject an empty WEBHOOK_SECRET: signature verification refuses an empty key and the server answers 503 GitHub webhooks are not configured (matching the GitLab guard) instead of accepting an HMAC keyed with "" that anyone can compute.
  • Slow ad-hoc tasks no longer stall other acquirers: InjectedTaskAcquirer.start() awaited its first drain, so a slow worker add task could leave scheduled automations and dashboard Run now stopped during startup. It now starts the interval without awaiting, and claims only up to the workspace’s global and per-repository concurrency limits.
  • devintern sandbox auto mode picks the provider the resolver will use: the doctor’s preflight no longer probes through native for harnesses it cannot wrap (for example goose), which made a healthy nono configuration exit non-zero even though the run would use nono.
  • Verification accepts approvals whose findings are below its threshold: parseReviewFeedback validated every verdict against the auto-review default (medium) before verify could apply minSeverity: "high", so an approval listing advisory medium notes died as “Failed to parse review feedback JSON” and the step retried the agent twice before halting despite onFail: "warn". The parser now separates schema validation from the approval policy, and verify judges approvals at its configured minSeverity.
  • A contradictory verification verdict no longer burns two agent runs: an approval that listed a finding at or above minSeverity was rejected by the parser, so the step treated a deterministic policy rejection as a transient agent failure and re-ran verification (roughly 25 minutes per attempt) before halting despite onFail: "warn". verify now downgrades such a verdict to a rejection and lets onFail decide; callers that do not own the policy still get the strict check.

Technical

  • Expanded offline end-to-end coverage: GitLab worker lifecycle and hosted relay, the Jira lifecycle against an offline fake server, signed GitHub and GitLab webhook serve deliveries, the full worker add option matrix, the nono sandbox boundary, and the fail-closed paths for srt, smolvm, docker, and native, plus a coverage matrix and delegation scout for future scenarios
  • Test runtime isolation: the suite strips worker runtime variables from its own process and subprocesses and gives the base-worktree fixture an explicit git identity, so bun test behaves the same inside and outside a worker task subprocess
  • Docs refresh: authenticated ways to reach the dashboard remotely, worker and multi-project workflow diagrams, a GitLab Issues row in the quick-start tracker table, and drift corrections across the configuration, dashboard, and integration guides
  • Dependency maintenance: @modelcontextprotocol/sdk moves from 1.30.0 to 1.32.0, and the desktop workspace picks up DOMPurify 3.4.17, Electron 43.8.1, and happy-dom 21 (dev/test only); seven advisories remain blocked by transitive ranges