Workspace release: devintern init and manual runs in a registered checkout now use ~/.devintern instead of the project’s .devintern-code/, legacy checkouts migrate there automatically, repositories can be marked manual_only, and prompt overrides and tracker status settings move into the workspace. Pending ad-hoc tasks can be cancelled from the CLI or dashboard, GitLab worker repos pin their own project, and conflict resolution and merge-safety checks are fixed.
Upgrade notes
- Project
.devintern-code/settings move into~/.devintern. The first task run ordevintern initin a checkout that still has a local.devintern-code/.envand a GitHub, GitLab, or Bitbucketoriginregisters it as amanual_onlyrepo in~/.devintern/workspace.toml, moves the.envto~/.devintern/env/<repo>.env(removing it from the checkout), moves the sign-in session and license cache to the workspace when it has none, and copiessettings.jsontracker sections into[trackers](new project keys only). Committedsettings.jsonand.env.examplefiles and the localqueue.dbstay in place; a failed migration is reported and leaves the legacy setup working. A checkout without a recognisedoriginkeeps the legacy.devintern-code/setup. See Configuration → Moving from.devintern-code/ - Prompt overrides in a project’s
.devintern-code/prompts/are no longer read. Move them to~/.devintern/prompts/(or~/.devintern/prompts/<repo>/for one repository); DevIntern prints a one-time warning when it finds the old directory. The review, fix, and merge-safety prompts stay pinned to the bundled catalog. Seedocs/code/advanced-settings.md - Worker task runs ignore a repository
settings.jsonpipeline, so a pull request can no longer change the steps or plugin code the worker runs. Manual runs still honor it, with a deprecation warning - Project
.devintern-code/automations.tomlis removed. Nothing scheduled it; the standalone dashboard now lists the default workspace’s[[automations]](read-only) and warns when an ignoredautomations.tomlexists - Worker repos on GitLab remotes now auto-pin
GITLAB_PROJECTwhen no project is configured. A task, review, CI-fix, error-monitor, or automation subprocess routed to a repo whose remote belongs to the effective GitLab instance now derives the API project path (group/sub/repo) instead of inheriting an unset project. An explicitGITLAB_PROJECTin the shared workspace.env, the repoenv_file/[repos.env], or team layers still wins, so a workspace that centralizes GitLab issues in one project keeps that project; the worker’s polling loop also continues to use the workspace/team value.GITLAB_CODE_HOST_ALIASESonly identifies remotes for the pin whenGITLAB_CODE_HOST_URLandGITLAB_BASE_URLresolve to the same instance. Merge-request URLs on theGITLAB_BASE_URLhost are rejected only when both the URL andGITLAB_BASE_URLname explicit, different ports; aweb_urlserved on the default port behind a proxy still matches. See Workspaces → Environment. - Namespaced team values now apply to team task subprocesses and sit above repo layers. A
<TRACKER>_<TEAM>_<SETTING>value in the shared workspace.env(for exampleGITHUB_PLATFORM_TOKEN,JIRA_PLATFORM_API_TOKEN,GITLAB_PLATFORM_TOKEN, orGITLAB_PLATFORM_PROJECT) is now layered into task, review, CI-fix, error-monitor, ad-hoc (worker add), and automation subprocesses for that team, matching the credentials and project the worker’s own poller already resolved. These values override the repoenv_fileand[repos.env]layers, so a namespaced team credential that duplicates a repo-layer credential silently becomes the one used for pushes, PRs, and comments in that team’s subprocesses. Audit any namespaced team credentials in the shared workspace.envbefore upgrading; remove the namespaced value or move the intended one into the repo layer if the repo value should continue to win. A teamenv_fileor inline team value still wins over the namespaced form. See Workspaces → Environment.
Added
devintern initregisters the checkout in~/.devintern: in a checkout with anoriginremote,initno longer creates.devintern-code/. It registers the repo in~/.devintern/workspace.tomlas amanual_onlyentry (creating the workspace when missing) and writes the wizard’s values, or the--yestemplate, to~/.devintern/env/<repo>.env(mode 600, referenced byenv_file), so each manual repo keeps its own tracker and credentials. Re-runninginitupdates that file; for a worker-managed repo withoutenv_fileit points at the workspace files instead of editing the shared.env. Seedocs/code/configuration.md- Manual runs in a registered checkout use the workspace:
devintern <TASK>started in a checkout whoseoriginmatches a[[repos]]entry takes the same environment layers a worker task gets (shared.env, the repo’senv_file/[repos.env], pipeline references, per-repo prompt overrides) plus the workspace queue DB, telemetry, sign-in, and license cache, and writes nothing into the checkout. Manual runs and worker tasks share per-ticket locks, so a ticket in progress cannot be started twice. Manualaddress-reviewon a registered repo records into the workspace queue DB. Unregistered checkouts behave as before manual_onlyrepositories: a[[repos]]entry withmanual_only = trueis never cloned, polled, routed to, scheduled, or targeted byworker add. Teams, routing rules, error monitors, and automations that target a manual-only repo are rejected, and a workspace whose repos are all manual-only does not need[defaults].tracker. Seedocs/code/workspaces.md- Prompt overrides from
~/.devintern/prompts: overrides resolve fromDEVINTERN_PROMPTS_DIR, then~/.devintern/prompts/<repo>/for the run’s repository, then~/.devintern/prompts/, then the bundled catalog. Seedocs/code/advanced-settings.md - Tracker status settings in
workspace.toml: status names and the story-points field can be set under[trackers.<tracker>.projects.<KEY>], validated with the rest of the workspace. They overlay the legacy.devintern-code/settings.json(a workspace project key wins), and a legacy file with tracker sections prints a one-time deprecation warning. The worker copies its repos’ committedsettings.jsontracker sections into[trackers]at startup. Seedocs/code/advanced-settings.md#tracker-status-settings - Cancel a pending ad-hoc task (DEV-195):
devintern worker cancel <taskKey> [--reason <text>] [--json]and the dashboard’s Cancel task action (Overview → Queued,POST /api/tasks/:id/cancel) withdraw aworker addor New task task before the worker claims it, including one held back by a usage-limit pause. The cancel is a single guarded write, so it races the worker’s claim safely: if the worker wins, cancel reportsalready startedand nothing changes; running tasks are never interrupted. A blockedworker add --waitreturns within one poll withstatus: "cancelled"and exit code3. Cancelled tasks record who cancelled them (cliordashboard), when, and the optional reason, show inworker queueand the dashboard as recently cancelled, free their idempotency key, cannot be--resumed, block their dependents, and are pruned like other settled tasks. Seedocs/code/delegation.md#cancel-a-pending-taskThe dashboard confirms the cancel inline in the expanded row, keeps the queued task’s prompt preview visible, and labels recently cancelled rows “Cancelled from the CLI” or “Cancelled from the dashboard”; queued titles and repo names are no longer cut short
Fixed
- Conflict resolution no longer tells the agent to run
git add -Ain a sandbox: the base-sync and pre-push hook-fix prompts asked forgit add -A, which fails on the/dev/nullplaceholders a sandboxed agent sees in the worktree root (.bashrc,.profile,.gitconfig,.claude/…). Every agent hit the error, switched to another command, and explained the change in its report. The prompts now ask forgit add -uplusgit add <path>for new files. Whenever DevIntern commits agent work (the task commit, PR review and auto-review fixes, merge resolutions, and git hook fixes), it stages tracked changes and new files but skips special files and empty leftover sandbox mount points, so these no longer fail the commit or end up in it, and a worktree holding only them counts as having no changes - A fenced merge-safety verdict is no longer reported as “no verdict”: when the auto-merge agent wrapped its final JSON in a Markdown code fence (
```json…```), the check failed withmerge-safety agent returned no verdict, ran the agent again on the next tick, and after the last attempt said the check kept failing instead of giving the agent’s reason. A single fenced block holding one JSON line at the very end of the agent’s output is now read as the verdict. Prose after the fence, multi-line JSON, or an earlier fenced block still count as no verdict, so nothing merges by accident - Ad-hoc tasks and automations borrowing a team’s credentials use its namespaced values:
worker addtasks and repo-scoped automations now layer<TRACKER>_<TEAM>_<SETTING>values like the team’s polled tasks, so they resolve the same tracker project and tokens - GitLab merge-request URLs behind a proxy match again: a
web_urlserved on the default port no longer fails to match aGITLAB_BASE_URLwith an explicit port
Technical
- Workspace state cleanup:
github-app.jsonmoves from<workspace>/.devintern-code/tostate/code/; auth session, relay and GitHub App pairing, and license cache are moved rather than copied, superseded legacy copies and an empty strayqueue.dbare discarded, and the legacy directory is removed once empty. Commands run from the workspace home no longer recreate<workspace>/.devintern-code/ - Local E2E coverage:
@devintern/e2egained offline coverage for the worker dependency gate on Jira, Linear, Trello, Asana, and Azure DevOps, and for ad-hoc task dependencies (--after) andworker cancel.DEVINTERN_MAX_CONCURRENCY_PER_REPOis stripped from the code test environment - Docs: the delegation guide is split into dependent tasks, remote delegation, and wait/resume pages, with the stale dependency-mode default fixed; agent instructions converge on
AGENTS.md