I use devenv (yet another nix flake dev environments) and opencode.
It is quite a synergy : my nix usage profits from the agent and the agent profits from being able to install just anything.
I even vibecoded a plugin for personal use that runs all bash tool calls through devenv and uses the supplied nix lsp package:
https://github.com/riedel/opencode-devenv
I use devenv (yet another nix flake dev environments) and opencode.
It is quite a synergy : my nix usage profits from the agent and the agent profits from being able to install just anything.
I even vibecoded a plugin for personal use that runs all bash tool calls through devenv and uses the supplied nix lsp package:
https://github.com/riedel/opencode-devenv