1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 17:11:03 +01:00
This commit is contained in:
khaneliman 2025-09-17 12:24:36 +00:00
parent ca36eee75d
commit 1e0b7a2760

View file

@ -57639,6 +57639,94 @@ null or package</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">pkgs.opencode</code></p>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/opencode.nix" target="_top">
&lt;home-manager/modules/programs/opencode.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.opencode.agents"></a><a class="term" href="options.xhtml#opt-programs.opencode.agents"><code class="option">programs.opencode.agents</code>
</a>
</span>
</dt>
<dd>
<p>Custom agents for opencode.
The attribute name becomes the agent filename, and the value is either:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>Inline content as a string</p></li><li class="listitem"><p>A path to a file containing the agent content
Agents are stored in ~/.config/opencode/agent/ directory.</p></li></ul></div>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (strings concatenated with “\n” or absolute path)</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
code-reviewer = &#x27;&#x27;
# 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
&#x27;&#x27;;
documentation = ./agents/documentation.md;
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>
<code class="filename"><a class="filename" href="https://github.com/nix-community/home-manager/blob/master/modules/programs/opencode.nix" target="_top">
&lt;home-manager/modules/programs/opencode.nix&gt;
</a></code>
</td></tr>
</table>
</dd>
<dt>
<span class="term">
<a id="opt-programs.opencode.commands"></a><a class="term" href="options.xhtml#opt-programs.opencode.commands"><code class="option">programs.opencode.commands</code>
</a>
</span>
</dt>
<dd>
<p>Custom commands for opencode.
The attribute name becomes the command filename, and the value is either:</p><div class="itemizedlist"><ul class="itemizedlist " style="list-style-type: disc;"><li class="listitem"><p>Inline content as a string</p></li><li class="listitem"><p>A path to a file containing the command content
Commands are stored in ~/.config/opencode/command/ directory.</p></li></ul></div>
<p><span class="emphasis"><em>Type:</em></span>
attribute set of (strings concatenated with “\n” or absolute path)</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">{ }</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">{
changelog = &#x27;&#x27;
# Update Changelog Command
Update CHANGELOG.md with a new entry for the specified version.
Usage: /changelog [version] [change-type] [message]
&#x27;&#x27;;
fix-issue = ./commands/fix-issue.md;
commit = &#x27;&#x27;
# Commit Command
Create a git commit with proper message formatting.
Usage: /commit [message]
&#x27;&#x27;;
}
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist">
<tr><td>