programs.claude-code.agents
Home-Manager option
Custom agents for Claude Code. The attribute name becomes the agent filename, and the value is either: Inline content as a string with frontmatter A path to a file containing the agent content with frontmatter Agents are stored in .claude/agents/ directory.
type: attribute set of (strings concatenated with “\n” or absolute path)Default
{ }Example
declared in: <home-manager/modules/programs/claude-code.nix>source unavailable{ code-reviewer = '' --- name: code-reviewer description: Specialized code review agent tools: Read, Edit, Grep --- You are a senior software engineer specializing in code reviews. Focus on code quality, security, and maintainability. ''; documentation = ./agents/documentation.md; }