rigup.nix:用 Nix 把智能体技能、工具与配置打成可复现的 rig
开源项目 rigup.nix 以 Nix 模块封装智能体的说明、技能、工具与配置:riglet 可懒加载或急加载,组合成生成 RIG.md 的 rig,并提供 show、inspect、build、shell、run 等 CLI,对接 Claude Code、Cursor 等 harness。
开源仓库 YPares/rigup.nix(MIT)把「智能体知识」和「执行这些知识所需的工具」用 Nix 打成可复现包。作者称 AI 智能体配置常在知识与工具漂移时变脆;rigup 用模块化 riglet 组装出面向项目的 rig。
一个 riglet 是可执行知识:元数据说明何时有用、一组操作与说明(Skill)、所需 Nix 包,以及工具配置。多个 riglet 合成 rig 后,默认懒加载文档(启动只给清单,需要再读),也可急加载全文或只暴露浅层目录。与「固定 SKILL.md 文件」不同,文档可由 Nix 派生与模板生成。入口是生成的 RIG.md 清单,智能体由此发现工具与流程。CLI 支持 show、inspect、build、shell、run,并可包装 Claude Code、OpenCode、Pi、Cursor 等 harness 入口;也兼容把已有 Claude Skills 或插件市场内容收成 riglet。
安装示例为通过 nix profile 添加 github:YPares/rigup.nix#rigup。对软件研发智能化读者,这是「可复现开发者环境」思路延伸到智能体:同一 flake 锁定技能版本与 CLI 依赖,减少「我机器上的 AGENT.md 和你不一样」。采用前需团队已有 Nix 习惯;把含密钥的配置留在密钥管理而非写入可分享 flake。
若团队已在 flake 中管理开发工具链,可把常用内部 runbook 收成私有 riglet 输入,与公开 Skills 组合,形成「项目专用 harness」而不复制散落的 markdown。
rigup.nix: Nix packaging for AI agent knowledge and tools
AI agent setups get brittle when knowledge and tools drift apart.
rigup.nix is a Nix-based system for packaging AI agent knowledge, instructions, skills, tools, and configuration into modular rigs.
It helps you give an agent project-specific context and its required tooling together by combining reusable riglets into a generated RIG.md manifest and environment.
Key features:
• Riglets as building blocks – bundle metadata, instructions, tools, and configuration in reusable Nix modules • Progressive disclosure controls – expose documentation lazily, eagerly, or as a shallow table of contents • Configurable documentation – generate riglet docs from Nix derivations, including templated content • CLI workflow – inspect, build, enter, and run rigs with show, inspect, build, shell, and run commands • Harness entrypoints – wrap supported coding-agent harnesses with the rig’s configuration
It’s open-source (MIT license).
Link in the reply 👇