Liking cljdoc? Tell your friends :D

hive-tmux.agy.screen

Read an Antigravity CLI (agy) tmux pane: is it working, is there text at its prompt, is a dialog waiting on a human?

agy is not Claude Code and shares none of its state files, so a pane is read from its screen alone. The anatomy below is measured, not guessed (agy 1.5.24, panes %3/%4/%5 on 2026-12-05):

content every committed line carries a │ gutter live turn a braille spinner row (⣽ Working..., ⣻ Calling MCP tool... 6s) or a streaming reasoning row (▸ Request mandates...), unguttered, under the content chrome a └ Tip: ... row composer box rule / prompt row / rule, the prompt row being > alone or > typed draft; queued messages sit in the box above it as ▸ text (alt+m to send immediately) hints ? for shortcuts (idle) or esc to cancel (busy) dialogs a numbered menu with a ↑/↓ Navigate · tab Amend footer, or a confirmation such as the folder-trust prompt; a dialog REPLACES the composer box

Screening rules that keep a sender safe:

  • a prompt row is a > row with a rule directly under it, whose box opens on a rule within a few rows. A > text echo in scrollback has neither and is never read as a draft.
  • a dialog is only read when the composer box is GONE, so a 1. ... option row cannot pass for conversation.
  • the composer's own draft is :input; queued messages are :queued, never :input. agy dims nothing at the prompt, so no ghost text is guessed.

Stratum: Promote. Pure: strings in, facts out, no I/O, no clock.

Read an Antigravity CLI (`agy`) tmux pane: is it working, is there text at
its prompt, is a dialog waiting on a human?

`agy` is not Claude Code and shares none of its state files, so a pane is
read from its screen alone. The anatomy below is measured, not guessed
(agy 1.5.24, panes %3/%4/%5 on 2026-12-05):

  content        every committed line carries a `│ ` gutter
  live turn      a braille spinner row (`⣽  Working...`, `⣻  Calling MCP
                 tool... 6s`) or a streaming reasoning row (`▸  Request
                 mandates...`), unguttered, under the content
  chrome         a `└ Tip: ...` row
  composer box   rule / prompt row / rule, the prompt row being `>` alone
                 or `> typed draft`; queued messages sit in the box above
                 it as `▸ text (alt+m to send immediately)`
  hints          `? for shortcuts` (idle) or `esc to cancel` (busy)
  dialogs        a numbered menu with a `↑/↓ Navigate · tab Amend` footer,
                 or a confirmation such as the folder-trust prompt; a
                 dialog REPLACES the composer box

Screening rules that keep a sender safe:

* a prompt row is a `>` row with a rule directly under it, whose box opens
  on a rule within a few rows. A `> text` echo in scrollback has neither
  and is never read as a draft.
* a dialog is only read when the composer box is GONE, so a `1. ...` option
  row cannot pass for conversation.
* the composer's own draft is `:input`; queued messages are `:queued`,
  never `:input`. agy dims nothing at the prompt, so no ghost text is
  guessed.

Stratum: Promote. Pure: strings in, facts out, no I/O, no clock.
raw docstring

bodyclj

(body lines n)

The conversation part of LINES: everything above the composer box, chrome (spinner, status, tip, hints) dropped, gutters removed, trailing blanks trimmed, at most N lines from the bottom. A screen with no composer box is returned whole, last N lines, so a dialog stays readable.

The conversation part of LINES: everything above the composer box, chrome
(spinner, status, tip, hints) dropped, gutters removed, trailing blanks
trimmed, at most N lines from the bottom. A screen with no composer box is
returned whole, last N lines, so a dialog stays readable.
sourceraw docstring

dialog?clj

(dialog? facts)

Is a dialog open?

Is a dialog open?
sourceraw docstring

gutterclj

The column agy draws down the left of committed content.

The column agy draws down the left of committed content.
sourceraw docstring

hint-linesclj

The bottom hint row agy draws: idle, then busy or in a dialog.

The bottom hint row agy draws: idle, then busy or in a dialog.
sourceraw docstring

idle?clj

(idle? facts)

Is the screen a proven idle composer with nothing in it?

Is the screen a proven idle composer with nothing in it?
sourceraw docstring

prompt-glyphclj

The prompt row marker. Unlike Claude Code's ❯, agy uses a plain >.

The prompt row marker. Unlike Claude Code's `❯`, agy uses a plain `>`.
sourceraw docstring

queued-hintclj

The hint agy draws under the composer box while messages are queued.

The hint agy draws under the composer box while messages are queued.
sourceraw docstring

queued-markerclj

The suffix agy draws after a message queued while a turn runs.

The suffix agy draws after a message queued while a turn runs.
sourceraw docstring

read-screenclj

(read-screen lines)

The facts of LINES, a pane capture top to bottom, escapes kept or not: {:busy? bool :status (:busy|:idle|:waiting|nil) :input (or nil string) :dialog (or nil map) :activity (or nil string) :queued? bool}.

:status is :idle only when the composer box is proven on screen, :busy while a spinner, status text or streaming reasoning is live, :waiting while a dialog is open, and nil when the screen proves none of them (not an agy pane, or one mid-redraw) — which is different from idle, since a sender must not type into a screen it cannot read.

:input is what someone typed at the prompt; a sender must not type over it. :dialog stops a sender outright, since keys would answer the dialog.

The facts of LINES, a pane capture top to bottom, escapes kept or not:
{:busy? bool :status (:busy|:idle|:waiting|nil) :input (or nil string)
 :dialog (or nil map) :activity (or nil string) :queued? bool}.

:status is `:idle` only when the composer box is proven on screen, `:busy`
while a spinner, status text or streaming reasoning is live, `:waiting`
while a dialog is open, and nil when the screen proves none of them (not an
agy pane, or one mid-redraw) — which is different from idle, since a sender
must not type into a screen it cannot read.

:input is what someone typed at the prompt; a sender must not type over
it. :dialog stops a sender outright, since keys would answer the dialog.
sourceraw docstring

readable?clj

(readable? facts)

Does the screen prove enough to act on it? A dialog counts: it says what is on the pane, and say refuses on it.

Does the screen prove enough to act on it? A dialog counts: it says what is
on the pane, and `say` refuses on it.
sourceraw docstring

strip-ansiclj

(strip-ansi s)

S without escape sequences.

S without escape sequences.
sourceraw docstring

utrimclj

(utrim s)

S without leading or trailing whitespace of any kind: agy pads its chrome with no-break spaces, which str/trim keeps.

S without leading or trailing whitespace of any kind: agy pads its chrome
with no-break spaces, which `str/trim` keeps.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close