{"agent":"claude","input":"Add a Nix flake to this Rust CLI. Read shell.nix, .envrc, the justfile, every GitHub Actions workflow, Cargo.toml, Cargo.lock, build.rs and any man page or completion directories first. Write flake.nix with nixpkgs and any overlay the shell already uses as inputs, pinned in flake.lock to the same revisions the current shell.nix fetches. Carry the dev shell over tool for tool, including environment variables, as devShells.default. Add packages.default with rustPlatform.buildRustPackage using the committed Cargo.lock, installing the man pages and shell completions the repository ships, and a check that runs the tests. Replace shell.nix with a flake-compat shim so nix-shell keeps working, switch .envrc to use flake, remove any channel pin the CI workflow no longer needs, and add the new Nix files to any formatting or lint command that covers Nix files. Install Nix in your sandbox, run nix flake show, nix flake metadata, the test suite inside nix develop, and nix build, and confirm the built binary, man pages and completions exist. Open a pull request with those outputs and a note on how to update flake.lock.","resources":[{"url":"https://github.com/your-org/your-app"}]}