programs.opencode.agents

Home-Manager option

Custom agents for opencode. The attribute name becomes the agent filename, and the value is either: Inline content as a string A path to a file containing the agent content Agents are stored in $XDG_CONFIG_HOME/.config/opencode/agent/ directory.

type: attribute set of (strings concatenated with “\n” or absolute path)
Default
{ }
Example
{ code-reviewer = '' # Code Reviewer Agent You are a senior software engineer specializing in code reviews. Focus on code quality, security, and maintainability. ## Guidelines - Review for potential bugs and edge cases - Check for security vulnerabilities - Ensure code follows best practices - Suggest improvements for readability and performance ''; documentation = ./agents/documentation.md; }
declared in: <home-manager/modules/programs/opencode.nix>source unavailable