Geoffrey Huntley: Patch the Planet With Nix and Agents
Geoffrey Huntley connects Nix-based environments with agent-assisted dependency patching, a Git build without force push, infrastructure tests, and property-based testing. Explains how shared package definitions can reduce environment drift and propagate patches through dependencies. Practitioner demonstrations and security-response anecdotes, not proof of sandbox safety or a replacement for review.
Geoffrey Huntley argues that faster security incident response starts with reproducible environments and dependencies you can patch yourself. He uses Nix to define packages across developer machines, CI, agent sandboxes, and production images, then connects that shared configuration to agent-assisted patching and executable checks.
This summary is based on the English auto-generated captions. Huntley identifies himself as field CTO at Antithesis. His incident-response results are personal reports, and his recommendations for Antithesis testing tools are first-party advocacy rather than comparative evidence.
Key points
- Use one environment definition to reduce drift. Huntley uses
devenv.nixto declare packages and services that feed developer environments, CI, sandboxes, and production images. His argument is that adding agent sandboxes as another separately maintained environment creates another place for dependencies to diverge. Nix manages dependencies beyond a single programming language, including operating-system packages. He presents agents as a way to make these powerful but difficult tools easier to configure. 07:26–11:56(opens in a new tab) - Remove unwanted capabilities from the tools agents run. His example is a custom Git build without force-push support. A Nix overlay, a customization of package definitions, applies patch files to Git and supplies that build in the environments using the definition. Huntley says he asked Claude to create the overlay and patches. The example illustrates a concrete tool restriction; it does not establish a complete sandbox boundary or show that an agent cannot find another way to perform the operation. 11:56–15:18(opens in a new tab)
- Patch a shared dependency and rebuild its consumers. Using OpenSSL as an example, Huntley explains why changing one package is insufficient when Git, Nginx, and Postgres also depend on it. In his shared Nix setup, changing the dependency definition causes the affected consumers to rebuild with the patched version. CI can publish built artifacts to a cache for developer environments and sandboxes to consume, rather than making each machine repeat the builds. This is his alternative to waiting for upstream merges or maintaining a separate build-and-distribution process for every fork. 14:27–17:11(opens in a new tab), 17:11–18:50(opens in a new tab)
- Make temporary patches removable. Huntley reports asking Claude whether his fleet was affected by recent vulnerabilities, then having it update pins and apply patches through the shared configuration. He also describes adding a reminder to
AGENTS.mdto revisit temporary patches after seven days. A later agent removed them and advanced the pins once upstream fixes were available. This is an account of agent-driven housekeeping, not a demonstration of guaranteed scheduling or unattended patch safety. 17:11–19:45(opens in a new tab) - Test the infrastructure as well as application code. Huntley describes NixOS tests that create multiple machines, such as web servers and a load balancer, and assert network behavior. Reusing infrastructure definitions lets his agent loop test an integrated stack and create preview environments. He qualifies the production-parity claim for databases: do not run agents as root on production hosts or connect them to production databases. For reproduction, he recommends a database copy and tightly restricted outbound networking. His use of root on disposable development machines depends on environment design that he does not explain fully in this talk. 20:41–24:57(opens in a new tab)
- Turn engineering requirements into checks that block progress. Huntley recommends compilation checks, hooks, and static or semantic analysis to stop an agent loop from accepting invalid work. One example is a rule forbidding a database-layer module from depending on the API layer. He argues that such checks can reduce the need for code review; the talk does not establish that they cover every issue a reviewer should catch. 24:04–26:33(opens in a new tab)
- Use property-based testing to explore cases you did not enumerate. Instead of testing only chosen examples, define a property and generate inputs or actions that might violate it. Huntley contrasts ordinary string-reversal tests with generated Unicode and emoji cases, then gives a business invariant: a customer must be refunded only once. He describes Bombadil exploring browser actions and screen sizes against a property such as continued access to logout, with a reproducible counterexample when it fails. His advice to replace Playwright is an opinion, not a demonstrated comparison of coverage. 25:44–29:15(opens in a new tab)
Limits of the argument
Huntley's proposal to reduce library dependencies is scoped by his own examples: generating a small, well-specified command-line parser is different from writing cryptography without expertise. He retains a trusted foundation such as the kernel and low-level services, and presents vendoring or patching as alternatives when replacing a dependency is unsuitable. His prediction that defenders will need more inference capacity than attackers is a forecast, not a measured requirement. 02:27–07:26(opens in a new tab)
Full video: https://www.youtube.com/watch?v=TgwcuZViDo8(opens in a new tab)