Skip to content

Antigravity Session

The antigravity-like session as one block: AntigravityHeader's launch screen and news rail, then the parts you put in it, in any order.

On this page

Examples

A block: the antigravity-like surface and its header, with the parts you put in it. The same as CliFrame preset="antigravity-like". Every part in all eight looks is on Agent CLI.

Installation

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

Props

agent / model / cwd
string
Passed to the header: who is running, on which model, in which folder.
mark / meta
ReactNode
Passed to the header.
welcome
CliWelcome
The header's welcome, news, tips or menu.
children
ReactNode
The parts, in any order: messages, tool calls, diffs, the prompt, the status.
time
number
Default0
Replay time in ms, for spinners.
label
string
Default"<agent> session"
Accessible name.
className / style / ref
-
On the section.

When to use

When to use

  • A antigravity-like screen built from its own parts, for a plugin page or a product demo.
  • A still screen with your own tool, result view and status segment in place.

When not to use

  • A session replayed from a script, with play and seek: use Agent CLI.
  • Commands a person approves in your app: use Agent Terminal.

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 Antigravity Session to my app and wire it to my own data.
  • I need a antigravity-like screen built from its own parts, for a plugin page or a product demo. Set that up with the Knowns UI Antigravity Session.
  • Which Antigravity Session props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "agent-cli-antigravity-session" }) and search_docs({ query: "antigravity session" }).

Need help?

Stuck on Antigravity Session, or found something off? We read every message.