diff --git a/options.xhtml b/options.xhtml index e7b8a6ffc..d3bf4e94d 100644 --- a/options.xhtml +++ b/options.xhtml @@ -57639,6 +57639,94 @@ null or package
Default:
pkgs.opencode
Declared by:
+
+
+<home-manager/modules/programs/opencode.nix>
+
+ |
programs.opencode.agents
+
+
+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 ~/.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 by:
+
+
+<home-manager/modules/programs/opencode.nix>
+
+ |
programs.opencode.commands
+
+
+Custom commands for opencode. +The attribute name becomes the command filename, and the value is either:
Inline content as a string
A path to a file containing the command content +Commands are stored in ~/.config/opencode/command/ directory.
Type: +attribute set of (strings concatenated with ā\nā or absolute path)
+ +Default:
+{ }
Example:
{
+ changelog = ''
+ # Update Changelog Command
+
+ Update CHANGELOG.md with a new entry for the specified version.
+ Usage: /changelog [version] [change-type] [message]
+ '';
+ fix-issue = ./commands/fix-issue.md;
+ commit = ''
+ # Commit Command
+
+ Create a git commit with proper message formatting.
+ Usage: /commit [message]
+ '';
+}
+
+
+
Declared by: