<recommended_plugins>
Here is a list of plugins that are available but not installed. If the user's query would benefit from one of these plugins, use the request_plugin_install tool to suggest that they install it. Pass the parenthesized ID as plugin_id. For example, suggest the Google Drive plugin if the query could possibly be better answered with access to Google Drive.
AGENTS.md instructions for /Users/jdx/.codex/worktrees/2b17/mise
Create GitHub pull requests ready for review. Never create draft pull requests unless the user explicitly requests a draft.
--- project-doc ---
Repository Agent Guide
This file provides guidance to AI coding agents when working with code in this repository. It keeps the CLAUDE.md filename for compatibility with existing tooling, and AGENTS.md symlinks to it for other agents.
Registry Submissions: READ THIS FIRST
Most registry PRs from agents get rejected. Before adding anything to registry/, understand the rules:
mise does not host self-written, personal, niche, or low-popularity tools. The registry is curated for tools that are already widely used. "It works" or "it has tests" is not the bar.
Tools that aren't VERY popular will be rejected without explanation. Per contributing.md: "@jdx won't explain why a given tool wasn't accepted." There is no appeal, no checklist, no second chance — the PR is closed and that's it.
Wasted PRs are the default outcome for tools the agent or user has not vetted against this bar. Do not submit one speculatively.
Required pre-submission check
Before touching registry/, ALWAYS do the following:
Ask the user: "Is this tool already widely used outside your own projects?" — if it's the user's own tool, a fork, an internal/company tool, or something with a small audience, stop and tell them the PR will be rejected. Do not submit.
Actively check popularity for every registry PR — no exceptions. Look up real numbers; do not guess. Useful sources:
Whether the project shows up in third-party docs, awesome-lists, or other tools
Apply the bar. Rough signals — very low numbers are disqualifying:
GitHub stars in the thousands, not hundreds
Active maintenance (recent releases, not abandoned)
Real third-party usage (referenced in docs, blog posts, other tools, package registries)
Recognizable in its ecosystem
Include the popularity data in the PR description. Every registry PR body MUST contain a short section like:
code
## Popularity
- GitHub: 12.3k stars, 480 forks, last release 2026-04-12
- crates.io: 1.2M downloads
- Used by: <project A>, <project B>
This is non-negotiable — it lets the maintainer evaluate the submission without re-doing the research. PRs without it look speculative and are more likely to be rejected.
If the tool is borderline or numbers are low, warn the user clearly that the PR is likely to be rejected without reason, and ask if they still want to proceed. Do not soften this — users have repeatedly been surprised when their PR was closed, and the agent should have warned them up front.
Suggest the alternative: users can install any tool themselves via explicit backend syntax (mise use aqua:owner/repo, mise use github:owner/repo, mise use cargo:name, mise use npm:name, etc.) or by writing a tool plugin. The registry is only for shorthand convenience for popular tools — not for enabling installation.
Backend choice: aqua (preferred) or github
For registry entries the backend tiers are:
Tier 1 — preferred:aqua:, github:, and gitlab:. These are the routinely accepted backends.
Prefer aqua: when the tool is in the aqua registry. Better UX, SLSA verification, and per-version logic.
Use github: when the tool isn't in aqua but ships GitHub releases.
Use gitlab: for tools released through GitLab.
Tier 2 — high bar, but lower than tier 3:conda:. Potentially acceptable when the tool can't be supported via aqua/github. The bar is lower than tier 3 because the conda backend in mise does not require a separately-installed package manager — mise downloads and extracts packages directly from anaconda.org via rattler, so users don't need conda/mamba on PATH. Still requires a popular, well-maintained tool.
Tier 3 — extremely high bar, almost never accepted:npm:, pipx:, gem:, cargo:, go:, dotnet:. These all rely on a separately-installed runtime/toolchain being present on PATH (node, python, ruby, cargo, go, dotnet), which is fragile — the wrong version, a missing install, or PATH ordering quirks all break them. npm:/pipx:/gem: are particularly painful because tools installed via them silently bind to whichever node/python/ruby was on PATH at install time. Don't reach for these for a registry PR unless the user has explicitly confirmed @jdx wants it that way for this specific tool.
Not accepted at all:
New asdf: plugins — supply-chain security. Use aqua/github instead.
New vfox: plugins — same reason. Use aqua/github instead.
ubi: is deprecated and will not be accepted under any circumstances.
Users can still install via any backend themselves with explicit syntax (mise use vfox:..., mise use cargo:..., etc.) — they just don't get a registry shorthand for it.
Development Commands
Building and Testing
mise run build or mise run b - Build the project with cargo
target/debug/mise - Run the built binary directly
mise run test or mise run t - Run all tests (unit + e2e)
mise run test:unit - Run unit tests only
mise run test:e2e - Run end-to-end tests only
mise run snapshots - Update test snapshots with cargo insta
Debugging
Use MISE_DEBUG=1 or MISE_TRACE=1 environment variables to enable debug output (not RUST_LOG)
Code Quality and Testing
mise run lint - Run all linting tasks
mise run lint-fix - Run linting and automatically fix issues
mise run format - Format code (part of CI task)
mise run ci - Run format, build, and test
mise run test:e2e [test_filename]... - Run specific e2e tests (use this instead of executing test files directly)
mise --cd crates/vfox run test - Run tests for the vfox crate
mise --cd crates/vfox run lint - Run linting for the vfox crate
mise --cd crates/vfox run lint-fix - Run linting and fix issues for the vfox crate
mise task ls - List all available tasks
Documentation and Generation
mise run render - Generate all documentation and completions
mise run render:usage - Generate CLI usage documentation
mise run render:completions - Generate shell completions
mise run docs - Start documentation dev server
mise run docs:build - Build documentation
Development
mise run install-dev - Install development version locally
mise run clean - Clean cargo build artifacts
Code Architecture
High-Level Structure
Mise is a Rust CLI tool that manages development environments, tools, tasks, and environment variables. The codebase follows a modular architecture:
Core Components:
src/main.rs - Entry point and CLI initialization
src/cli/ - Command-line interface implementation with subcommands
src/config/ - Configuration file parsing and management
registry: - Any changes to registry/ (no scope needed, use for both new tools and fixes)
Scopes:
For command-specific changes, use the command name: install, activate, use, exec, etc.
For subsystem changes: config, backend, env, task, vfox, python, github, release, completions, http, schema, doctor, shim, core, deps, ci
Use task (not run) for task-related changes, even if the code lives in src/cli/run.rs or src/cmd.rs
Description Style:
Use lowercase after the colon
Use imperative mood ("add feature" not "added feature")
Keep it concise but descriptive
Examples:
fix(install): resolve version mismatch for previously installed tools
feat(activate): add fish shell support
feat(vfox): add semver Lua module for version sorting
feat(env): add environment caching with module cacheability support
docs(contributing): update hk usages
chore: release 2026.1.6
chore(ci): add FORGEJO_TOKEN for API authentication
registry: add miller
Pre-commit Process
Run hk install --mise once to set up pre-commit hooks (runs hk fix automatically on commit)
Run mise run lint-fix and git add any lint fixes before committing
Use mise run test:e2e [test_filename]... for running specific e2e tests
Never run e2e tests by executing them directly - always use the mise task
Deprecation Policy
When deprecating a feature or backend:
Immediately: Mark as deprecated in docs (add warning banner)
6 months later (warn_at): Display deprecation warning in CLI using deprecated_at! macro from src/output.rs
12 months after warn (remove_at): debug_assert! in deprecated_at! fires, signaling the code should be removed
Use mise version format for dates (e.g., deprecated_at!("2026.10.0", "2027.10.0", "id", "message")).
If the replacement has been available for a long time, the CLI warning can start immediately (set warn_at to the current version).
Important Implementation Notes
Backend System
When implementing new tool backends, follow the pattern in src/backend/mod.rs. Each backend must implement the Backend trait with methods for listing versions, installing tools, and managing tool metadata.
DO NOT ASSUME SEMVER
Do not assume tool versions follow semver or any other orderable scheme. mise manages hundreds of tools with wildly different versioning conventions:
Tool-specific meanings of latest (e.g. some exclude pre-releases, some don't)
Rules:
Do not call versions::Versioning::new(...) (or any other semver comparator) at a new call site to pick the "newest" version, "resolve latest", or sort a version list. That crate silently returns None / arbitrary ordering for non-semver strings, which means wrong versions get chosen for many tools.
To resolve a version request (latest, a prefix, a channel name), delegate to the backend via Backend::latest_version, Backend::latest_installed_version, Backend::list_versions_matching, or ToolRequest::resolve — the backend knows what "latest" means for its tool.
To list installed versions in a meaningful order, use Backend::list_installed_versions_matching or the toolset's resolved versions. Do not reorder them yourself.
Lockfile version strings must be treated as opaque — compare with ==, never with a version ordering. Never write a non-concrete string (latest, lts/*, a prefix) into the lockfile; resolve first.
A few existing call sites (e.g. runtime symlinks) do use Versioning ordering today, but that's legacy behavior and arguably also wrong — do not point at them to justify new semver assumptions.
If you think you need to pick "the newest installed version" at a new call site, stop and ask — that call almost always belongs on the backend, not inline.
Plugin Development
Core tools are implemented in src/plugins/core/
External plugins use ASDF or vfox compatibility layers
Plugin metadata is defined in mise.plugin.toml files
Configuration Parsing
The configuration system supports multiple file formats and environment-specific configs. Changes to settings require updating settings.toml and running mise run render:schema.
Testing Strategy
E2E tests are organized by feature area (cli/, config/, backend/, etc.)
Use snapshot testing for CLI output verification
Backend-specific tests verify tool installation and version management
Slow tests (marked with _slow suffix) test actual tool compilation/installation
Cross-Platform Considerations
Windows-specific implementations in files ending with _windows.rs
Platform-specific tool installation logic in core plugins
Shim system varies by platform (especially Windows)
we don't chmod mise e2e tests to be executable
GitHub Interactions
When posting comments on GitHub PRs or discussions, always include a note that the comment was AI-generated (e.g., "This comment was generated by an AI coding assistant.").
Documentation
URL Structure
When referencing mise documentation URLs, use the correct path structure based on the docs/ directory layout:
Dev tools & backends: mise.en.dev/dev-tools/backends/<backend>.html (e.g., mise.en.dev/dev-tools/backends/s3.html)
Configuration: mise.en.dev/configuration/...
Tasks: mise.en.dev/tasks/...
Environments: mise.en.dev/environments/...
CLI reference: mise.en.dev/cli/...
Do NOT use shortened paths like mise.en.dev/backends/... - always include the full path matching the docs/ directory structure.
I’m using the GitHub workflow skills to inspect the discussion, implement and verify the change, publish a review-ready PR, and then reply with the PR link. I’ll also include the required AI-generated note in the discussion reply.
Assistant
The discussion proposes a repeatable OCI copy primitive for arbitrary host files/directories, with each payload becoming its own reproducible layer after tool layers. I’m tracing the existing OCI config, CLI, and layer emitter now so the implementation fits the current design rather than adding a parallel path.
Assistant
The implementation now supports both --copy HOST:IMAGE and repeated [[oci.copy]] entries. Files land at the exact target, directory contents land beneath the target, each payload gets its own layer, and manifests annotate those layers with dev.mise.copy=<image path>. I’ve added unit and end-to-end coverage and am moving through formatting and targeted validation.
Assistant
Targeted validation is green: 13 OCI layer unit tests passed, and the OCI end-to-end suite passed all copy/config/annotation assertions along with its existing regression checks. I’m doing the repository’s required lint pass and final diff review next, then I’ll commit, push, open the ready-for-review PR, and post the discussion reply.
I’m using the GitHub review-feedback and CI-debugging workflows together: first I’ll collect unresolved review threads and failing check logs on PR #10952, then implement the combined fix, verify it locally, push it, and resolve or reply to the review feedback as appropriate.
Assistant
There are five unresolved actionable threads, all valid and compatible: reverse layered-copy emission so specific configs win, document that merge behavior, reject root and trailing-slash file destinations, normalize symlink entry size, and strengthen the e2e assertion. I’m also taking the non-blocking security suggestion to log each baked host path. The failing aggregate check is downstream of the lint job; I’m extracting that job’s actual error now.
Assistant
The root causes are now fixed locally. In particular, the CI failure was not a code/lint error—it was the generated man page being stale because the earlier change updated usage docs without running the full renderer. I’ve added the behavioral regression tests and am regenerating all artifacts before rerunning the OCI e2e and lint checks.
Assistant
The follow-up commit is pushed and all five review threads are resolved. It includes the missing generated man page that caused the previous lint failure. GitHub has started the new check run; I’m checking the fresh statuses and will distinguish pending checks from any new actionable failure.
Assistant
The regenerated docs check is already green, confirming the artifact fix. The main test workflow is still in its build fan-out, so lint has not started yet; no fresh failures are present. I’ll keep watching through the lint job rather than handing back while the exact previously failing path is unverified.
Assistant
CodeRabbit completed its second pass and added one new documentation consistency note: the generated flag text says “file or directory” even though symlinks are supported. I’m updating the source help text—not just the man page—and regenerating artifacts so the fix remains stable under CI rendering.
Fixed layered copy precedence so specific configs override parent configs.
Rejected root and trailing-slash file destinations.
Normalized symlink entry size.
Added copy security warnings and stronger tests.
Generated and committed the missing man page that caused CI lint failure.
Updated help text to mention symlink support.
Resolved all six review threads.
Validation passed: 32 OCI tests, OCI e2e suite, full render, and lint checks. Fresh CI has no failures; checks restarted after the final documentation commit and are pending.
I’m re-running the GitHub review-thread and CI workflows against the latest PR head, since new automated feedback or a different failure may have appeared after the last push. I’ll address every current actionable thread, inspect the actual failing logs, verify locally, push, and resolve the handled threads.
Assistant
There is one new actionable bug: relative [[oci.copy]].host paths are incorrectly resolved from the command’s CWD instead of the config file that declared them. The current head has no failed checks—its CI is still running—but I’m also inspecting the completed prior run to catch any failure that was superseded by the latest push.
Assistant
The fix now resolves config copy sources from each declaring config directory while leaving CLI-relative sources tied to the invocation CWD. A new unit test covers absolute/relative behavior, and the existing OCI e2e now deliberately runs from a child directory so it would fail under the old implementation.
Assistant
The new fix is pushed, its review thread is resolved, and there are currently zero failed checks or unresolved threads. Fresh CI and the automated reviewers restarted from commit b6824ac20; I’m waiting for the review bots to finish once more so a newly posted thread does not get missed.
Assistant
The local and e2e regressions are green and GitHub still reports no failures. Both review bots remain in progress after their first minute, so I’m giving them another pass before finalizing; the main CI fan-out is also running normally.
Relative [[oci.copy]].host paths now resolve from their declaring config directory.
CLI-relative copy paths still resolve from the invocation directory.
Added unit coverage and changed the OCI e2e test to build from a nested directory.
Resolved the new review thread.
CodeRabbit and Cursor Bugbot now pass with zero unresolved threads.
Validation passed: 33 OCI tests, OCI e2e suite, and full lint checks. GitHub currently reports zero failures; the remaining platform CI jobs are pending.