Skip to content

Grok Event

A grok-like event line: ◆ and the event's name, such as a hook point or a step, with a [hooks: N/M] badge when hooks ran on it.

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-grok
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

name
string
What happened: a hook point (user_prompt_submit, stop) or a step.
hooks
number
Hooks that ran on it, shown as [hooks: N].
hooksOf
number
Of how many, shown as [hooks: N/M].

When to use

When to use

  • Showing hooks and steps that fire during a turn, as the grok-like transcript lists 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 Grok Event to my app and wire it to my own data.
  • I need showing hooks and steps that fire during a turn, as the grok-like transcript lists them. Set that up with the Knowns UI Grok Event.
  • Which Grok Event props do I need for a minimal setup? Show me a short example.

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

Need help?

Stuck on Grok Event, or found something off? We read every message.