Nixos Coding Agents logo

Nixos Coding Agents

Community
olafkfreund
nixos-coding-agents

Choose, install and sandbox AI coding agents on NixOS with llm-agents.nix packages, agent-images containers and agent-box disposable workspaces.

Overview

Publisherolafkfreund
Repositorynix-skills
Skill namenixos-coding-agents
Stars
26
Forks
2
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by olafkfreund on GitHub. Read the source before you install it.

Installation

Install the Nixos Coding Agents AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/olafkfreund/nix-skills/tree/main/skills/nixos-coding-agents
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/olafkfreund/nix-skills.git /tmp/nix-skills
mkdir -p .claude/skills
cp -r /tmp/nix-skills/skills/nixos-coding-agents .claude/skills/nixos-coding-agents
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Nixos Coding Agents in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Nixos Coding Agents on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Nixos Coding Agents is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

NixOS coding agents

Three upstream projects form one pipeline. Use as many layers as the user needs:

LayerProjectGives
Packagesnumtide/llm-agents.nixAbout 200 agents (Claude Code, Codex, Gemini CLI, OpenCode and others) as flake packages and an overlay, with a binary cache and daily updates
Imagesnothingnesses/agent-imagesA Nix-built OCI image per agent, running as a non-root user in /workspace
Orchestration0xferrous/agent-boxab, which creates a disposable Git worktree or Jujutsu workspace and runs the agent in a container

This skill links to upstream rather than copying it; the examples were checked against upstream on 2026-09-23. Upstream changes daily, so confirm flags and parameters there before relying on them.

Establish the setup first

  • Find out how the system is built: a flake with nixosConfigurations, or channels. Check whether Home Manager is standalone or a NixOS module.
  • Check whether the system's nixpkgs follows nixpkgs-unstable or a stable release. llm-agents.nix is tested only against unstable.
  • The images and agent-box are Linux only. On nix-darwin and standalone Home Manager, offer only the packages layer.

Decision tree

  1. Trying an agent once? Run nix run github:numtide/llm-agents.nix#<agent>, or nix run github:numtide/llm-agents.nix for an interactive picker. Nothing is installed.
  2. Keeping it? Add llm-agents.nix as a flake input and install the chosen agents declaratively. They are then pinned in flake.lock and rolled back with the generation. See setup.
  3. Keeping it away from secrets? An agent on the host can read everything the user can, including ~/.ssh, cloud credentials and .env files. Run it from an agent-images container that mounts only the project. See setup.
  4. Several agents in parallel, or throwaway branches? Use agent-box worktree mode. Each session gets its own workspace with tracked files only. See setup.
  5. Team standard? Build one image with mkAgentImage and commit an example .agent-box.toml. See story 5.

Choosing an agent

The generated package list in the llm-agents.nix README shows each agent's licence and whether it is built from source or shipped as a binary. Compare:

  • Licence. llm-agents.nix marks unfree agents free = true for evaluation, so allowUnfree neither gates nor is needed for them. Read meta.license.shortName instead.
  • Source. A source build can be audited; a binary cannot.
  • Provider. Which model provider it talks to, which key it needs, and what that costs. Some agents support several providers or local models.
  • Cache. Using the flake's own packages hits the Numtide cache. The overlay builds against the user's nixpkgs and may compile locally.

Recommend a short list with the trade-offs, not a single winner.

Rules

  • Do not suggest inputs.nixpkgs.follows for llm-agents.nix on a stable release. It breaks eventually and loses cache hits.
  • Never suggest home-manager switch to someone who uses Home Manager as a NixOS module; they rebuild through nixos-rebuild.
  • Never add a secret or socket to env_passthrough or -e without saying what it gives the agent. Never forward SSH_AUTH_SOCK, cloud credentials or the Nix daemon socket by default.
  • Do not add substituters or trusted keys, rebuild, build images, load images or start containers without the user's authorization. Propose the exact change or command instead.
  • Say what the sandbox does not protect. Read security before advising on isolation.

Nix style

  • Never search /nix/store (for example find /nix/store/*foo-* -name libfoo.so) and never copy a literal store path. Find the providing package with nix-locate, and refer to it through Nix: ${pkgs.foo}/lib or lib.makeLibraryPath [ pkgs.foo ].
  • Do not quote attribute names that are valid identifiers ([A-Za-z_][A-Za-z0-9_'-]*, dashes included). Write pkgs.foo-bar and packages.x86_64-linux, not pkgs."foo-bar". Quote only other names (".config/foo", "2.0"), the keywords assert else if in inherit let or rec then with, and interpolations ("${name}"). Upstream examples in references sometimes quote needlessly; do not copy that style.

References

  • User stories: a guide of six stories, each with a configuration, a check and how to undo it.
  • Setup: llm-agents.nix, rootless Podman on NixOS, agent-images, agent-box, Portal, and nix-darwin or standalone Home Manager.
  • Security: what each layer protects and what it does not.

Report what you actually ran, and which advice you could not verify on the user's release.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Nixos Coding Agents AI skill do?

Choose, install and sandbox AI coding agents on NixOS with llm-agents.nix packages, agent-images containers and agent-box disposable workspaces.

Why use Nixos Coding Agents on TypingMind?

Because you install it once and use it with any model. Nixos Coding Agents is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Nixos Coding Agents in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/olafkfreund/nix-skills/tree/main/skills/nixos-coding-agents. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Nixos Coding Agents?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Nixos Coding Agents?

As many as you like. As long as a model supports skills, you can use Nixos Coding Agents with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Nixos Coding Agents AI skill free?

Yes. It is published on GitHub by olafkfreund under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇