You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
devShells ship claude-code by default and shadow the machine's own claude wrapper #1967
devkit adds claude-code to every project's devShell (flake.nix around line 111, under the fast-mover overlay: "claude (claude-code) is an agent CLI that moves very fast; track unstable"). With direnv's use flake, the devShell is prepended to PATH, so inside any devkit-scaffolded repo claude resolves to devkit's unwrapped claude-code store path instead of the machine's own claude.
On managed machines the system claude is often a wrapper, not the bare binary. It selects a pinned release channel and loads per-profile credentials before it execs Claude Code. The devShell copy bypasses all of that. As a result:
The version depends on each repo's devkit lock, not on the machine's chosen channel.
Per-profile credential loading is skipped. A profile that relies on a provisioned token, with no interactive login, opens the login wizard.
The same agent behaves differently depending on whether direnv loaded in its shell.
Proposal
Treat the agent CLI as a machine-level tool, not a project build input:
Do not include claude-code in project devShells by default.
Offer it as an explicit opt-in (e.g. a withAgentCli = true flag) for machines that have no claude of their own, and document that opting in shadows any system wrapper.
Note it in the upgrade or changelog notes, because repos that relied on the devShell copy need a system install or the opt-in.
Acceptance
A freshly scaffolded project's devShell has no claude on PATH unless it opts in.
With the opt-in, claude is present as today.
A test or flake check asserts the default devShell's PATH contains no claude-code.
Repro
In any devkit project with use flake loaded: command -v claude prints /nix/store/…-claude-code-<ver>/bin/claude. Outside the project it prints the machine's own claude.
Activity
test(nix): guard Rust shell agent CLI policy
docs(nix): describe agent CLI options at shell builders
docs(nix): clarify devShell output migration wording
docs(nix): distinguish devkit and consumer shell opt-ins
test(nix): guard agent CLI shell policy
fix(nix): make project agent CLI an explicit opt-in
test(nix): guard Rust shell agent CLI policy
docs(nix): describe agent CLI options at shell builders
docs(nix): clarify devShell output migration wording
docs(nix): distinguish devkit and consumer shell opt-ins
fix(nix): make project agent CLI an explicit opt-in (#1968)
test(nix): guard agent CLI shell policy
fix(nix): make project agent CLI an explicit opt-in
docs(nix): describe agent CLI options at shell builders
docs(nix): clarify devShell output migration wording
docs(nix): distinguish devkit and consumer shell opt-ins
fix(nix): devShells stop shipping the agent CLI by default (1.18.1) (#…
chore: release 1.18.1 (#1969)
chore: sync dev with main (conflicts) (#1991)
fix(nix): make the machine modules' agent CLI opt-in (#2078)