Upgrading dmx
Upgrading dmx takes two steps: update the package your IDE runs, then refresh the rule files dmx copied into your repo. The package brings new behavior. The rules tell your agent how to use it.
Step 1: Update the package
Your IDE runs dmx through uvx, which can keep using a copy it already downloaded. To make sure you get a new release, name the version in your MCP config.
Pin an exact version, so everyone on the team runs the same one:
{
"mcpServers": {
"dmx": {
"command": "uvx",
"args": ["--from", "deepmodel-dmx==0.8.5", "dmx", "serve"]
}
}
}Or always run the newest release:
{
"mcpServers": {
"dmx": {
"command": "uvx",
"args": ["--from", "deepmodel-dmx@latest", "dmx", "serve"]
}
}
}Every IDE uses this same mcpServers config, in .cursor/mcp.json, .mcp.json, or ~/.copilot/mcp-config.json (see MCP Setup). Restart your IDE after saving. If you added dmx to Claude Code for all projects with claude mcp add --scope user, run claude mcp remove dmx and add it again with the new version.
Step 2: Refresh the rules
Start from your integration branch with no uncommitted changes, and run:
/dmx/upgradeIt rewrites the dmx rule files in your repo, such as .cursor/rules/ or the dmx block in CLAUDE.md, for every IDE that already has them, plus the one you're using. Content outside the dmx block in shared files is left as it is. If the rules are already current, it says so and changes nothing.
The upgrade goes through a PR like any other change:
- On your integration or production branch, it creates
chore-dmx-upgrade-<version>fromoriginand works there. With uncommitted changes, it stops and asks you to commit or stash them first. - On any other branch, it asks whether to put the upgrade in that branch's PR or on its own branch.
- When it's done, it commits only the files it changed, then asks before pushing and opening the PR. It never merges.
In a repo still on the 0.5 layout, it also migrates it (see Upgrading to 0.6.0): it shows the plan and asks once before changing anything.
Then open a new chat so the new rules take effect. Teammates get them when the PR merges.
/dmx/upgrade doesn't touch .dmx/config.md or loop state.
If your repo's rules are older than the installed dmx, run_loop, loop_status, and list_skills add a reminder to their reply:
Your dmx rules are from 0.8.0 (dmx is 0.8.1). Run `/dmx/upgrade`.Upgrading to 0.8.5
Bump the version you pin, restart your IDE, then run /dmx/upgrade once in each repo: the rules changed, so loops remind you until you do. It puts the upgrade on its own branch and offers to open the PR (see Step 2).
- Codex and Copilot now get the full dmx rules in
AGENTS.mdand.github/copilot-instructions.md, not just a list of rule names. - No AI attribution: commits, PRs and issues no longer get
Co-authored-by:or "Generated with …" lines. To keep them, setai_attribution: keepin.dmx/config.md.
Upgrading to 0.8.4
Nothing to run: the rules didn't change. Bump the version you pin. A Go repo that listed a parent test only to cover its failing subtests can drop the parent; listing the subtests is enough.
Upgrading to 0.8.3
Nothing to run: the rules didn't change. Bump the version you pin. If a repo got Cursor's rule files even though your team doesn't use Cursor, delete .cursor/rules/system-prompt.mdc and the dmx block in .cursor/AGENTS.md, then run /dmx/init or /dmx/upgrade to write the right ones.
Upgrading to 0.8.2
Nothing to do: the rules didn't change, so there's no /dmx/upgrade this time. Bump the version you pin. A repo without components that wants the gate to run more than the detected test command can now set test_command.
Upgrading to 0.8.1
Run /dmx/upgrade once on a branch and commit the refreshed rule files. The rule changed, so loops remind you until you do. Nothing else changes for existing setups. A component loop that sets owner: on its validators keeps working; it can now name them plainly instead.
Upgrading to 0.8.0
- Run
/dmx/upgradeonce on a branch and commit the refreshed rule files. The rule changed, so loops remind you until you do. - The bundled Validate Loop now proposes rework when a required check fails. To keep the old pause, copy
validate.yamlinto.dmx/loops/and remove itsreworkblock. - In a repo with components, run
dmx check. A Python component whose folder holds no tests now runs the test paths itspathsmap elsewhere, or is reported as not configured. See Tests. - Optional:
- Add
github_access: ghunder## GitHubin.dmx/config.mdto use theghCLI without a GitHub MCP server. - List tests that fail on the base branch too under
known_failures.
- Add
Loops no longer commit their state at every step; a chain of loops commits once, when it stops.
Upgrading to 0.7.0
Nothing moves, and components are opt-in: a repo without .dmx/components/ behaves as in 0.6.
- Run
/dmx/upgradeonce on a branch and commit the refreshed rule files. - To split a monorepo into components, re-run
/dmx/init, which finds pnpm, npm, yarn,go.work,uv, and Cargo workspaces, or run/dmx/add-component <path>for each service. Then fill independs_on, addtest_commandto.dmx/config.md, and add the suggestedCODEOWNERSlines. See Monorepos. - Run
dmx checkand fix what it reports. It exits 1 on an error, so it can run in CI too. - With components,
run_testsruns each touched component's tests with its own toolchain, so CI that runs the Validate Loop needs those toolchains installed.
The Release Loop also gained a prune-jobs step that removes finished jobs older than 30 days in a separate commit; your first PR after upgrading may remove many old jobs at once. To keep job history, give the repo its own .dmx/loops/release.yaml without the step.
Upgrading to 0.6.0
0.6 changes the .dmx/ layout, so each repo migrates once:
- Ticket files move into job folders.
spec.md,tasks.md, andactiveContext.mdnow live in.dmx/jobs/<job>/instead of the.dmx/root, so parallel tickets no longer conflict on them. - Shared sources are locked, not copied.
.dmx/vendor/is replaced by.dmx/shared-sources.lockand a git-ignored cache. See Shared Sources.
To migrate:
- On a branch, run
/dmx/upgrade. It lists any custom validators, loops, or skills that still name.dmx/spec.md,.dmx/tasks.md,.dmx/activeContext.md, or.dmx/vendor/, then shows the plan: this branch's ticket files move into its job folder, an earlier ticket's leftovers are deleted (they stay in git history), and each vendored source is locked at the commit it recorded. It asks once, applies the plan, and leaves the commit to you. Fix the listed custom code (validators now getspec_path,tasks_path, andactive_context_pathinloop_context), then commit everything as one PR. - On branches cut before that PR merged, run
/dmx/sync-branchor any loop step before merging, so each branch's own ticket files move into its job folder first. If a merge still stops on a modify/delete conflict in.dmx/spec.md,.dmx/tasks.md, or.dmx/activeContext.md, keep the branch's version; the next loop step moves it. - CI that runs shared validators needs read access to the shared-source repos: give it a read token and run
dmx fetch-shared-sourcesbefore the tests.
/dmx/sync still works as an alias for /dmx/update-shared-sources.
Upgrading to 0.5.0
Run /dmx/upgrade once in every repo. Skill discovery and the updated loop handling are in the 0.5.0 rules.
Custom loops with coverage_threshold. The bundled Dev Loop no longer lists this check, because the bundled run_tests never reported it. If you copied the old Dev Loop into .dmx/loops/dev.yaml or a shared source, remove the check or implement it in your own run_tests. Otherwise the missing check raises a warning, and a passing Dev Loop stops there instead of moving on to the Validate Loop.
Validator time limits. Validators used to stop after 120 seconds, which could cut off a test suite. The default is now 630 seconds, and you can change it per validator with timeout_seconds.
Repos without ticketing. dmx 0.4.2 filed loop runs for repos with ticketing set to none under .dmx/jobs/none/. Each branch now gets its own job folder. An in-progress run moves to its branch's folder the first time you run a loop command, and dmx tells you when it does. Completed runs stay in none/.
Spec Loop check. The Spec Loop has a new required check, spec_identity_matches_branch. A spec whose frontmatter names a different branch now pauses the loop instead of moving on to the Plan Loop.
See the Changelog for everything in the release.