logoalt Hacker News

sshinetoday at 9:26 AM5 repliesview on HN

The number one power move I have is Nix integration. The availability of tooling, secrets, environment and the ability for the agent to modify its own environment is... well, I don't know how people live without it. I guess you guys still install things using commands and hope everything you need is present on the next machine? Developer machine, CI environment, deployment environment: They're all derived from a single source, and compiling and running always works on every machine.

In Claude I use /branch and /rename a lot (context checkpoints, fork, go back)

I use sandboxing almost exclusively: https://github.com/nix-tools/bubblebox -- it's a generalisation of Numtide's claudebox with a few fixes and some feature additions (more coming). This is best compared to always running your Claude in Docker containers, except there's no Docker runtime. Works fine in WSL and nix-darwin, too.


Replies

uberdupertoday at 3:45 PM

I do the same. Codex manages a per project flake.nix and uses `nix develop` for all testing. nix-direnv for my own convenience. I generally have it generate dockerfiles or other deployment assets at some point.

Codex is way better at nix than I am.

toastaltoday at 4:45 PM

Yikes. That Nix code is a mess without meaningful organization & only usable via experimental flakes.

aqme28today at 10:47 AM

I just gave mine its own VPS. Maybe more expensive than Nix but it was very easy

show 1 reply
professor_vtoday at 10:44 AM

I just use docker and I don't feel I'm missing anything?

show 1 reply
oulipo2today at 10:12 AM

For those who don't want the complexity of Nix, Mise is a good compromise

show 2 replies