summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-07-16 16:27:44 -0400
committerJay V <[email protected]>2025-07-16 16:27:44 -0400
commiteb4cdf4b20415540fe5b29c558fb249c53561868 (patch)
treefd13aa586ee07004199ae4fc9d04a133f8f3246e /packages
parent9f6fc1c3c5c822f8308f8deedaf67b734ec7c200 (diff)
downloadopencode-eb4cdf4b20415540fe5b29c558fb249c53561868.tar.gz
opencode-eb4cdf4b20415540fe5b29c558fb249c53561868.zip
docs: config doc
Diffstat (limited to 'packages')
-rw-r--r--packages/web/src/content/docs/docs/config.mdx16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx
index 813771aeb..8cab14ee5 100644
--- a/packages/web/src/content/docs/docs/config.mdx
+++ b/packages/web/src/content/docs/docs/config.mdx
@@ -203,6 +203,22 @@ You can configure MCP servers you want to use through the `mcp` option.
---
+### Instructions
+
+You can configure the instructions for the model you're using through the `instructions` option.
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "instructions": ["CONTRIBUTING.md", "docs/guidelines.md", ".cursor/rules/*.md"]
+}
+```
+
+This takes an array of paths and glob patterns to instruction files. [Learn more
+about rules here](/docs/rules).
+
+---
+
### Disabled providers
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.