Repository navigation
fix(nix): devShells stop shipping the agent CLI by default (1.18.1) - #1972
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/1967-hotfix-agent-cli
branch
from
October 29, 2026 23:57
f264985 to
00f791f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Carry #1967 from PR #1968 onto the main-based 1.18.1 hotfix. Default project devShells leave
claudeto the machine;withAgentCli = trueand devkit's#with-agent-clioutput opt in using the same pin. Home/NixOS modules and the container image retain the CLI.Type of Change
fix-- Bug fixdocs-- Documentation onlytest-- Adding or updating testsModifiers
!)Changes Made
Cherry-picked in source order with
-xprovenance retained in each commit body (before the finalRefsline):Dropped from the carry:
templates/rust, absent from the release base.assets/flake.d/rust.flake.nixcomment hunk from 831688b: file absent from the release base.nix/mk-rust-project.nixoption/pass-through and comment hunks: that file exists on the release base and the changes applied cleanly.Changelog Entry
Under
## [1.18.1] - TBDin both changelogs, per the hotfix lane:Changed
claudemust install it machine-wide (or via the home module), or setwithAgentCli = true; consumers of devkit's owndevShellsoutput can select#with-agent-cli.claudewrapper. Home modules and the container image retain the CLI.Testing
nix eval --impure --json --expr 'import ./tests/agent-cli-policy.nix {}'— exit 0 (agentCliPolicy: true). Asserts no CLI in default devShell,lib.mkProjectShellor scaffolded workspace; opt-in includes the same pinned package; home and NixOS modules retain it.nix eval --raw .#checks.x86_64-linux.agentCliPolicy.drvPath— exit 0, check evaluates without building its closure.nix develop; broader suites run in PR CI.Checklist
Additional Notes
Targets
release/1.18.1. No release workflow dispatch or merge is part of this PR.Rebased onto
release/1.18.1at 113d379 after security-register reconciliation PR #1973. Both existing release entries (uv under Changed and the exception reconciliation under Security) are preserved alongside #1967. No implementation changes were made in this rebase.Post-rebase verification: policy evaluation and
agentCliPolicy.drvPathevaluation both exit 0. An additional evaluation asserts that the opt-in shell containsclaude-codedirectly from the locked nixpkgs-unstable input: exit 0, version 2.1.309, unstable revision674a2028661e550a97400c1cc992b9cca9a668a1. All 18 checks are green on rebased head00f791f6bda5d2a73a19615f12900f1114e07823;gh pr checks 1972 --watchexited 0.Refs: #1967