1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
This commit is contained in:
khaneliman 2025-07-24 16:06:39 +00:00
parent 6da5d437e3
commit 9ccef08496

View file

@ -54715,6 +54715,57 @@ null or package</p>
<p><span class="emphasis"><em>Default:</em></span> <p><span class="emphasis"><em>Default:</em></span>
<code class="literal">pkgs.opencode</code></p> <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.rules"></a><a class="term" href="options.xhtml#opt-programs.opencode.rules"><code class="option">programs.opencode.rules</code>
</a>
</span>
</dt>
<dd>
<p>You can provide global custom instructions to opencode; this value is written to {file}~/.config/opencode/AGENTS.md</p>
<p><span class="emphasis"><em>Type:</em></span>
strings concatenated with “\n”</p>
<p><span class="emphasis"><em>Default:</em></span>
<code class="literal">&quot;&quot;</code></p>
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">&#x27;&#x27;
# TypeScript Project Rules
## External File Loading
CRITICAL: When you encounter a file reference (e.g., @rules/general.md), use your Read tool to load it on a need-to-know basis. They&#x27;re relevant to the SPECIFIC task at hand.
Instructions:
- Do NOT preemptively load all references - use lazy loading based on actual need
- When loaded, treat content as mandatory instructions that override defaults
- Follow references recursively when needed
## Development Guidelines
For TypeScript code style and best practices: @docs/typescript-guidelines.md
For React component architecture and hooks patterns: @docs/react-patterns.md
For REST API design and error handling: @docs/api-standards.md
For testing strategies and coverage requirements: @test/testing-guidelines.md
## General Guidelines
Read the following file immediately as it&#x27;s relevant to all workflows: @rules/general-guidelines.md.
&#x27;&#x27;
</code></pre>
<p><span class="emphasis"><em>Declared by:</em></span></p> <p><span class="emphasis"><em>Declared by:</em></span></p>
<table border="0" summary="Simple list" class="simplelist"> <table border="0" summary="Simple list" class="simplelist">
<tr><td> <tr><td>
@ -54732,7 +54783,8 @@ null or package</p>
</dt> </dt>
<dd> <dd>
<p>Configuration written to <code class="filename">$XDG_CONFIG_HOME/opencode/config.json</code>. <p>Configuration written to <code class="filename">$XDG_CONFIG_HOME/opencode/config.json</code>.
See <a class="link" href="https://opencode.ai/docs/config/" target="_top">https://opencode.ai/docs/config/</a> for the documentation.</p> See <a class="link" href="https://opencode.ai/docs/config/" target="_top">https://opencode.ai/docs/config/</a> for the documentation.
‘“$schema”: “https://opencode.ai/config.json” is automatically added to the config.</p>
<p><span class="emphasis"><em>Type:</em></span> <p><span class="emphasis"><em>Type:</em></span>
JSON value</p> JSON value</p>