From eb4cdf4b20415540fe5b29c558fb249c53561868 Mon Sep 17 00:00:00 2001 From: Jay V Date: Wed, 16 Jul 2025 16:27:44 -0400 Subject: [PATCH] docs: config doc --- packages/web/src/content/docs/docs/config.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/web/src/content/docs/docs/config.mdx b/packages/web/src/content/docs/docs/config.mdx index 813771ae..8cab14ee 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.