mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
deploy: 64796151f7
This commit is contained in:
parent
6da5d437e3
commit
9ccef08496
1 changed files with 53 additions and 1 deletions
|
|
@ -54715,6 +54715,57 @@ 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">
|
||||
<home-manager/modules/programs/opencode.nix>
|
||||
</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">""</code></p>
|
||||
|
||||
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">''
|
||||
# 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'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's relevant to all workflows: @rules/general-guidelines.md.
|
||||
''
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p><span class="emphasis"><em>Declared by:</em></span></p>
|
||||
<table border="0" summary="Simple list" class="simplelist">
|
||||
<tr><td>
|
||||
|
|
@ -54732,7 +54783,8 @@ null or package</p>
|
|||
</dt>
|
||||
<dd>
|
||||
<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>
|
||||
JSON value</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue