Skip to content

Codex Exec

A codex-like run: • Ran and the command, each command word in blue and && in teal, the output under └, and other tools as Read or Edited.

On this page

Examples

Drawn for this look alone: no other look prints it, so it has no generic part. Every part in all eight looks is on Agent CLI.

Installation

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

Props

tool / args
string
Any name (Read, Bash, MyPlugin.search) and what it was called with.
state
"waiting" | "running" | "done" | "failed" | "denied"
Default"done"
Where the call is.
output / streaming
string / boolean
Its output, folded after collapseAfter lines; streaming shows the newest lines.
summary / error
string
The one-line result, or what went wrong.
result
ReactNode
Your own view under the call.
diff
{ path, before, after } | { path, patch }
A change under the call.
collapseAfter
number
Default4
Lines before +N lines.
children
ReactNode
Nested calls.

When to use

When to use

  • Showing shell commands an agent ran, coloured as the codex-like CLI colours them.

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 Codex Exec to my app and wire it to my own data.
  • I need showing shell commands an agent ran, coloured as the codex-like CLI colours them. Set that up with the Knowns UI Codex Exec.
  • Which Codex Exec props do I need for a minimal setup? Show me a short example.

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

Need help?

Stuck on Codex Exec, or found something off? We read every message.