Skip to content

Opencode Thinking

The opencode-like thinking line, set in under the user's rail: a spinner and the time, then how long it thought.

On this page

Examples

The shared grammar with the look fixed: the same as <CliThinking preset="opencode-like" />, so it reads as the opencode-like look on its own or inside a session. Every part in all eight looks is on Agent CLI.

Installation

npx knowns-ui@latest add agent-cli-opencode
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

elapsed
number
Ms thought so far, or in all.
done
boolean
Defaultfalse
Finished: the time and the gist instead of the spinner.
text
string
The gist, once done.

When to use

When to use

  • Showing how long a model thought before it acted.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Opencode Thinking to my app and wire it to my own data.
  • I need showing how long a model thought before it acted. Set that up with the Knowns UI Opencode Thinking.
  • Which Opencode Thinking props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "opencode-thinking" }) and search_docs({ query: "opencode thinking" }).

Need help?

Stuck on Opencode Thinking, or found something off? We read every message.