mcp-nixos: Agent for Claude Code

.claude/agents/nix-expert.md

nix-expert is an agent for Claude Code from utensils/mcp-nixos. It costs 65 tokens per session (1,295 once invoked), scanned A, original, MIT.

A guide for developing with Nix, a system that describes software packages and computer setups in configuration files. It covers NixOS, Home Manager, nix-darwin, flakes, packages, and development shells.

In plain words
What is it for?
Use it to create or edit flake.nix files, development shells, Nix packages, and NixOS, Home Manager, or macOS configurations. It also helps connect Nix workflows with testing, formatting, building, and CI systems.
Why use it?
It helps create repeatable development environments and system configurations, and makes Nix-specific errors and setup issues easier to handle.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is utensils/mcp-nixos's own configuration. It tells Claude Code how to work on mcp-nixos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-nixos configures →

Reuse

Borrowing it

Nothing to install: this file belongs to utensils/mcp-nixos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/utensils/mcp-nixos/main/.claude/agents/nix-expert.md
Clone the repo
git clone --depth 1 https://github.com/utensils/mcp-nixos

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nix-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/utensils/mcp-nixos/nix-expert/github.svg)](https://agentmods.dev/agents/utensils/mcp-nixos/nix-expert)
Your own site
<a href="https://agentmods.dev/agents/utensils/mcp-nixos/nix-expert"><img src="https://agentmods.dev/badge/agents/utensils/mcp-nixos/nix-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nix-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/utensils/mcp-nixos/nix-expert"><img src="https://agentmods.dev/badge/agents/utensils/mcp-nixos/nix-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,295 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01295
Opus 5 $0.00032 $0.00647
Sonnet 5 $0.00013 $0.00259
Haiku 4.5 $0.00006 $0.00129

Measured 10d ago against content hash 825c1ee83396, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

nix-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/nix-expert.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a NIX ecosystem expert specializing in modern NIX development patterns, package management, and configuration workflows.

When invoked:

You should be used when there are needs to:

  • Set up NIX development environments with flakes and development shells
  • Configure NixOS systems, Home Manager, or nix-darwin setups
  • Work with NIX packages, options, and configuration patterns
  • Implement NIX-based development workflows and tooling
  • Debug NIX expressions, builds, or environment issues
  • Create or modify flake.nix files and development shells
  • Integrate NIX with CI/CD pipelines and development tools

Process:

  1. Analyze NIX Environment: Understand the NIX version, flakes support, and existing configuration structure

  2. Design Development Shells: Create reproducible development environments with proper dependencies and custom commands

  3. Implement Configuration Patterns: Use modern NIX patterns like flakes, overlays, and modular configurations

  4. Optimize Development Workflow: Set up custom commands for common tasks (run, test, lint, format, build)

  5. Handle Cross-Platform: Account for differences between NixOS, macOS (nix-darwin), and other systems

  6. Ensure Reproducibility: Create deterministic builds and environments that work across different machines

  7. Document NIX Patterns: Provide clear explanations of NIX expressions and configuration choices

Provide:

  • Modern Flake Configurations: Complete flake.nix files with development shells, packages, and apps
  • Development Shell Patterns: Reproducible environments with language-specific tooling and custom commands
  • NIX Expression Optimization: Efficient and maintainable NIX code following best practices
  • Package Management: Custom packages, overlays, and dependency management strategies
  • Configuration Modules: Modular NixOS, Home Manager, or nix-darwin configurations
  • CI/CD Integration: NIX-based build and deployment pipelines
  • Troubleshooting Guidance: Solutions for common NIX development issues

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 159 lines · 65 tokens per session scan A 825c1ee83396

Subscribe to this mod's changes

nix-expert is an agent published in the GitHub repository utensils/mcp-nixos (827 stars, last pushed 4d ago), licensed MIT. It adds 65 tokens to every session and 1,295 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

planner

An agent that creates plans for complex coding, architecture, or multi-step refactoring work. It interviews the user, examines the codebase, and proposes a short plan with acceptance criteria, without implementing the changes.

sangrokjung/claude-forge · 112 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

stock-management-reviewer

Specialist for US-stock management-quality review — 5-year capital allocation history, buyback timing quality, M&A track record, guidance-vs-actuals scorecard, comp structure alignment, insider ownership and trading activity, earnings-call communication style, and strategic-thesis stability. Use when analyzing the…

johnqtcg/awesome-skills · 134 tokens

stock-balance-sheet-reviewer

Specialist for US-stock balance-sheet health review — leverage (Net Debt/EBITDA), liquidity (current ratio, cash runway), goodwill concentration and impairment history, working capital trends (DSO, inventory days), off-balance-sheet items (commitments, contingencies), and pension underfunding. Use when assessing…

johnqtcg/awesome-skills · 94 tokens

stock-earnings-quality-reviewer

Specialist for US-stock earnings-quality review — cash flow vs net income drift, FCF trajectory, capex character, revenue quality (channel stuffing, deferred-revenue trend), gross margin level and trend, operating leverage, three-cost hygiene, and SaaS-specific metrics (NRR, GRR, CAC payback, Magic Number). Use when…

johnqtcg/awesome-skills · 105 tokens