diff options
| author | Spoon <[email protected]> | 2026-01-10 02:01:13 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-09 19:01:13 -0600 |
| commit | e342795bd064d734e6e91ca411b2fcd26397d072 (patch) | |
| tree | a5f9082116ec49dba47f86ef126a5f84e296abd0 /packages/web/src/content | |
| parent | a44d4acb3f76a6f62de73313cdfd66b064366eb5 (diff) | |
| download | opencode-e342795bd064d734e6e91ca411b2fcd26397d072.tar.gz opencode-e342795bd064d734e6e91ca411b2fcd26397d072.zip | |
docs: add url based instructions to web docs (#7216)
Diffstat (limited to 'packages/web/src/content')
| -rw-r--r-- | packages/web/src/content/docs/rules.mdx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/rules.mdx b/packages/web/src/content/docs/rules.mdx index aa5590bb5..2d02ff47f 100644 --- a/packages/web/src/content/docs/rules.mdx +++ b/packages/web/src/content/docs/rules.mdx @@ -92,6 +92,17 @@ Example: } ``` +You can also use remote URLs to load instructions from the web. + +```json title="opencode.json" +{ + "$schema": "https://opencode.ai/config.json", + "instructions": ["https://raw.githubusercontent.com/my-org/shared-rules/main/style.md"] +} +``` + +Remote instructions are fetched with a 5 second timeout. + All instruction files are combined with your `AGENTS.md` files. --- |
