arXiv:2610.24712cs.SEOct 2026

Manuscript Offprint

arXiv:2610.24712

Vibenix: Agentic Software Packaging and Maintenance with Nix

Martim Monis, Martin Schwaighofer, Nuno Saavedra, Alexandra Mendes, Rene Mayrhofer, João F. Ferreira

MARTIM MONIS, INESC-ID and IST, University of Lisbon, Portugal

MARTIN SCHWAIGHOFER, Johannes Kepler University Linz, Austria

NUNO SAAVEDRA, INESC-ID and IST, University of Lisbon, Portugal

ALEXANDRA MENDES, INESC TEC, Faculdade de Engenharia, Universidade do Porto, Portugal

RENE MAYRHOFER, Johannes Kepler University Linz, Austria

JOÃO F. FERREIRA, INESC-ID and Faculdade de Engenharia, Universidade do Porto, Portugal

Implicit dependencies, uncontrolled network access, and other build-environment impurities create intransparent software supply chains. Identifying every dependency affecting a build is a difficult task. Functional package management addresses this through reproducible packaging, ensuring software relies exclusively on declared, hermetically isolated inputs. However, creating build recipes remains complex and time-consuming, posing a significant barrier to adoption for developers and maintainers.

We present Vibenix, an open-source AI-powered agent that bridges this gap by automatically generating Nix packaging expressions. Vibenix uses a large language model (LLM) to iteratively refine recipes through a rule-guided build-repair feedback loop. On 466 packaging tasks from our new NixBench dataset, Vibenix produced buildable packages in 95.3% of cases using Claude Haiku 4.5, compared with 5.6% for a state-of-the-art LLM-based single-shot packaging tool. Manual validation of 100 packages revealed that 47% of the buildable packages were initially functionally correct; a post-build refinement process based on the evaluator-optimizer pattern increased functional correctness by 35 percentage points. On our new NixBench-Repair dataset of package maintenance tasks, Vibenix achieved an 87.6% success rate.

These results demonstrate how unreliable LLMs can generate rigorously defined, complete, auditable dependency trees for real-world software, reducing maintainer burden while providing a trustworthy foundation for secure software distribution.

CCS Concepts: • Software and its engineering → Software configuration management and version control systems; Software maintenance tools; Software libraries and repositories.

Additional Key Words and Phrases: software packaging, Nix, agentic systems, hermetic builds, software supply chain security

1 Introduction

Modern software development is built upon a rapidly expanding software ecosystem. Rather than being developed in isolation, applications rely on complex graphs of third-party dependencies, sophisticated build toolchains, and system-level libraries, resulting in unprecedented levels of complexity. While this ecosystem accelerates development, it introduces the pervasive “it works on my machine” problem, where discrepancies between development, testing, and production environments lead to deployment failures and complex debugging scenarios. To mitigate these discrepancies, the industry has widely adopted software and hardware isolation techniques, such as containers and virtual machines.

However, runtime isolation alone is insufficient to guarantee the integrity of the software itself. The opacity of modern build systems has fueled a rise in software supply chain attacks, where adversaries compromise software at the source or inject malicious code during the build process [34]. A stark illustration of such an attack is the recent Axios supply chain attack [25], where a compromised maintainer account was used to publish backdoored versions of

Authors' Contact Information: Martim Monis, martimrosam@tecnico.ulisboa.pt, INESC-ID and IST, University of Lisbon, Lisbon, Portugal; Martin Schwaighofer, martin.schwaighofer@ins.jku.at, Johannes Kepler University Linz, Linz, Austria; Nuno Saavedra, nuno.saavedra@tecnico.ulisboa.pt, INESC-ID and IST, University of Lisbon, Lisbon, Portugal; Alexandra Mendes, alexandra@archimendes.com, INESC TEC, Faculdade de Engenharia, Universidade do Porto, Porto, Portugal; Rene Mayrhofer, rm@ins.jku.at, Johannes Kepler University Linz, Linz, Austria; João F. Ferreira, joao@joaoff.com, INESC-ID and Faculdade de Engenharia, Universidade do Porto, Porto, Portugal.

Monis et al.

the Axios software that included an additional malicious package dependency, which fetched a cross-platform remote access trojan to the host machine, all achieved via seemingly routine package updates. In standard build environments, dependency managers often automatically resolve loose version ranges and allow arbitrary code execution, such as postinstall scripts, with full network access to fetch secondary payloads. This creates non-deterministic behaviors that are difficult to audit, meaning that even isolated containers may end up deploying compromised artifacts.

To combat these threats, tools like Nix [13] and Bazel [19] have emerged as the gold standard for hermetic packaging, which consists in the practice of isolating package builds so they depend solely on explicitly declared inputs, independent of the host system's state. This ensures that software artifacts are bit-for-bit reproducible, providing a robust foundation for supply chain security while simultaneously eliminating a vast class of configuration errors. The design principles which support these properties have also been used to offer performance benefits, namely through incremental builds, build parallelization and caching [36, 40].

Despite these critical advantages, the adoption of hermetic build systems remains largely hindered by several obstacles, that often include a steep learning curve. With regards to Nix in particular, via the 2024 Nix Community Survey [32], among respondents who do not consider Nix part of their usual toolset, the most commonly cited barriers were “still learning”, “barrier to entry is too high”, “confusing documentation”, and “the Nix language is an obstacle”. For many developers, the manual effort required to migrate legacy projects to hermetic build systems and to maintain them on the long term, outweighs the perceived benefits [36].

To reduce the expertise and manual effort required for adopting hermetic build systems, we present Vibenix, an AI agent for automating the creation and maintenance of Nix packages. Rather than relying on one-shot generation, Vibenix combines iterative execution-guided repair with post-build evaluation and optimization to produce correct and maintainable package definitions. To support a rigorous evaluation of this approach, we also introduce two benchmark datasets for packaging and maintenance tasks. The main contributions of this paper are as follows:

(1) Vibenix: an AI agent that automatically produces hermetic Nix expressions for real-world projects, using two key techniques: a log-driven loop that incrementally fixes build failures, and a post-build evaluator-optimizer process that improves correctness and package quality. Additionally, Vibenix can also perform maintenance on pre-existing packages, ensuring long-term project support. We provide Vibenix as open source and all the data and code associated with our experiments.

(2) NixBench and NixBench-Repair: the first datasets for systematically evaluating automated Nix packaging and maintenance, comprising 472 and 760 curated, recent tasks, respectively, from the Nixpkgs repository. We additionally provide a detailed and reproducible methodology for constructing both datasets, enabling future extensions while mitigating data-leakage risks as time progresses and the training cutoffs of large language models continue to advance.

(3) Empirical Evaluation of Agentic Packaging and Repair: We evaluate Vibenix across both diverse datasets of open-source software packaging and maintenance tasks, and show that it can autonomously satisfy 95.3% of these packaging requests, and fulfill 87.6% of packaging repairs.

To guide this work, we pose the following research questions (RQs):

• RQ1: To what extent can general-purpose LLMs successfully package diverse software projects using an iterative build-repair feedback loop?

• RQ2: To what extent does an LLM-driven refinement step improve the runtime correctness of generated packages, and at what cost?

• RQ3: To what extent can an LLM-driven iterative build-repair approach reliably maintain real-world packages?

All the instructions on how to replicate the evaluation experiments performed, and their respective data, is made entirely publicly available at https://github.com/infragov-project/vibepkgs/tree/v2.0.0.

Vibenix is open-source and publicly available at https://github.com/mschwaig/vibenix.

This paper significantly extends our preliminary work published at the 2026 Workshop on LLM Assisted Security and Trust Exploration (LAST-X) [38] by introducing a new package-maintenance mode and associated dataset, improving the refinement phase, introducing a new automated validation metric, and substantially expanding and strengthening the empirical evaluation.