cockpit side-panel
Generated reference for cockpit side-panel, including its syntax, options, results, and constraints from the canonical cockpit CLI source.
Some screens and steps may differ in the latest version.
This reference is generated from the same canonical source distributed as cockpit CLI help. See Cockpit CLI for concepts and safe operating guidance.
Usage: cockpit side-panel <command> [options]
Open or inspect the AGI Cockpit right side panel for a task. When --task-id is omitted, Cockpit resolves the current task from the session context.
Each command, and each terminal action, accepts only its own options. An unknown option, an extra argument, or an option without its value answers invalid_arguments (exit 1) and changes nothing; when a known option is close, the error names it and returns it in suggestion. An option that says the same thing as a positional argument takes its place, so file --file a.txt b.txt and terminal send --text pwd extra are rejected too. A switch such as --new-tab, --enter, or --hidden takes no value, so a word right after it is rejected as well; put the URL or path before the switch, as in browser https://example.com --new-tab. A value cannot start with --, and terminal send has no --stdin or file option, so text that starts with -- cannot be sent with --text, --command, or as words.
cockpit side-panel status --json
cockpit side-panel open --kind explorer --json
cockpit side-panel close --json
cockpit side-panel html --surface-id latest --json
cockpit side-panel browser --url "https://example.com" --json
cockpit side-panel browser --browser-identity work --json
cockpit browser show --browser-identity work --json
cockpit side-panel diff --file src/App.tsx --json
cockpit side-panel artifact --artifact latest --json
cockpit side-panel talk <roomId> --json
cockpit side-panel child-tasks --json
cockpit side-panel child-tasks <childTaskId> --json
cockpit side-panel ask --json
cockpit side-panel explorer --file src/App.tsx --json
cockpit side-panel explorer --root /path/to/api --file README.md --json
cockpit side-panel crew-home --json
cockpit side-panel crew-home --file work/example/README.md --json
cockpit side-panel file src/App.tsx --mode preview --json
cockpit side-panel file src/App.tsx --line 120 --end-line 125 --json
cockpit side-panel terminal show --json
cockpit side-panel terminal status --json
cockpit side-panel terminal new --name "Tests" --cwd /path --json
cockpit side-panel terminal focus --session <sessionId> --json
cockpit side-panel terminal send --session <sessionId> "pwd" --json
cockpit side-panel terminal send --session <sessionId> --key ctrl-c --json
cockpit side-panel terminal read --lines 200 --json
cockpit side-panel terminal read --session <sessionId> --screen --json
cockpit side-panel terminal rename --session <sessionId> --name "Title" --json
cockpit side-panel terminal close --session <sessionId> --json
cockpit side-panel terminal hide --json
cockpit side-panel width --px 720 --json
Notes:
cockpit side-panel terminal readtakes--rawor--screen, not both; together they answerinvalid_option(exit 1) and send nothing.cockpit side-panel browsershows the task's session of its primary Browser Identity. When the task has several Identities, add--browser-identity <name|id>(or usecockpit browser show --browser-identity <name|id>) to show that Identity's session instead, without changing the assignment. An Identity that is not assigned to the task is rejected.cockpit side-panel explorershows one of the task's current folders: the working folder, the project's folders as they are now, and the home of the task's Crew. Without--rootor--fileit opens the working folder. An absolute--fileopens in the deepest of these folders that holds it; a relative--fileis resolved from the working folder and must stay inside it.--rootpicks the top folder and accepts only one of these folders (a relative--rootis resolved from the working folder);--fileis then resolved from it. A file is selected and previewed. Giving the top folder itself (--file .or its path) opens the tree with nothing selected; a folder inside it is selected and opened. A path in the Crew home that is not in the working folder opens the Crew home view instead, with the same sender rules ascrew-home. A path outside these folders, including a folder removed from the project that is not the working folder, answersoutside_project, and a path that does not exist answersfile_not_found; both exit 1, leave the panel unchanged, and leave no card. Usecockpit side-panel filefor any other file.cockpit side-panel fileopens the requested path directly without waiting for the project tree. Relative paths are resolved from the CLI working directory before sending. A path that does not exist on the target host returnsfile_not_found(exit 1) without changing the panel. Usecockpit side-panel explorer --filewhen the Explorer tree is needed.cockpit side-panel file --line <n>opens Raw mode by default, scrolls to and highlights one line. An explicit--mode previewkeeps Preview; switching to Raw then reveals the requested line. Add--end-line <n>to highlight an inclusive range;--end-linemust be greater than or equal to--line.cockpit side-panel crew-homeopens the task's Crew home as an Explorer with the home as the top folder: on a Crew's own task it is the Folder tab of the Crew panel, and on the child and grandchild tasks that Crew owns it is the Crew home tab next to the project Explorer;open --kind crew-homeis the same, andstatusreports the kind ascrew-home-explorer. Cockpit finds the home from the task's Crew each time, so there is no--root.--fileis resolved from the Crew home, not from the CLI working directory; an absolute path must be inside the real Crew home. A task without a Crew home, or a Crew home that is missing, answerscrew_home_unavailable; a path outside the home (including through.., afile://URL, or a symbolic link) answersoutside_root; a path that does not exist answersfile_not_found. Each error exits 1 and leaves the panel unchanged. Cockpit never creates a missing home or opens another folder instead.explorersends a path in the Crew home here. Run inside a task, the command tells Cockpit which task sent it, by the task's secret (cockpit help crew): a shell outside a task, the owner's other tasks, and the Crew's own task and its child tasks may open the home; a task of another Crew answersforbidden_from_crewand a task named without its secrettask_unverified(HTTP 403), forcrew-home,open,status,close, andterminalalike while a Crew home is the task's panel.cockpit side-panel artifactopens the Creative Studio artifact review panel (3D model or picture book review). It only works for Creative Studio tasks;--artifactand--versionaccept ids orlatest.cockpit side-panel talk [roomId]opens the Talk Room conversation view (latestor omitted = most recently active room,list= room list). Seecockpit help talk.cockpit side-panel child-tasks [childTaskId]opens the current task's active child tasks. Pass the child task id positionally or with--child-task-id; use--task-idto specify the parent task when there is no current task context.cockpit side-panel askopens the Ask tab, which lists every open Ask on this device and answers or closes them with the same choices, free-form input, per-question and whole answers, attachments, and media as the Ask window. It is where to answer whennotifications.askWindowisfalse. Pending secure input requests fromcockpit secret requestare listed there too, for entering the value; they are not Asks. Seecockpit help askandcockpit help secret.- The Browser panel always shows the current Browser Identity name and color. Switching it changes the task assignment and opens that Identity's isolated persistent partition.
- Prefer the side panel whenever a result is visual — a UI change, a diff review, a generated image, a report page.
Successful agent display requests leave a compact card in the task chat on Desktop and PWA. The card records the resolved target on this host and validates its host/task reference when opened; no prose link is needed. Desktop reopens the matching side panel. PWA opens that target in its existing task panel when the user taps the card, without switching away from a document on arrival. Closing the panel preserves the chat position and draft.
HTML cards refer to the saved Surface ID. Files and diffs show current content; Browser cards refer to the same host Identity, session, and tab, not a URL opened in the phone's browser. Deleted or unavailable targets report an error instead of opening another target. An Explorer card is checked against the task's current folders when it is opened, and a folder removed from the project is reported instead of shown. Display success means the host accepted the request, not that every device rendered it. Existing HTML unread notices are unchanged. Closing, resizing, manual panel selection, and reopening a card do not create another card. A transport retry reuses the operation ID; a new invocation can intentionally present the same target again.
HTML surfaces can opt into isolated local JavaScript with <meta name="cockpit-scripts" content="isolated"> on Desktop and PWA. External communication stays blocked and only explicit user actions can send bounded messages to the owning task. See cockpit help html for the example and restrictions.
HTTP errors exit 1 and preserve the server's error code and local instance.