Skip to content
Back to skills

Docs

ASecurity

This guide describes native CLI workflows across Windows, Linux, and macOS. Syntax, help, and completion are shared across platforms; inspect `--help` on the installed build for exact command and platform availability.

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 16, 2026
ai-agentsrustgoshellbashgitapibackend

Works with

  • cursor
  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add i-need-token/orchbee --skill docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/i-need-token-docs/badge)](https://www.skillsdirectory.com/skills/i-need-token-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Orchbee native CLI Agent guide

This guide describes native CLI workflows across Windows, Linux, and macOS. Syntax, help, and completion are shared across platforms; inspect `--help` on the installed build for exact command and platform availability.

## Quickstart Recipes

```text
# Inspect active session, panels, and agents
orchbee status --format json
orchbee agent list --format json

# Start an agent in a target directory without stealing client focus, returning once it is idle
orchbee agent start antigravity --cwd <dir> --no-focus --wait-ready -- <provider-args>

# Prompt, send keys, inspect process, or read visible output by panel or child terminal
orchbee agent prompt --panel @panel:0x1 "<task>"
orchbee agent prompt --terminal @terminal:0x2 "<task>" --wait --timeout 60000
orchbee agent send-keys --panel @panel:0x1 escape
orchbee agent read --panel @panel:0x1 --source visible --plain
orchbee panel process-info @panel:0x1 --format json

# Run one bounded shell command and wait for its completion marker
orchbee terminal run --panel @panel:0x1 "git status" --wait --timeout 30000 --format json

# In any shell, including SSH sessions and cmd, run one command and return its own output and status
orchbee terminal run --panel @panel:0x1 "uname -a" --capture --shell posix --timeout 60000 --format json
orchbee terminal run --panel @panel:0x1 --file check.sh --capture --shell posix --timeout 120000 --format json
```

- Prefer printed compact handles (`@panel:0x1`, `@terminal:0x2`, `@agent:<kind>`, `@agent:<n>`); quote handles in PowerShell.
- On `agent start`, `--cwd <dir>` and `--focus`/`--no-focus` apply to new-tab or `--split right|down` starts and conflict with `--here`. `--client <id>` names the Client that `--focus` switches and needs `--focus`.
- Inside an existing terminal, `--here --panel <panel-id>` needs the target shell at an idle prompt. It is refused with `own-panel` when the target is the Panel your own command runs in. If a rejection names `stage: "agent-terminal"`, inspect the target with `orchbee panel process-info <panel-id>` and `orchbee agent list`.
- Never replay uncertain input after timeout or unknown outcome; inspect `agent read` or `terminal read` first.
- Stop a Server or Session only when explicitly asked in the current conversation; never add `--confirm` autonomously.

## Discover this build

Start with `orchbee --help`, then `orchbee <family> --help` and `orchbee <family> <command> --help`. A single help flag before `--` also works with already supplied operands and options without executing them. Unknown options, missing values, and duplicates still fail. `help <path>` accepts an exact help path. A bare `orchbee` starts the TUI.

`--version`, `--skill`, `completion <shell>`, `api schema`, and `config default` work offline. Completion supports Bash, Zsh, Fish, PowerShell and Elvish. `api schema` lists the schema IDs; use `api schema <schema-id>` for the same build's machine contract, or add `--output <path>` to export it. Read the emitted `schema` and `version`; this guide does not pin catalog counts or historical versions.

All CLI JSON documents use version `1` and one current schema. Fields stay present across platforms and options: `{kind:"unsupported"}` means no platform capability, `null` means the source said none, and `"unknown"` means it cannot say. A whole unsupported command returns `stage: "platform"`, `reason: "unsupported-platform"`, exit `4`; a command this release withholds returns `stage: "release"`, `reason: "withheld-in-release"`, exit `4`. `doctor` keeps all five checks in `orchbee.doctor` on every platform; a check the platform cannot make is `{kind:"unsupported"}`.

For PowerShell, `orchbee completion powershell` prints the completion script.

Pass any pagination cursor back unchanged to the same command and backend that returned it. List and change cursors have separate owners and are never converted into one another. Omit wait options only when the documented backend defaults are intended.

## Select and start a Session

Use `doctor` to check installation, settings, saved data, runtime folder, and Session (`pass`, `warning`, `fail`, or `not-applicable`, exit `1` only on failure). Use `config check` to inspect local configuration and `status` to read the running Session's counts and processes. `doctor` and `config check` do not start a Session; `status` needs a running one. Use `server start` for headless startup and `server restart` to hand the running Session to a new Server of this build while its terminals keep running; `workspace create`, `project create`, `worktree create`, and `worktree open` start the selected Session themselves when it is not running and print `Local session started.` on stderr.

`--session <name>` selects a local named Session and may appear before or after the command. The default is `default`. Use the same selection on subsequent commands and diagnostics. `session list` shows the local inventory; `session attach <name>` enters its TUI. Exiting a TUI leaves the Session running.

```text
orchbee --session work server start
orchbee --session work status --format json
orchbee --session work tui
```

A missing runtime base is an environment check failure; inspect `config check` before retrying. `recovery-required` means startup could not establish safe ownership. When its details carry `blockingProcess`, a process from an earlier start still runs; tell the person, because ending that process or restarting the computer clears the refusal. `server-not-started` means the system refused to create the Server; `ioKind` and `osError` say why. Diagnose that exact Session or use another name. Do not delete runtime directories manually.

## Resolve targets and inspect state

A Workspace has a directory and may belong to a Project; Project grouping is optional. A Workspace contains Tabs; Tabs contain Panels; a Panel has a primary terminal and may have child terminals. TUI Clients retain their own selection and view.

Use `api snapshot`, then the relevant `project`, `workspace`, `tab`, `panel`, `terminal`, `launch-profile`, `client`, or `agent` list/get command. Reuse returned IDs and prefer printed handles such as `@panel:0x1`: they omit leading zeros without changing identity when other resources come or go. Quote handles in PowerShell. IDs and compact handles are scoped to the selected Session and underlying identity lifetime; rediscover runtime terminal IDs after Server restart.

Inside an Orchbee terminal, caller metadata can select its Panel. Outside, `panel current` can use the unique current TUI Client; pass `--client <id>` when several exist or a positional Panel ID for a headless lookup. `agent start` without `--panel` specifically requires valid caller metadata. Partial or stale caller metadata never authorizes a fallback; a background process you start from a terminal keeps its `ORCHBEE_TERMINAL_ID` and `ORCHBEE_WORKER_ID`, so start it without them or pass targets explicitly. `workspace`, `tab` and `panel` list/get report `focused` from the only ready Client when exactly one exists; otherwise pass `--client <id>` or `focused` stays null.

`terminal list` marks the terminal it runs in (`caller: true`; `*` in text) and places every row in its Tab: `tabLabel` names the Tab, and `panelPosition` lists the Panel's side in each split, outermost first, such as `["right", "top"]`. A terminal on the right side of the caller's Tab is a row with the caller's `boundTo.tabId` whose `panelPosition` starts with `right`.

## Create and arrange terminals

```text
orchbee workspace create --cwd . --label work
orchbee tab create --workspace work --label shell
orchbee panel list --format json
orchbee panel split <panel-id> --direction right
```

Inspect each creation receipt: committed layout membership does not prove a process started. `workspace create`, `tab create` and `panel split` report the new IDs at the top of `result`; `terminal read`, `wait-output`, `send` and `run` accept the new Panel ID and act on its terminal. Commands that need a Client refuse missing, ambiguous or unready Clients; use `client list` and an explicit `--client`.

`tab create`, `panel split` and `panel create-terminal` support the declared launch choices, cwd and literal environment entries. Use `--profile` for a saved Launch Profile or `--exec` with repeatable `--arg` for an explicit program; add `--close-on-exit` for a one-off task whose Panel should close once it exits with code 0. The directory must already exist. Inspect help for `--cwd home|current|workspace`, absolute overrides, complete terminal geometry and the bounds on `--env NAME=VALUE`. These overrides do not modify a saved profile.

`panel create-terminal --child` creates a child terminal. Use `workspace`/`tab` move commands, `panel move --into-tab <tab>`/`swap`, `layout`, `panel resize`, `panel maximize` and focus commands for arrangement. Client focus controls TUI selection; it does not activate an OS window. Read the command's help before choosing current targets or layout paths.

## Send input and read output

`terminal run <terminal-id> "git status"` submits one literal command plus Enter. With `--wait` or `--capture`, `--file <path>` or `--stdin` reads the command instead, so quotes and `$` in it need no escaping for your own shell. `terminal send` accepts exactly one of `--text`, `--file` or `--stdin`, with optional `--paste`/`--enter`, or declared keys. Keys are ordered; at most 64 are accepted. File/stdin input is read locally, including when routing to a saved machine. The source read is capped at 1 MiB; the resulting paste and argv retain their smaller declared bounds.

A receipt proves accepted input records, not Shell readiness, command completion or exit status. Never replay partial or unknown delivery. Inspect the receipt and terminal before deciding what to send next.

`terminal read` and `agent read` default to recent output. Select `visible`, `recent`, `recent-unwrapped` or `detection` with `--source`; `--plain` emits UTF-8 text and excludes JSON. Use `--lines` for the window and `--source recent-unwrapped` to join soft wraps. Do not mix incompatible output modes; inspect help for limits, wrapping and ANSI.

`terminal wait-output` can match output that already exists. The default deadline is 30000 ms; override it with `--timeout` or explicitly use `--forever`. `--timeout` and `--forever` conflict. A matched line alone does not prove a newly submitted command finished.

## Install and operate Agents

Agent integration is not offered in this release: no command enables, disables, lists or explains one. Entries that an earlier version wrote are left alone, and `uninstall` removes them.

`agent start <provider>` starts the provider in a new Tab beside your own Panel; `--split right|down` opens a split instead, and `--cwd <dir>`, `--focus`, or `--no-focus` apply only to those new Tab/split launches (conflicting with `--here`); `--client <id>` names the Client that `--focus` switches and needs `--focus`. `--here --panel <panel-id>` types it once at the confirmed prompt of an observed idle cmd, PowerShell, pwsh, or macOS zsh or bash terminal (never your own Panel: `own-panel`, waiting briefly for an unmarked shell prompt to settle when starting interactively). `--panel <panel-id>` or `--current` names the reference Panel. Without arguments, a new Tab or split runs the provider as its shell's first command and returns once the Panel exists: `confirmation` is `launched` and `submission` is null. Otherwise the command is typed and the start returns after a three-second check: `confirmation` is `sent`. Either way `place` and `panelId` name where it started, and `interactiveReady` is false unless `--wait-ready` then waited, within the same timeout, until the Agent was idle or done with a first turn: it is then true, a blocked Agent fails as `agent-blocked`, and one not ready in time fails as `start-deadline`. Without `--wait-ready`, wait with `agent wait --panel <panel-id> --until idle` before prompting. A shell back at its prompt fails as `command-not-found` or `agent-exited`. Without a canonical Session report, readiness is observed in the terminal: `confirmation` is `observed`, `sessionId` is absent, and the Agent is addressed by its `@panel:` handle with `--panel` or `--terminal`. A new Tab or split that a later step failed in stays open as the failure's `createdPanelId`. A focus that misses does not fail the start; `result.focus`, or `details.focus` on failure, names the stage and reason. Default timeout: 30000 ms; allowed range: 3001–300000. Literal provider arguments follow `--`, or use `--arg=<value>`. A timeout or cancellation can leave the provider running; inspect the submission and `agent list` before retrying.

`agent list/get` inspect current Agent state; `agent get --format json` adds `result.explanation` or `result.detection`, with the other member null. `agent list` joins canonical sessions with physical terminal Agents and reports each row's source, semantic status and placement; `--client <id>` adds separate Client observations without changing status. Pages contain 1–100 rows (default 50). JSON uses `orchbee.agent.list` v1 and `orchbee.agent.get` v1. Pass any list cursor back unchanged; malformed cursors fail usage checks before live source reads, stale cursors require restarting from the first page after `cursor-restart`, and optional cwd enrichment covers up to 64 rows per page.

`@agent:<kind>` selects a unique provider and `@agent:<n>` selects a one-based ordinal in the complete current list, not the current page. `agent get`, `read`, `prompt`, `send-keys`, `wait`, and `focus` share this resolver; `agent prompt`, `send-keys`, `read`, and `wait` also accept `--panel` or `--terminal` directly (agents observed only through their terminal, such as `antigravity`, and secondary terminals are addressed via `--panel` or `--terminal`; if rejected at `stage: "agent-terminal"`, inspect the pane with `orchbee panel process-info <panel-id>`). An incomplete projection cannot establish a unique provider match. Version 1 `agent get` keeps ordinary Agent identity and status in `result.agent`, with facet-specific detail in `result.inspection`.

`agent prompt <target> <text> --wait` submits literal input and observes activity before checking a condition. Text that starts with `-` goes after `--`, which ends the options (`agent prompt --panel <panel> --wait -- "-v explain"`), or into an option as `--text=-v`. `agent wait` only observes. The default is no total timeout and idle/done/blocked; specify a finite timeout for automation. Freshness, attention and existing work affect admission. A matched state does not identify a prompt-specific turn. Cancelling a wait does not undo accepted input or stop the Agent.

Retain observed revisions and inspect `agent wait --help` before using `--after-revision` for later state.

`--until`, `--timeout`, and `--forever` require `agent prompt --wait`; `--forever` conflicts with `--timeout`. Windows Codex input includes a Right key between paste and Enter. A wait failure retains any accepted input receipt, so never replay uncertain input.

## Events and terminal streams

`events subscribe --event workspace.created --timeout 30000` prints one line per event; add `--format json` for NDJSON records. `orchbee help events subscribe` lists every event name. `events wait` waits for one filter and defaults to 30000 ms; timeout `0` checks the admitted baseline once. Retained cursors include an epoch and decimal-string sequence; a gap requires rebuilding the baseline.

For a typed filter, inspect `api schema orchbee.events.stream` at `$defs/filter`. A minimal valid input is:

```json
{
	"kind": "event",
	"event": "workspace.created",
	"scope": { "kind": "all" },
	"condition": { "kind": "any" }
}
```

Typed filters own their scopes and conditions and cannot mix with shorthand selectors. Use the simple `--event` form unless you need the typed surface.

`terminal session observe` emits bounded NDJSON frames without control. `terminal session control` accepts NDJSON input; inspect its declared input schema before writing records. `terminal attach` and `agent attach` require real terminal stdin/stdout. `Ctrl+b q` detaches; a doubled prefix sends one literal prefix. Attachment does not start a Session, reconnect or replay input.

<!-- unreleased -->

## Plugins

Use `plugin list`, `plugin action list` and `plugin panel open --help` to discover installed capabilities. `plugin link` registers a local manifest; `plugin install` and `plugin update` support `--yes` for the declared noninteractive trust flow. Enabled plugins' startup and event commands run automatically in later Sessions. Registry commands do not start a Session; action invocation and panel commands require an existing Session.

`plugin action invoke <action-id> --context <json>` accepts display overrides such as `{"selectedText":"example"}`. Inspect `api schema orchbee.plugin.runtime` at `$defs/context`; fields use camelCase and unknown fields are refused. Accepted plugin work can continue after the CLI exits. Use `plugin log list` for retained logs.

Popup placement requires a current ready Client and focus. Remove `--no-focus`, or choose tab/split placement. `popup close` disposes of the popup terminal. Normal Panel and popup lifetime rules differ; inspect the relevant receipt.

<!-- /unreleased -->

## Saved machines

`machine list` shows this computer first, as `local`, then each saved machine with its color, its state and its free CPU, memory and disk; a fact a machine cannot read is `"unknown"` in JSON. On this computer, `workspace list` and `agent list` without `--machine`, `--session`, `--client` or `--cursor` also ask every connected machine: JSON adds `result.machines`, one `{machine, label, source, result}` per machine with that machine's own `source` and `result` (both null when it did not answer), and text adds `@<name>` and that machine's own table; its IDs and handles belong to that machine, so pass `--machine <id>` to act on them. `machine add/rename/set-color/enable/disable/remove` manage saved remote machines; a machine's name is shown in its color, a preset (`cyan`, `teal`, `sky`, `blue`, `indigo`, `violet`, `purple`, `magenta`, `pink`, `brown`, `slate` or `grey`) or a custom `#rrggbb`, which `add` picks when `--color` is left out; rename, set-color, remove, enable and disable name one by `<id|label>`, and a label several machines share must be replaced by its ID. `machine connect <id|label>` connects through the background machine hub and returns once the machine is online or with the reason; the connection stays after the command. When sign-in needs an answer and an Orchbee TUI is running, the command, routed ones included, writes one line to standard error and waits up to 120 seconds for a person to log in there; if they choose not to, it ends with `auth-required`, and later commands for that machine end at once until someone logs in to it. With no TUI running, a command whose standard input and standard error are both consoles asks each sign-in question there; any other, such as an Agent that redirects standard input from the null device, ends at once with `auth-required` (set up key sign-in first). `machine disconnect <id|label>` ends it without stopping the remote Session. Route a command with `--machine <name-or-id>`, which, like `--session`, may stand anywhere before `--`. It conflicts with local `--session`; TUI and terminal streams are not routed. Remote cwd names remote paths, while file/stdin input is local. Removing a machine does not stop remote sessions. `--machine local` means this computer. `workspace set-machine <workspace> --to <name-or-id|local> --dry-run` lists the terminals a move would end, each with its `activity` (`idle`, `running` or `unknown`), and `idle` is true only when none may be running a program; without `--confirm` the command refuses with these facts. With `--confirm` the Workspace is created on that machine with its name and Project and closed where it ran, which ends those terminals. Files are not moved: it starts in the same folder relative to home when that folder exists there, otherwise in home. `--machine` names the machine that holds it, and with it this command alone still takes `--session` for this computer's Session. Move a Workspace only when the user asks, and never add `--confirm` on your own.
<!-- unreleased -->

A machine without this build fails `machine connect` with `remote-not-installed`, and one with an older build with `version-incompatible` and `machineState` `needs-update`. Add `--install` only when the user agrees to install Orchbee there: the command copies this computer's build into that machine's own store for this environment, which can take minutes, and then connects; `installFailure` names why an install failed. `machineState` `local-needs-update` means this computer is the older one: run `update` here instead.
<!-- /unreleased -->

## Close, stop and recover

Destructive commands require their declared `--confirm`. Workspace close does not delete its Git checkout or branch. Use `operation status|resume <request-id>` with the retained request ID and generation when a receipt requires recovery. Do not start a second operation as an implicit retry.

Stop a Server or Session only when the user asks for that stop in the current conversation; never add `--confirm` to a stop on your own. `server stop --confirm` or `session stop <name> --confirm` ends the Session after its final checkpoint. Startup restores eligible layout and launch facts, not live screen history or active Agent state. A failed/cancelled CLI wait can leave the stop in progress; query its retained identity. `orchbee --machine <name-or-id> server stop --confirm` stops that saved machine's remote Session and every terminal in it through the machine hub; it takes no request ID, retry, detach or timeout, so an `unknown` outcome has no identity to query.

On Windows, the release build's `server stop`, `session stop` and `session delete` must be run by a person: they run only in an interactive console after the person types the Session name, and they refuse `--confirm` and every Agent, script or pipe. Do not try to run them there; give the user the command to run by hand. Development and test builds keep `--confirm`. Every request, accepted or refused, is logged.

`session create <name> [--label <label>] [--copy <session>]` makes a stopped Session; `--copy` starts it with another Session's settings and saved machines, not its Projects, Workspaces or terminals. `session rename <name> --label <label>` sets a display name of up to 64 characters in any language; the name never changes. Create or rename a Session only when the user asks.

`session delete <name> --confirm` removes only proven stopped, unused owned state. It refuses the default Session and live or uncertain ownership, and does not delete project directories. Repeat an interrupted delete only after resolving its reported cause.

## Consume results and preserve UTF-8

Use `--format json` where declared. Ordinary queries emit one document; event/terminal streams emit NDJSON and attachment is interactive. Localized diagnostics go to stderr. Inspect the document and exit code together: 2 usage, 3 target/refusal, 4 unavailable, 5 denied, 6 incompatible/protocol, 7 timeout, 8 unknown outcome, 9 integration refusal/failure, and 130 cancellation. Read `schema`, `version`, completeness and the operation's own outcome. A command refused because the view changed under it (`revision-mismatch`, `stale-view`, or an Agent read reported as `changed`) was already read again and resubmitted up to three times while its target resolved the same way; on exit 3 with that reason, inspect current state before running it again instead of looping. `agent list` reports `changed` only after up to three fresh reads under the same deadline. `agent wait` reads again whenever a change elsewhere, such as a Tab opened in another Workspace, outruns the resolution of its target or a terminal Agent's sample, until its own deadline. Human tables exceeding 80 cells use labeled records so full IDs stay copyable.

New managed PowerShell terminals initialize native pipeline encoding as UTF-8. In an externally started PowerShell, set its decoding and outgoing pipeline encoding before consuming native output:

```powershell
$cliUtf8 = [System.Text.UTF8Encoding]::new($false)
[Console]::OutputEncoding = $cliUtf8
$OutputEncoding = $cliUtf8
orchbee workspace list --format json | ConvertFrom-Json
```

## Further capabilities

Use help for metadata reporting, attention/acknowledgement, terminal graphics, layout export/apply, notifications, configured commands, manifest maintenance, and configuration reload. Some are Windows-only; the installed grammar owns admission and effect details.

`update` installs the newest version of the channel beside the running one; running terminals and Agents keep their version. Its JSON `upToDate` is true when there was nothing newer and nothing changed.
<!-- unreleased -->

Help also covers channel selection. `channel set` saves its selection and starts an update attempt, so inspect both the saved setting and update result.
<!-- /unreleased -->

Detailed behavior and maintenance contracts are indexed in [the native CLI reference](native-cli-query.md) and [the application README](../README.md). Prefer the installed build's help and schemas for executable discovery.

## Wait for a shell command or new output

For an idle, empty command line in a newly initialized managed shell terminal (PowerShell on Windows, zsh or bash on macOS), use `terminal run <target> <command> --wait --timeout 30000 --format json`. It submits once and waits for that invocation's shell markers. Inspect `submission`, `completion`, `failure` and `cleanup` separately. `statusKind: powershell-success` reports PowerShell success (0/1), not a native process's numeric exit code; `shell-exit-status` reports the zsh or bash exit status (`$?`). Timeout/cancellation never retracts accepted input; do not replay it.

In any other shell (cmd, an SSH session, a remote or unmanaged shell), use `terminal run <target> <command> --capture --shell <syntax> --timeout 60000 --format json` with the syntax at the prompt: `posix` for sh, bash, zsh, ksh and dash, which covers most SSH hosts and macOS, or `fish`, `powershell`, or `cmd` (one line; a line with `if` or `for` runs as a parenthesized block, where a `)` outside quotes, also one from `%VAR%`, needs `^)`). Write the command exactly as you would type it in that shell; Orchbee adds the markers and quoting, and `--file`/`--stdin` avoid quoting it for your own shell. `result.capture` holds `exitCode` (`$?`, fish `$status`, the PowerShell native exit code or 1, cmd ERRORLEVEL), `output` (the screen text between this run's markers, without color; null only when the command overwrote its begin marker) and `truncated` (only the last part is kept, because the output passed 1 MiB or its start left the terminal). The CLI exits 0 when the command succeeded and 1 when its status is nonzero; the text format prints the output itself. The prompt must be idle and empty. A command that exits the shell, waits for input or opens a full-screen program prints no end marker and times out with the output so far, still running. After a timeout or cancellation never run it again: wait with `terminal wait-output <target> --match "[orchbee end <runId>]" --source recent-unwrapped`, then read the output with `terminal read`.

To exclude retained output, save `terminal read --format json`'s `result.cursor` and pass `--after <cursor>` to `terminal wait-output`, or use `--after now` before new work. Only later physical output rows match. The current row and prompt/input rows are excluded. Reset/eviction/window gaps reject the cursor explicitly; increase `--lines` in advance and use a finite `--timeout` for automation. See [command submission](native-terminal-run.md).

## Headless layout operations

Explicit targets let shared layout operations run without a TUI. Use `panel layout <panel>`,
`layout export --tab <tab>`, `layout set-split-ratio --tab <tab> --path root --ratio 0.6`,
and `panel swap <panel> --with <other-panel>` without `--client`. The shared receipts retain
canonical identities and outcomes; they make no viewport or focus claim. `layout apply --file
layout.json --workspace <workspace>` also runs headlessly; explicit Workspace and confirmed Tab destinations
are supported. Add `--client` for Client geometry/observations, or `--focus` when applying to a
Client. Directional neighbors, resize, and `panel maximize` require Client geometry. Only stop, close,
and worktree commands accept `--request-id` or `--detach`. Inspect unknown mutation receipts before another submission.

## Consistent command vocabulary

Use positional Panel targets and `--current` in the Panel family. Use `--panel` or `--terminal`
when targeting an Agent; a terminal can be a child. Cardinal directions are `left|right|up|down`;
Tab order uses `--order previous|next|first|last`.
Create and rename display labels with `--label`. Agent start takes the provider as an operand, such as
`antigravity`. Events use `panel.*`; keys use `ctrl+c` and other
canonical plus-separated modifiers. Close ends a live resource, delete destroys a stored record,
remove removes membership, and dissolve preserves grouped children.
<!-- unreleased -->

Uninstall removes an installed plugin.
<!-- /unreleased -->

## Recover async operations

Use the receipt ID with `operation status <request-id>` for Workspace, Tab, Panel, Project, Worktree, Client, Session stop and Agent detection rule operations; no family word is needed. `operation resume <request-id> --generation <n> --confirm` continues one that is resumable; inspect status first. An unfinished Workspace, Tab or Panel close continues by itself on the Server, up to about three 30-second attempts, and only then reports one failure; use `operation resume` to continue a close that finally stopped. [Retained operation status](native-operation-status.md) owns the identity mapping, lookup order and limits.

## Panel targets for terminal I/O

`terminal run/read/send/wait-output` accept a terminal ID or `@terminal:`, a Panel ID or `@panel:`, or `--panel <panel>`. Panel targeting selects the primary presentation in one admitted snapshot; it never selects a child or changes focus. Use a child terminal ID explicitly. Missing, unbound and ambiguous Panels fail before input. Bare IDs that name different Panel and Terminal resources refuse; use typed handles to disambiguate. The response retains the actual terminal and placement identities. Example: `terminal run --panel @panel:0x1 "git status"`. The ordinary target and `--panel` are exclusive.

Files in this skill

  • cli-agent-skill.md24.2 KB
  • cli-agent-skill.zh-CN.md23.3 KB
  • cli-workflows.md16.5 KB
  • custom-commands.md11.9 KB
  • environment-variables.md10.9 KB
  • macos-agent-integrations.md10.5 KB
  • module-layers.md8.1 KB
  • native-action-menus.md65.3 KB
  • native-agent-navigation.md11.8 KB
  • native-cli-wait-model.md1.5 KB
  • native-client-attention.md22.7 KB
  • native-context-selection.md24.6 KB
  • native-control-takeover.md6.3 KB
  • native-current-panel.md12.8 KB
  • native-directory-startup.md6.5 KB
  • native-divider-resize.md12.6 KB
  • native-keyboard-copy.md21.8 KB
  • native-keyboard-resize.md7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.