diff options
| author | Idris Gadi <[email protected]> | 2026-01-31 04:35:01 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-30 17:05:01 -0600 |
| commit | e834a2e6c9bc8a9a9b82a1ed6bd209266a10460f (patch) | |
| tree | 382fc4792e53a64eee081ddd3fc08c3552baf6a9 | |
| parent | 9d3f32065b85fa71d6bc5f607ffba9931dd199cb (diff) | |
| download | opencode-e834a2e6c9bc8a9a9b82a1ed6bd209266a10460f.tar.gz opencode-e834a2e6c9bc8a9a9b82a1ed6bd209266a10460f.zip | |
docs: update agents options section to include color and top_p options (#11355)
| -rw-r--r-- | packages/web/src/content/docs/agents.mdx | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/agents.mdx b/packages/web/src/content/docs/agents.mdx index ea1f779cd..62957ad91 100644 --- a/packages/web/src/content/docs/agents.mdx +++ b/packages/web/src/content/docs/agents.mdx @@ -269,7 +269,7 @@ If this is not set, the agent will continue to iterate until the model chooses t "quick-thinker": { "description": "Fast reasoning with limited iterations", "prompt": "You are a quick thinker. Solve problems with minimal steps.", - "maxSteps": 5 + "steps": 5 } } } @@ -277,6 +277,10 @@ If this is not set, the agent will continue to iterate until the model chooses t When the limit is reached, the agent receives a special system prompt instructing it to respond with a summarization of its work and recommended remaining tasks. +:::caution +The legacy `maxSteps` field is deprecated. Use `steps` instead. +::: + --- ### Disable @@ -568,6 +572,42 @@ Users can always invoke any subagent directly via the `@` autocomplete menu, eve --- +### Color + +Customize the agent's visual appearance in the UI with the `color` option. This affects how the agent appears in the interface. + +```json title="opencode.json" +{ + "agent": { + "creative": { + "color": "#ff6b6b" + } + } +} +``` + +Must be a valid hex color code like `#FF5733`. + +--- + +### Top P + +Control response diversity with the `top_p` option. Alternative to temperature for controlling randomness. + +```json title="opencode.json" +{ + "agent": { + "brainstorm": { + "top_p": 0.9 + } + } +} +``` + +Values range from 0.0 to 1.0. Lower values are more focused, higher values more diverse. + +--- + ### Additional Any other options you specify in your agent configuration will be **passed through directly** to the provider as model options. This allows you to use provider-specific features and parameters. |
