Skip to content

Commit 30e72fa

Browse files
cpcloudclaude
andauthored
docs(agents): require running Python through Nix (#749)
## Summary - Add rule to Nix section of AGENTS.md requiring Python to be run via `nix run 'nixpkgs#python3' -- $@` when Nix is available, never bare `python`/`python3` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bd6f3dc commit 30e72fa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ details; do not duplicate that detail here.
202202
- **Use `writeShellApplication`** not `writeShellScriptBin` for Nix shell
203203
scripts. Use **`pkgs.python3.pkgs`** not `pkgs.python3Packages`.
204204
- **Nix package mappings**: `benchstat` is in `nixpkgs#goperf`.
205+
- **Run Python through Nix**: If Nix is available, always run Python via
206+
`nix run 'nixpkgs#python3' -- <script.py> [args...]`. Never use a bare
207+
`python` or `python3` command directly.
205208

206209
### Git and CI
207210

0 commit comments

Comments
 (0)