Skip to content

Commit eb4cdf4

Browse files
committed
docs: config doc
1 parent 9f6fc1c commit eb4cdf4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

packages/web/src/content/docs/docs/config.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,22 @@ You can configure MCP servers you want to use through the `mcp` option.
203203

204204
---
205205

206+
### Instructions
207+
208+
You can configure the instructions for the model you're using through the `instructions` option.
209+
210+
```json title="opencode.json"
211+
{
212+
"$schema": "https://opencode.ai/config.json",
213+
"instructions": ["CONTRIBUTING.md", "docs/guidelines.md", ".cursor/rules/*.md"]
214+
}
215+
```
216+
217+
This takes an array of paths and glob patterns to instruction files. [Learn more
218+
about rules here](/docs/rules).
219+
220+
---
221+
206222
### Disabled providers
207223

208224
You can disable providers that are loaded automatically through the `disabled_providers` option. This is useful when you want to prevent certain providers from being loaded even if their credentials are available.

0 commit comments

Comments
 (0)