Skip to content

Pi Thinking

The pi-like thinking line: a spinner and the time while it thinks, then Thought for 4s in a quiet line.

On this page

Examples

The shared grammar with the look fixed: the same as <CliThinking preset="pi-like" />, so it reads as the pi-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-pi
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 Pi 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 Pi Thinking.
  • Which Pi Thinking props do I need for a minimal setup? Show me a short example.

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

Need help?

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