Fixing Works on My Machine at the Toolchain Layer Without Committing to the Nix Ecosystem
Committing a versioned environment manifest ends drift, and Devbox makes it easy.

Devbox provides Nix-powered developer environments without writing Nix expressions, making it a practical option for teams that want strong reproducibility without full Nix adoption. The broader fix for “works on my machine” is to commit a declarative environment manifest. Lighter version managers, full-stack environment tools, and container-based workflows differ in how much they can reproduce, but they follow the same rule. Define the toolchain as versioned code rather than leave it to accumulate on individual machines.
Why "works on my machine" is a structural problem, not a discipline problem
Two developers report the same Java version, but one uses an Azul JDK build and the other uses Temurin. The team debugs the code for days before recognizing that the environment is the variable. The version number was not a complete specification. A setup guide can appear accurate while leaving enough room for machines to behave differently, because the name of a runtime does not define the whole toolchain beneath it.
ActiveState identifies unpinned transitive dependencies and unmanaged system libraries as primary causes of environment drift. These differences often arrive without an obvious version mismatch. A sub-dependency can update silently when the full dependency graph is not locked, and an application package manager may leave the underlying operating system unmanaged. When a developer machine and a build server have different C libraries, compilation can fail in ways that look like bugs in the code. Greater care with application code cannot remove that ambiguity.
Out-of-band changes introduce another source of divergence. A production environment variable added during an incident and never committed to version control leaves the running system ahead of its recorded definition. A reproducible build environment aims to get the same binary output from the same source on different machines and at different times, with the artifact’s cryptographic hash as proof. That requires control over inputs.
What it costs when onboarding exposes the drift that already exists
A new developer who follows the README starts without the undocumented setup that colleagues’ machines already have. Onboarding exposes the accumulated gap all at once. When time-to-first-commit stretches into weeks, environment setup and access provisioning often delay learning the codebase. Manual setup also generates support tickets during a new hire’s first two weeks, drawing existing developers into reconstructing a working environment and taking time away from product work.
The strongest objection is that a good README already works. But a README describes an intended state without creating it, and it cannot prevent sub-dependency changes between its publication and the next installation. ActiveState describes sharing a project configuration backed by a functional package manager as a way to recreate the exact environment graph, reducing onboarding from days to minutes. Automated, self-service setup targets near-zero setup-related support tickets. The same investment also addresses CI failures caused by system-library differences, where the discrepancy becomes visible later in CI and costs more to investigate.
The toolchain-layer approach: committing environments as versioned manifests
An environment manifest makes the repository the authority for the toolchain. A runtime or compiler upgrade moves from a message in team chat to a pull request. Review can examine the change, version history records it, and a revert restores the previous definition. Local developer shells and CI then use the same manifest instead of each following their own reading of the setup instructions.
A top-level package list alone is not enough. A fully defined environment locks runtime versions, direct and transitive dependencies, compiler versions, system-level libraries, and environment variables. If a build still depends on an unmanaged host library, that library remains an uncontrolled input even when every application dependency has a pinned version. The manifest must cover the inputs responsible for the behavior the team needs to reproduce.
Functional package managers give this model a precise foundation. They isolate packages in directories identified by cryptographic hashes of their inputs, treating dependencies like pure functions. Recreating the environment then depends on the declared inputs instead of what was installed on a machine in the past. It also changes how environments move through development and delivery. Teams can use atomic manifest edits, pinned references, and rollbacks in place of a build-scan-tag-push cycle to change environments, with artifacts generated from the definition.
What are the options for Nix reproducibility without the learning curve?
The available tools form a spectrum. The useful criteria are the depth of dependency control, supported operating systems, CI integration, workflow fit, and adoption cost. A small team that wants the same runtime versions has different needs from a monorepo with strict supply chain rules. Greater isolation is valuable when it removes a relevant risk, but it also exposes assumptions that a less constrained environment permits. The right choice provides sufficient reproducibility for the team’s risk profile and capacity to adopt it.
mise is at the lightweight end of that spectrum. Written in Rust, it combines multi-language version management, environment variables, and task running on macOS, Linux, and Windows. It reads .tool-versions files and supports asdf plugins, while most registry tools use built-in backends without a plugin. CI installs mise and runs mise install against mise.toml, placing declared tools in predictable locations that simplify caching. Its limitation is weaker hermetic reproducibility than Nix-based options, particularly when lockfile discipline allows a newer minor dependency version to enter. It suits solo developers and small teams that want their tools to work the same way across platforms without having to invest in infrastructure.
Devbox adds Nix-backed reproducibility behind a simpler interface. It defines project-specific environments with locked dependency versions for developers on macOS, Linux, or Windows with WSL2. Teams get most of Nix’s reproducibility without writing Nix expressions. This is the clearest fit for a mid-sized team that wants stronger dependency isolation across a mixed-OS developer base but does not want full Nix adoption. It separates the benefit of the package-management model from the need to author its underlying configuration language.
devenv extends the declarative model across the development stack. Its devenv.nix file defines packages, languages, services, tasks, secrets, and tooling, while devenv up brings up the stack. It runs on Linux, macOS, and WSL, with evaluation caching providing warm shells in milliseconds after the first build. Tasks and git hooks cover linters, formatters, and code generation, while declarative secrets can come from Keychain, 1Password, LastPass, or dotenv. The same definition can also build OCI containers without a separate Dockerfile. This means working with Nix syntax, with guidance through the full-stack model.
Dev Containers offer a different route through container-based workflows. They define OS packages, runtimes, IDE extensions, and shell configuration as version-controlled code, making them a natural fit for VS Code-centric teams already comfortable with containers. GitHub Codespaces can run those definitions in a cloud IDE and use prebuilt container snapshots to reduce setup time. Isolation has a workflow cost, however. Developers work apart from their local tools and dotfiles, so this approach suits teams that accept that boundary more than teams that just want a consistent local toolchain.
Full Nix flakes provide the deepest reproducibility at the highest adoption cost. Dependencies are pinned down to checksums, and CI can run nix develop -c mvn verify against the same flake used locally. Hidden dependencies become visible failures. Global Git configuration, JVM temporary directories, and keychain credentials can all represent assumptions that a hermetic environment removes. Full flakes therefore fit teams with Nix experience, strict supply chain requirements, or large monorepos where build reproducibility is a compliance requirement.
Where the toolchain layer meets supply chain security
Instead of permitting unrestricted package pulls and attaching a scanner afterward, teams can curate dependencies at their origin. The manifest becomes both a setup convenience and a provenance record. ActiveState links this need to the growth of AI-driven development, as open source enters codebases faster than reactive scanning can keep up. Generating code becomes less restrictive than verifying and securing the dependencies it introduces.
CISA names SPDX and CycloneDX as widely used SBOM formats, but its guidance is non-binding and adds no new rules that software supplied to the US federal government must meet. China’s GB/T 47020 (2026) standard formalizes SBOM requirements. These expectations make a dependable inventory valuable beyond onboarding. A manifest with verified package provenance gives that inventory a firmer base than a file that only lists package names.
The toolchain is also where provenance checks can enter installation. mise’s aqua and github backends support checks such as Cosign, SLSA, Minisign, or GitHub artifact attestations, depending on the backend and what the upstream project publishes. Once an environment’s input-derived hash is attached to deployments, teams can identify environments affected by a disclosed CVE by hash rather than reconstructing their contents from logs or rescanning images.
AI coding agents raise the stakes for environment definition
An AI agent can encounter the same JDK ambiguity as a developer if it uses whatever tools happen to be available on the host. A shared Java version number still does not settle the Azul-versus-Temurin distinction. In auto mode, the boundary failure can extend beyond tools to files, with an agent reading and editing outside the project directory because its responsibilities were never explicitly bounded. This need not involve malicious behavior. Repeatedly clicking “allow” wears down attention and leaves the need for a durable security boundary unresolved.
The lesson for platform teams is to declare permitted packages and writable directories with the developer environment. An allowlist recognizes only explicit permissions, rather than relying on someone to keep extending a denylist. A locked toolchain also makes the agent use the same Node version, Python version, or JDK build as the developer. Determinism and containment serve different purposes, however. The package definition sets which tools are available, while the declared access boundaries set where the agent may act.
The July 2026 MCP specification moved to a stateless protocol core for better reliability and scalability, an architectural change platform teams need to account for when exposing agent capabilities. The appropriate interface is not raw infrastructure access. Agents should use the same golden paths as humans through APIs, CLIs, and MCP servers instead of UIs, with the same environment rigor and access limits.
What platform engineers should build so individual teams do not have to solve this repeatedly
A manifest solves the definition problem for one team. Platform engineering brings this to the whole organization with reusable base environments and golden paths that teams build on. Without reusable patterns, services accumulate different security settings, readiness probes, resource limits, and monitoring configurations. That is the same structural drift at a broader level. The platform’s role is to encode the shared baseline once without forcing every application team to rebuild it.
An internal developer platform can make that baseline available through a service catalog. A developer selects a template instead of cloning a repository and debugging a 50-page setup guide. The template encodes the golden path. Approved base environments with overrides that teams can extend let platform teams keep security and compliance baselines in place while application teams add project-specific tools. Rigid mandates would undermine that purpose by making the platform itself a bottleneck.
Platform teams in 2026 are designing templates for humans and agents around shared environment definitions, MCP-exposed capabilities, and access boundaries. Named, versioned environments let a new colleague or agent instance pull the complete stack, eliminating the need to reconstruct it from documentation. Recovery needs an equally clear contract. When an update breaks the environment, rollback should be a one-command, atomic return to the previous generation.
The organizing principle is to promote the declarative environment manifest across the software development lifecycle. Containers can remain outputs of that definition, but the reviewed and versioned inputs should govern what developers, CI, and agents receive.


