Workspace release, continued: DevIntern no longer reads or writes anything in a checkout’s .devintern-code/, checkouts without a hosted remote register by path, and all run state lives in ~/.devintern. Auto-merge gains merge-safety policy presets, custom rules, and review paths; devintern automations installs bundled automation packs; newly added GitHub repos verify without reinstalling the App. Duplicate ticket runs during scheduled retries, rerere-replayed merges rejected by commit hooks, worker doctor messages, and the dashboard’s harness and stats views are fixed.
Upgrade notes
- A checkout’s
.devintern-code/is no longer read at runtime. The CLI stops loading.devintern-code/.env,loadProjectSettings()uses only the workspace[trackers], and the repository pipeline layer is removed for manual runs too: pipelines come only from[[repos]].pipeline_fileand[defaults].pipeline_file, and apipelineblock in a legacysettings.jsononly prints a warning. The one-time migration into~/.devinternstill runs, and a checkout with only committed tracker settings now registers too.worker initwrites a new tracker setup into the shared~/.devintern/.env, adding missing keys and warning about differing values. Seedocs/code/configuration.mdanddocs/code/pipelines.md - All run state lives in the workspace, for registered and unregistered checkouts alike: the queue DB defaults to
~/.devintern/state/queue.db(unlessWEBHOOK_QUEUE_DBis set), the sign-in session and license cache to~/.devintern/state/code/(a checkout’s legacy.auth-session.jsonandlicense-cache.jsonmove there at startup; an existing workspace session wins), and checkout locks, ticket locks, bug-report spool, telemetry, and automation occurrence files to~/.devintern. An old checkoutqueue.dbis left behind and no longer read .devintern-code/**is no longer a built-in auto-merge deny path,git cleanand the pre-branch stash no longer exclude it, and worker worktrees no longer get.git/info/excludeentries for runtime files
Added
- Register checkouts without a hosted remote by path: a
manual_only[[repos]]entry can set an absolutepathinstead ofremote; manual runs in that directory or below it use the entry (the deepest match wins).devintern init,init --yes, and the automatic migration always register the checkout, byoriginwhen it is a GitHub, GitLab, or Bitbucket remote and by directory otherwise, and never write.devintern-code/,.env.example,settings.json, or a.gitignoreblock. Seedocs/code/workspaces.md - Bundled automation packs:
devintern automations list | show <pack> | add <pack> [--repo] [--id] [--disabled] [--workspace]installs ready-made[[automations]]recipes (ci-red-fixer,dependency-security,dependency-freshness,flaky-test-finder,slow-test-optimizer,docs-drift).automations addpicks only worker repos:manual_onlyrepos are skipped,--repo <manual-only>gets a clear error, and a workspace with only manual-only repos is refused without writing anything. Seedocs/code/automation-packs.md - Merge-safety review policies (
auto_merge_policy): auto-merge reviews can use thestrict(default, unchanged),standard, orrelaxedpreset, or acustompolicy with operator-owned rules fromauto_merge_rulesorauto_merge_rules_file(missing, empty, or oversized rules files leave the PR open).auto_merge_review_instructionsadds repo-specific restrictions. All keys work at workspace and[[repos]]level, the hold comment names the policy, and changing the policy, instructions, or rules re-checks PRs left open. Seedocs/code/pr-follow-up.md#review-policy - Auto-merge review paths (
auto_merge_review_paths): files matching these globs (for exampleAGENTS.mdor**/skills/**) always go to the agent review and never count as safe, instead of blocking the PR through the deny list; deny still wins, and withauto_merge_review = falsethe PR stays open. Seedocs/code/pr-follow-up.md#review-paths - Verify newly added GitHub workspace repos without reinstalling the App: with the hosted GitHub App,
devintern worker connect githuband the worker (at startup and on config reload) verify repos under an already-paired installation through the relay, so a repo added toworkspace.tomllater no longer needs a browser pairing that timed out for “All repositories” installs. Only repos the relay cannot verify go to the browser. Seedocs/code/relay.md
Fixed
- No duplicate ticket run during a scheduled retry: the tracker poller could pick up a ticket while the scheduled-retry drain was running it and start a second agent run with its own branch, push, and comments. Tickets with a pending or running retry are now skipped and re-checked once the retry settles
- Rerere-replayed merges rejected by a commit hook go to the agent: conflict resolution replayed an incomplete recorded resolution, failed the pre-commit hook, and aborted on every retry without the agent ever seeing the error. The agent now gets the hook output to fix the merge, and ANSI color codes are stripped from
merge commit failed:messages - Stats exclude auto-merge gate verdicts from the headline rates:
devintern worker statsand the dashboard Stats view computed success and escalation rates overauto_mergeruns too, whereescalatedjust means “left for a human”. Headline rates and harness rows now exclude them, and auto-merge results show separately as merged / left for review - Clean error when the agent CLI is missing:
devintern TASK-1without the agent CLI installed printed a stack trace (or minified bundle code); it now prints the message andRun devintern doctor to check your setup.and exits 1 worker doctorrecognizes the running worker: a live worker’s dashboard port no longer warns “Stop the process holding the port”, and the closing line no longer says to start an already-running workerworker doctorshows the realgit ls-remotefailure: the repository row gives the specific cause (missing path, repo not found, DNS, publickey) instead of git’s genericand the repository exists., and only repos the worker runs are probedworker scaffoldnext steps name the tracker,task_query, andworker doctor: following them now gives a worker with something to poll; routing rules are marked as only needed for multiple repos- Runs are not escalated for gate failures already present on the base commit: the outcome instructions tell agents to report
partialwith apre-existing on base:reason (recordedsucceeded) when a failing gate reproduces on the base and fixing it is not the task’s goal - Agents are no longer told to
git add .: the git hook-fix and single-comment review prompts now ask forgit add -uplus explicit new files, so sandbox placeholder entries are not staged - Pre-branch backups stay off the shared git stash stack: the worker’s backup of uncommitted work moves to a DevIntern-owned ref, so an agent’s
git stash popin a sibling worktree no longer applies another task’s backup - Dashboard agent harnesses block: fallback harness names are no longer squeezed and the quota detail wraps; the worker now persists the recovered primary on restart, so the dashboard stops reporting a stale active harness
--env-fileandWEBHOOK_QUEUE_DBin registered checkouts: a workspace run with--env-filetakes credentials and tracker settings only from that file, and an explicitWEBHOOK_QUEUE_DBis kept for manual runsworker status --jsonno longer reports the CLI’s own pid asserverPid: onlyGET /api/workerreturns it, with the worker daemon’s pid
Technical
- Workspace internals: relay and GitHub App state always live in the given workspace’s
state/code/;workspace.tomlwrites are atomic; the worker copies committedsettings.jsontracker sections from every worktree it prepares; hints and help text point to~/.devintern/env/<repo>.envand[trackers] - Dashboard demo build: a read-only
VITE_DASHBOARD_DEMO=1build of the dashboard backed by a recorded, scrubbed workspace snapshot, with a link back to the site; the normal dashboard build is unchanged - Tests and tooling:
bun run testinpackages/codeaccepts package-relative test paths; faster config-lock tests and fixes for flaky orphan-recovery and agent-harnessspawnAgenttests;@devintern/e2egained offline coverage for GitLab webhooks, relay v2 GitLab events, GitLab Issues polling and estimates, the markdown dependency gate, dashboard cancel and/api/workspace, read-only worker commands,worker doctorchecks, and standaloneaddress-review/resolve-conflictsagainst a fake GitLab forge - Docs: guides and examples point at
~/.devintern; the setup skill verifies worker readiness withdevintern worker doctor