[PR #859] [CLOSED] Fix Documentation on Modes - Update modes.mdx #9730

Closed
opened 2026-02-16 18:14:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/859
Author: @brendancopley
Created: 7/10/2025
Status: Closed

Base: devHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/web/src/content/docs/docs/modes.mdx (+2 -2)

📄 Description

Fix configuration with mode.{name}.prompt

based on past documentation the following doesn't work

  "mode": {
    "build": {
      "model": "anthropic/claude-sonnet-4-20250514",
      "prompt": "{file:./agents/atlas/atlas_fastrtc_developer.md}",
      "name": "Atlas",
      "tools": {
        "write": true,
        "edit": true,
        "bash": true
      }
    },

After looking into opencode/packages/opencode/src/session/mode.ts:56
https://github.com/sst/opencode/blob/c7f30e1065c666f8eb687db75bdc06ce4b8c4882/packages/opencode/src/session/mode.ts#L56 The correct way is the following:

  "mode": {
    "build": {
      "model": "anthropic/claude-sonnet-4-20250514",
      "prompt": "./agents/atlas/atlas_fastrtc_developer.md",
      "name": "Atlas",
      "tools": {
        "write": true,
        "edit": true,
        "bash": true
      }
    },

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/859 **Author:** [@brendancopley](https://github.com/brendancopley) **Created:** 7/10/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`cf04084`](https://github.com/anomalyco/opencode/commit/cf04084cf568bdf516d1d3beabe86ae05098738c) Update modes.mdx ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/web/src/content/docs/docs/modes.mdx` (+2 -2) </details> ### 📄 Description Fix configuration with mode.{name}.prompt based on past documentation the following doesn't work ``` "mode": { "build": { "model": "anthropic/claude-sonnet-4-20250514", "prompt": "{file:./agents/atlas/atlas_fastrtc_developer.md}", "name": "Atlas", "tools": { "write": true, "edit": true, "bash": true } }, ``` After looking into `opencode/packages/opencode/src/session/mode.ts:56` https://github.com/sst/opencode/blob/c7f30e1065c666f8eb687db75bdc06ce4b8c4882/packages/opencode/src/session/mode.ts#L56 The correct way is the following: ``` "mode": { "build": { "model": "anthropic/claude-sonnet-4-20250514", "prompt": "./agents/atlas/atlas_fastrtc_developer.md", "name": "Atlas", "tools": { "write": true, "edit": true, "bash": true } }, ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:04 -05:00
yindo closed this issue 2026-02-16 18:14:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9730