Skip to content

fix(nix): make the machine modules' agent CLI opt-in - #2078

Merged
gerchowl merged 7 commits into
devfrom
bugfix/2076-agent-cli-module-optin
Nov 17, 2026
Merged

gerchowl merged 7 commits into
devfrom
bugfix/2076-agent-cli-module-optin

Conversation

@gerchowl

@gerchowl gerchowl commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Devkit no longer installs or pins claude-code through the machine-level modules unless the machine opts in. This is the follow-on to #1967, which made the same change for project dev shells. A machine's own claude (a native install, or a wrapper that picks a release channel and loads per-profile credentials) is no longer shadowed, and its native updater is no longer forced off.

Type of Change

  • fix -- Bug fix

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • nix/home/packages.nix: new vigos.packages.agentCli.enable (default off). home.packages gets devTools always and agentTools only on opt-in. The opt-in also sets DISABLE_AUTOUPDATER=1 (mkDefault), because Nix then owns updates.
  • nix/home/claude.nix: no longer sets DISABLE_AUTOUPDATER unconditionally.
  • flake.nix nixosModules.default: new programs.vigos-devtools.agentCli.enable (default off); the opt-in also sets DISABLE_AUTOUPDATER=1.
  • The container image is unchanged and keeps its CLI.
  • tests/agent-cli-policy.nix: covers both directions for home (new and legacy option names) and NixOS, asserts devTools are still present, and checks the updater variable on both surfaces.
  • tests/test_flake_checks.py: the full ci profile expects no DISABLE_AUTOUPDATER.
  • Docs: NIX.md (Agent CLI opt-in), an ADR amendment note, comments in templates/personal.

Changelog Entry

Changed

  • Home and NixOS modules leave the agent CLI to the machine (#2076)
    • Upgrade note: machines that got claude from vigos.packages.enable or programs.vigos-devtools.enable must install it themselves or opt back in with vigos.packages.agentCli.enable = true (home-manager) or programs.vigos-devtools.agentCli.enable = true (NixOS).
    • Without the opt-in, a machine's own claude (native install, or a wrapper with its own release channel and credentials) is never shadowed by devkit's pin.
    • DISABLE_AUTOUPDATER=1 is set only with an opt-in, where Nix owns updates; vigos.claude alone no longer disables the native updater.
    • The container image keeps its CLI.

Testing

  • nix eval --impure --json --expr 'import ./tests/agent-cli-policy.nix {}': failed before the fix (RED commit 1c0e5fe), {"agentCliPolicy":true} after.
  • pytest tests/test_flake_checks.py -k "claude or wave or agent or home or module": 8 passed.

Refs: #2076

@gerchowl
gerchowl enabled auto-merge November 17, 2026 16:22
gerchowl added a commit that referenced this pull request Nov 17, 2026
…2080)

## Description

GHSA-wvrr-2x4r-394v ([email protected] npm false positive) expired on
2026-11-11. Since then `check-expirations` fails the **Dependency
Review** job on every PR, including #2078 and the upcoming 1.19.1 train.

Following the register's "re-verify, don't bump" rule
(docs/CONTAINER_SECURITY.md), I deleted the entry rather than renewing
it: bats-file now comes from nixpkgs via `nix/bats.nix`, and no npm
manifest in the repo (`package.json`, `package-lock.json`, the node
fixture) references it, so dependency-review can no longer report it.

## Type of Change

- [x] `fix` -- Bug fix

## Changes Made

- `.github/dependency-review-allow.txt`: entry removed and a removal
note left in its place; the stale header sentence about its date is
gone. The register is now empty, and `check-expirations` validates 0
entries.
- `SECURITY.md`: no standing dependency-review exceptions.
- CHANGELOG: an entry under Security.

## Changelog Entry

### Security
- **Drop the dead bats-file dependency-review exception**
([#2043](#2043))
- GHSA-wvrr-2x4r-394v expired on 2026-11-11 and failed every PR's
Dependency Review; bats-file now comes from nixpkgs and no npm manifest
references it, so the entry is removed rather than renewed

## Testing

- `uv run check-expirations .github/dependency-review-allow.txt`:
Validated 0 exception(s), exit 0.
- `pytest tests/test_workflow_expiry_notice.py`: passed.

Refs: #2043
@gerchowl
gerchowl merged commit 16045bc into dev Nov 17, 2026
18 checks passed
@gerchowl
gerchowl deleted the bugfix/2076-agent-cli-module-optin branch November 17, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant