TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lnardev/opencode-config-agent/llms.txt
Use this file to discover all available pages before exploring further.
tui.json file configures OpenCode’s terminal user interface. While opencode.json controls AI behavior — agents, prompts, MCP servers, and permissions — tui.json controls what you see in the terminal: the visual layout, status indicators, and UI plugins that render information about what agents are doing in real time.
Current configuration
OpenCode Config Agent ships with the followingtui.json:
Points to the OpenCode TUI JSON schema for editor validation and autocompletion.
An array of TUI plugin names to load. TUI plugins render UI elements in the terminal interface. These are separate from the AI-layer plugins configured in
opencode.json.opencode-subagent-statusline plugin
Theopencode-subagent-statusline plugin adds a live status line to the OpenCode TUI that shows background agent activity as it happens.
When the sdd-orchestrator delegates work to subagents, those agents run in the background while the orchestrator waits for results. Without visibility into this, the terminal appears idle even while multiple subagents are actively working. The statusline plugin surfaces that activity:
- How many subagents are currently running — shows a count of active background delegations
- What each agent is doing — shows the name and status of each running subagent
- Completion state — updates in real time as agents finish their work and return results
sdd-apply or sdd-explore.
The statusline only shows activity when the
sdd-orchestrator (or another agent with delegate tool access) is actively running background delegations. It stays quiet during normal single-agent conversations.plugin field
Theplugin array in tui.json is a list of TUI plugin names to activate. Each entry is a plugin identifier — the same name used when the plugin was installed or registered.
Adding TUI plugins
To add additional TUI plugins, append their names to theplugin array:
Find a TUI plugin
TUI plugins are distributed as npm packages or registered plugins compatible with the OpenCode TUI plugin API.
Add the plugin name to tui.json
Open
~/.config/opencode/tui.json and add the plugin identifier to the plugin array.tui.json vs opencode.json
tui.json | opencode.json | |
|---|---|---|
| Controls | Terminal UI appearance and widgets | Agent behavior, prompts, MCP servers |
| Plugin type | UI rendering plugins | AI capability plugins |
| Schema | https://opencode.ai/tui.json | https://opencode.ai/config.json |
| Affects agents | No | Yes |
| Affects display | Yes | No |