CLI Reference

Every plexi command and flag.

Generated Tracks the alpha branch, so it can be ahead of the release you have installed.

On this page

The plexi CLI is the primary way to interact with a running Plexi instance from the terminal, and to manage workspaces and local apps from outside the UI. This reference is generated from the complete public command inventory; hidden implementation commands are omitted, and beta-only entries are labelled where they appear.

Stable v1 covers the tiling host, panes, subcontexts, status hooks, Quick Note, local app runtime, and CLI/MCP app wrappers. Assistant, marketplace, MCP client, and routine surfaces are beta-gated and do not appear in stable help. Use plexi-beta or an explicit worktree channel only when testing those gated surfaces.

Each channel has its own binary, profile (~/.plexi, ~/.plexi-alpha, ~/.plexi-beta), and workspace directory (<repo>/.plexi, <repo>/.plexi-alpha, <repo>/.plexi-beta). A channel-named binary always targets its own profile and workspace directory; the bare plexi binary honors an explicit PLEXI_SOCKET / PLEXI_CHANNEL when run inside a Plexi pane.

plexi view

Discover, open, and render plugin views

SubcommandDescription
listList declared views of installed plugins
openOpen a plugin or tool in a new pane
renderRender a plugin headlessly (JSON frame tree by default, or PNG with —png)

plexi view list

List declared views of installed plugins

plexi view open

Open a plugin or tool in a new pane.

Pass a plugin id (e.g. plexi view open calc) or a path to a plugin directory containing a manifest.toml. Use --mcp to wrap an MCP server, or --cli to open any CLI tool with a Plexi UI.

Default placement is a sibling split to the right — the calling pane is never taken over. Pass a direction flag (—down/—left/—up/—right), —tab, or —window to override; the plugin’s manifest [launch] placement applies when no flag is given.

Flag / ArgTypeRequiredDescription
<type_id>stringnoView id, default plugin id, or local path to open (mutually exclusive with —mcp and —cli)
--mcpstring (repeatable)noExplore a configured stdio MCP server in a Plexi pane. Example: plexi view open —mcp filesystem
--clistringnoWrap a CLI tool in a Plexi pane with a visual UI. Example: plexi view open —cli git
--down / -dflagnoSplit below
--left / -lflagnoSplit left
--up / -uflagnoSplit up
--right / -rflagnoSplit right
--tabflagnoNew tab
--windowflagnoNew window
--splitstringnoSplit direction or placement (down, left, up, right, tab, window)
--fromstringnoOpen the new pane relative to this pane id or name. Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the focused pane
<extra_args>string (repeatable)noExtra arguments passed through to the plugin (only valid with a plugin id)

plexi view render

Render a plugin headlessly (JSON frame tree by default, or PNG with —png).

The JSON output lists, under “layout”, the rect each node painted at this size, the visible part of it, and whether its text was cut or wrapped mid-word.

Flag / ArgTypeRequiredDescription
<plugin>stringyesView id, default plugin id, or local path to render (e.g. “calc” or ”./my-plugin”)
--sizestringnoImage dimensions as WxH (e.g. 500x500) Default: 800x600.
--statestringnoPre-seed the plugin’s state from a JSON file before rendering. A plugin with one [state] scope takes a flat object, for example {“count”: 3}. A plugin that declares several scopes takes an object keyed by scope name, for example {“context”: {…}, “global”: {…}}.
--outputstringnoWhere to save the output (default: stdout)
--pngflagnoRender to a PNG image instead of JSON (default: JSON)

plexi open

Open a file or directory in the Plexi view that handles it.

plexi open is the shorthand for plexi file open; both send the same request. PATH is always a file path, never a view id: plexi open git opens a file named git. A relative path resolves against the current directory. Put -- before a name that starts with -.

A directory opens in Explorer. A file opens with your [file_handlers] association, then a plugin that declares its type, then the built-in media players, then the text editor for text. The new pane opens right of the calling pane unless a placement flag says otherwise.

Prints the pane id. With —json, prints one receipt: status, path, handler, matched_by, context_id, pane_id, placement, focused. A refusal exits 1 with an error_code such as not_found, no_handler or stale_caller.

Example: plexi open README.md Example: plexi file open docs —down —no-focus

Flag / ArgTypeRequiredDescription
<path>stringyesFile or directory to open
--right / -rflagnoSplit right (the default)
--left / -lflagnoSplit left
--up / -uflagnoSplit above
--down / -dflagnoSplit below
--tabflagnoNew tab beside the anchor pane
--windowflagnoNew window in the anchor pane’s context
--splitstringnoPlacement by name
--fromstringnoPlace the new pane relative to this pane id or name instead of the calling pane. It does not change what PATH means
--no-focusflagnoOpen without moving focus

plexi file

Open files in Plexi

SubcommandDescription
openOpen a file or directory in the Plexi view that handles it

plexi file open

Open a file or directory in the Plexi view that handles it.

plexi open is the shorthand for plexi file open; both send the same request. PATH is always a file path, never a view id: plexi open git opens a file named git. A relative path resolves against the current directory. Put -- before a name that starts with -.

A directory opens in Explorer. A file opens with your [file_handlers] association, then a plugin that declares its type, then the built-in media players, then the text editor for text. The new pane opens right of the calling pane unless a placement flag says otherwise.

Prints the pane id. With —json, prints one receipt: status, path, handler, matched_by, context_id, pane_id, placement, focused. A refusal exits 1 with an error_code such as not_found, no_handler or stale_caller.

Example: plexi open README.md Example: plexi file open docs —down —no-focus

Flag / ArgTypeRequiredDescription
<path>stringyesFile or directory to open
--right / -rflagnoSplit right (the default)
--left / -lflagnoSplit left
--up / -uflagnoSplit above
--down / -dflagnoSplit below
--tabflagnoNew tab beside the anchor pane
--windowflagnoNew window in the anchor pane’s context
--splitstringnoPlacement by name
--fromstringnoPlace the new pane relative to this pane id or name instead of the calling pane. It does not change what PATH means
--no-focusflagnoOpen without moving focus

plexi lease

Acquire capacity before starting work (paused: exit 2)

Acquire process-lifetime capacity before starting work. Pauses exit with code 2.

SubcommandDescription
acquireAcquire one slot. The calling shell owns it by default; no work is queued
releaseRelease this holder’s leases (or just the named pool)

plexi lease acquire

Acquire one slot. The calling shell owns it by default; no work is queued

Flag / ArgTypeRequiredDescription
<name>stringyes
--maxstringyes
--pidstringnoHolder PID; must be this CLI or one of its ancestors

plexi lease release

Release this holder’s leases (or just the named pool)

Flag / ArgTypeRequiredDescription
<name>stringno
--pidstringno

plexi assistant

Submit a text turn to the running host Assistant

SubcommandDescription
sendSubmit through the same composer, model, and permission path as the desktop Assistant
toolRun one Assistant host tool through the host permission gate
permissionObserve and resolve pending permission requests. This is not plexi agent request

plexi assistant send

Submit through the same composer, model, and permission path as the desktop Assistant

Flag / ArgTypeRequiredDescription
--textstringnoPrompt text. Omitted when --status-for only reads a pending turn
--request-idstringno
--pane-idstringnoTarget pane id or name
--context-idstringnoTarget context id or name
--conversationstringnoCaller-owned conversation identifier. Omit to start a new conversation that is not the desktop transcript
--desktopflagnoAppend this turn to the desktop Assistant conversation
--status-forstringnoRead the outcome of a turn that already returned waiting_for_permission. Does not submit a new prompt
--clientstringnoLedger client tag for this run. Omitted uses [ai] client
--kindstringnoLedger run kind: system or output. Omitted means output

plexi assistant tool

Run one Assistant host tool through the host permission gate.

Example: plexi assistant tool host.files.edit —input ’{“path”:“/tmp/note.md”,“old_string”:“a”,“new_string”:“b”}‘

Flag / ArgTypeRequiredDescription
<name>stringyesTool name, for example host.editors.list or host.files.edit
--inputstringyesJSON object passed as the tool input

plexi assistant permission

Observe and resolve pending permission requests. This is not plexi agent request

SubcommandDescription
listList pending permission requests as JSON
showShow one pending permission request as JSON
resolveResolve one pending request: once, session, always, or deny. The host refuses every choice from the terminal

plexi assistant permission list

List pending permission requests as JSON

plexi assistant permission show

Show one pending permission request as JSON

Flag / ArgTypeRequiredDescription
<id>stringyes

plexi assistant permission resolve

Resolve one pending request: once, session, always, or deny. The host refuses every choice from the terminal

Flag / ArgTypeRequiredDescription
<id>stringyes
--choicestringyes

plexi agents-dashboard

Show every registered agent and its runs

Show every registered agent and its runs. Cancel finishes an active run.

The rows come from the agents API agent records and runs. open shows the same projection in a pane. cancel stops that run. resolve and allow never grant, and an agent pane is refused.

Example: plexi agents-dashboard —json Example: plexi agents-dashboard —follow Example: plexi agents-dashboard open Example: plexi agents-dashboard cancel run_example

SubcommandDescription
openOpen the command view pane in the active context
cancelStop a live run before its next tool call
resolveResolve a pending approval. An agent pane is refused, and this command does not grant
allowRecord an allow. An agent pane is refused, and this command does not grant

plexi agents-dashboard open

Open the command view pane in the active context

plexi agents-dashboard cancel

Stop a live run before its next tool call.

Example: plexi agents-dashboard cancel run_example

Flag / ArgTypeRequiredDescription
<run>stringyesRun id from agents-dashboard --json

plexi agents-dashboard resolve

Resolve a pending approval. An agent pane is refused, and this command does not grant.

Example: plexi agents-dashboard resolve pending_example

Flag / ArgTypeRequiredDescription
<id>stringyesPending request id

plexi agents-dashboard allow

Record an allow. An agent pane is refused, and this command does not grant.

Example: plexi agents-dashboard allow —tool assistant.turn

Flag / ArgTypeRequiredDescription
--toolstringnoTool name. Ignored. The command does not write a grant

plexi run

Run a named command from commands.toml or a global script

Run a named command from <repo>/.plexi-<channel>/commands.toml or ~/.plexi-<channel>/commands.toml (or global scripts).

Resolution and precedence rules:

(1) Global tier: config_dir()/commands.toml (~/.plexi-alpha/commands.toml on alpha, ~/.plexi-beta/commands.toml on beta, ~/.plexi/commands.toml on stable) plus executable files in config_dir()/scripts/ (~/.plexi-<channel>/scripts/, or ~/.plexi/scripts/ on stable).

(2) Workspace tier: <workspace>/.plexi-<channel>/commands.toml (<workspace>/.plexi/commands.toml on stable), where <workspace> is the nearest ancestor of the starting cwd containing a .plexi-<channel>/ directory (.plexi/ on stable) via resolve_workspace_root_stopping_at. The upward walk stops at $HOME and the passwd login home directory so ~ is never treated as a workspace. Fallback (resolve_commands_workspace_root): cwd itself when cwd/.plexi-<channel>/commands.toml (or cwd/.plexi/commands.toml on stable) exists and is distinct from the global commands.toml.

(3) Starting directory by surface: plexi run in a terminal uses the shell’s cwd. The command palette (Cmd+P) uses the focused pane’s cwd, then falls back to the active context root (effective_commands_workspace_root); Edit commands opens that workspace’s commands.toml (creating it from template if absent), or the global commands.toml when outside a workspace. [keys] "<chord>" = "run:<name>" bindings in ~/.plexi-<channel>/config.toml (or <repo>/.plexi-<channel>/config.toml; ~/.plexi/config.toml on stable) use the adopted/host workspace root, falling back to the active context root (queue_user_command, validated by plexi config check against reserved shortcuts).

(4) Precedence: workspace commands.toml > global commands.toml > global scripts/, merged by command name. plexi run with no arguments lists both scopes ([workspace] and [global]); --json prints [{name, scope, description, run, steps, secrets}] (secret names only, never values). Any secrets listed in a command definition are injected as environment variables automatically when the command runs.

(5) Live reload: commands.toml and scripts/ are re-read from disk on every command palette open and every plexi run or keybinding invocation — no host restart is needed.

Multi-step commands (steps = [...]) execute each Plexi CLI invocation or shell snippet sequentially, substituting $1, $2, … and $@ from extra arguments, and stop at the first failing step with step <i>/<n> failed: <cmd> (exit <code>).

Example: plexi run dev Example: plexi run play Example: plexi run —json

Flag / ArgTypeRequiredDescription
<command>stringnoCommand name to run (omit to list available commands)
<extra_args>string (repeatable)noExtra arguments forwarded to the command as $1, $2, … and $@ positional params

plexi workspace

Set up a .plexi/ workspace in your project folder.

Run this once inside your project directory to enable workspace-scoped secrets and commands.

SubcommandDescription
initSet up a .plexi/ workspace in the current directory
cleanRemove pane slot files for panes that are no longer open

plexi workspace init

Set up a .plexi/ workspace in the current directory.

Run this once inside your project folder. It creates <repo>/.plexi-<channel>/ (or <repo>/.plexi/ on stable) with workspace.toml, secrets.toml, plugins.toml, and commands.toml so that secrets, plugins, and commands are scoped to this project.

plexi workspace clean

Remove pane slot files for panes that are no longer open

Flag / ArgTypeRequiredDescription
--dry-runflagnoPrint slot directories that would be removed without deleting them

plexi changes

Review an agent’s file edit before it is written

Preview and accept an agent’s file edit before it is written.

propose stores a change set and does not modify the file. preview prints the diff. accept writes it after the permission gate admits the same edit. If the file changed since propose, accept reports stale until refresh. revert restores a committed set.

SubcommandDescription
allowRefused: a terminal cannot allow an edit. Only a click in the Plexi window does; this command records nothing
proposePrepare an edit. The file is not modified
previewPrint the prepared diff and whether the set is stale
acceptWrite a pending change set after the permission gate admits it
refreshRebase a stale change set onto the file’s current text
revertRestore the file to the text from before accept
profilePrint this binary’s profile directory

plexi changes allow

Refused: a terminal cannot allow an edit. Only a click in the Plexi window does; this command records nothing

Flag / ArgTypeRequiredDescription
--agentstringyesAgent id the grant and the later audit row name
--filestringyesFile the edit applies to
--oldstringyesExact text to replace. It must occur once
--newstringyesReplacement text

plexi changes propose

Prepare an edit. The file is not modified

Flag / ArgTypeRequiredDescription
--agentstringyesAgent id recorded on the change set
--filestringyesFile the edit applies to
--oldstringyesExact text to replace. It must occur once
--newstringyesReplacement text

plexi changes preview

Print the prepared diff and whether the set is stale

Flag / ArgTypeRequiredDescription
<id>stringyesChange set id from propose

plexi changes accept

Write a pending change set after the permission gate admits it

Flag / ArgTypeRequiredDescription
<id>stringyesChange set id from propose

plexi changes refresh

Rebase a stale change set onto the file’s current text

Flag / ArgTypeRequiredDescription
<id>stringyesChange set id from propose

plexi changes revert

Restore the file to the text from before accept

Flag / ArgTypeRequiredDescription
<id>stringyesChange set id from propose

plexi changes profile

Print this binary’s profile directory.

Channel-suffixed binaries use their own directory (~/.plexi-pr-N). Scripts should ask here instead of assuming ~/.plexi.

plexi secret

Store and retrieve secrets (API keys, passwords, tokens).

Secrets use macOS Keychain or, on Linux, Secret Service with a labeled encrypted-file fallback. Global, workspace, and folder scopes share that Linux backend. See https://plexiapp.com/docs/secrets/#linux-storage for backend selection and legacy plaintext migration. Folder secrets are an experiment, off by default in V1. Enable with plexi experiments enable folder_secrets, then plexi host restart (add --yes from a pane on that host). secret set NAME --folder DIR binds a value to a directory. New human terminal panes opened there or below it can receive the value as an environment variable. Folder-secret grant/read commands are experimental and are not supported in V1.

Same-user native processes are not isolated from each other. A process running as this user can still read a value that a pane already holds. Folder secrets stop accidental injection into the wrong directory.

SubcommandDescription
setSave a secret to the platform secret store
getPrint a stored secret’s value to stdout
listShow stored secrets
deleteDelete a stored secret
rmRemove a folder-scoped secret
grantAsk for an allow on a folder secret. This command does not record one
readRead a folder secret after approval in the Plexi window
execRun a command with the environment a new terminal pane in --cwd receives, including folder secrets for that directory

plexi secret set

Save a secret to the platform secret store.

Plexi will prompt you to type the value (hidden). On macOS the secret is stored in the system keychain; on Linux it uses Secret Service or a labeled encrypted-file fallback. See https://plexiapp.com/docs/secrets/#linux-storage for storage and migration details. Export to terminals is opt-in in Secrets.

Use —from-env to read the value from an existing environment variable instead of typing it. Use —global to make the secret available across all projects, not just the current one.

Flag / ArgTypeRequiredDescription
<friendly_name>stringyesName for this secret — also the environment variable name it will be injected as
--from-envflagnoRead the value from the environment variable named FRIENDLY_NAME instead of prompting
--globalflagnoStore this secret globally so it’s available in all projects, not just this one
--aliasstringnoUse a different platform-store entry name than the canonical env var name. On macOS this can reuse an existing Keychain entry. Example: plexi secret set OPENAI_API_KEY —alias openai_personal
--folderstringnoBind the secret to this directory. The value is stored in the OS keychain (or the labeled encrypted-file fallback) and injected into new human terminal panes opened in this directory or a subdirectory. Requires experiment folder_secrets, off by default in V1. Enable: plexi experiments enable folder_secrets, then plexi host restart (add —yes from a pane on that host). Example: plexi secret set OPENAI_API_KEY —folder ~/code/client-a

plexi secret get

Print a stored secret’s value to stdout.

Looks up the secret for the current project first, then falls back to the global store. Use —global to read only from the global store.

Flag / ArgTypeRequiredDescription
<friendly_name>stringyesName of the secret to read
--globalflagnoRead from the global store only, skipping the project-level lookup

plexi secret list

Show stored secrets.

Inside a workspace, shows project secrets plus user-scope secrets. Outside a workspace, falls back to user-scope secrets. Use —global to show only user-scope secrets from any directory.

Flag / ArgTypeRequiredDescription
--contextstringnoList names in an explicit owned context (id, name or root). Agents need approval
--globalflagnoShow only globally-stored user-scope secrets

plexi secret delete

Delete a stored secret.

Use —global to delete a globally-stored secret (one stored with secret set --global). Without —global, deletes the workspace-scoped entry for the current project.

Flag / ArgTypeRequiredDescription
<friendly_name>stringyes
--globalflagnoDelete from the global store instead of the project-scoped store

plexi secret rm

Remove a folder-scoped secret

Flag / ArgTypeRequiredDescription
<name>stringyesEnvironment variable name
--folderstringyesDirectory the secret was bound to

plexi secret grant

Ask for an allow on a folder secret. This command does not record one.

Returns permission_denied and writes an audit row with the secret name and folder, never the value. This process does not record an allow. An agent pane cannot grant itself a secret, including a secret bound to another folder.

Flag / ArgTypeRequiredDescription
<name>stringyesEnvironment variable name
--agentstringnoAgent id. Stored as agent:<id>
--pluginstringnoPlugin id. Stored as plugin:<id>
--folderstringnoDirectory the secret was bound to. Required when the name exists in more than one folder

plexi secret read

Read a folder secret after approval in the Plexi window

Flag / ArgTypeRequiredDescription
<name>stringyesEnvironment variable name
--folderstringnoDirectory holding the secret. Defaults to the nearest enclosing match, or the only matching folder available to the caller

plexi secret exec

Run a command with the environment a new terminal pane in --cwd receives, including folder secrets for that directory.

Refused with permission_denied when the caller is a pane agent, including a child of that pane that cleared PLEXI_PANE_ID. The command is not started and no secret value is printed. Same-user native processes are not isolated from each other.

Flag / ArgTypeRequiredDescription
--cwdstringyesWorking directory of the spawned command, and the pane cwd used for injection
<command>string (repeatable)noCommand and arguments

plexi routine

Manage workspace routines — scheduled shell commands.

Routines are declared in routines.toml inside the workspace channel directory — {workspace_channel_dir}/routines.toml, e.g. .plexi-alpha/routines.toml on the alpha channel — and run automatically on schedule. Requires Plexi to be running — there is no background daemon. Routines only fire while the host process is open.

Use plexi routine list to see configured routines, or plexi routine run <name> to fire one manually.

Beta-gated: Routines are a post-v1 beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

Routine file format ({workspace_channel_dir}/routines.toml)

The file lives in the workspace channel directory beside the rest of the workspace state — e.g. .plexi-alpha/routines.toml on the alpha channel.

[[routine]]
name      = "morning-sync"
command   = "./scripts/sync.sh"
schedule  = "daily at 09:00"
context   = "work"   # optional: fires into this context wherever it is; skipped if no context by that name exists
ephemeral = true     # optional: close the spawned pane when the command exits
enabled   = false    # optional: keep the routine but never fire it (`plexi routine disable`)

plexi routine add / remove / enable / disable edit this file for you, validating the schedule against the same parser the scheduler uses and preserving hand-written comments.

A routine never stacks panes: while the previous run’s pane is still alive, due fires are skipped (with one notification per skip streak), and the routine fires again on the first tick after that run ends. Ephemeral panes close themselves when the command exits; a non-ephemeral pane holds its routine until its shell session ends or the pane is closed.

Schedule formats

FormatExample
every N seconds (or Ns)every 30 seconds
every N minutes (or Nm)every 5 minutes
every N hours (or Nh)every 2 hours
every minute / every hourevery minute
daily at HH:MMdaily at 09:00
weekdays at HH:MMweekdays at 09:00
weekends at HH:MMweekends at 10:30am
weekly on <day> at HH:MMweekly on monday at 09:00
monthly on N at HH:MMmonthly on 1 at 08:00
5-field cron m h dom mon dow0 9 * * 1-5

Singular unit names (every 1 minute) and am/pm times (daily at 9am) are accepted; day names take short or full spellings (mon / monday).

SubcommandDescription
listList routines defined in the workspace’s routines.toml with their schedule and next fire time
runManually trigger a named routine from the workspace’s routines.toml
addAdd a routine to the workspace’s routines.toml
removeRemove a routine from the workspace’s routines.toml
enableRe-enable a disabled routine (removes its enabled = false key)
disableDisable a routine without deleting it (sets enabled = false; it never fires until re-enabled)

plexi routine list

List routines defined in the workspace’s routines.toml with their schedule and next fire time

plexi routine run

Manually trigger a named routine from the workspace’s routines.toml.

The routine fires exactly like a scheduled run: into its configured context when one is named (erroring if that context does not exist), otherwise into the caller’s context.

Flag / ArgTypeRequiredDescription
<name>stringyesName of the routine to run
--forceflagnoFire the routine even when it is disabled

plexi routine add

Add a routine to the workspace’s routines.toml.

The schedule is validated against the same parser the scheduler uses, so an accepted routine is guaranteed to fire. Hand-written comments elsewhere in the file are preserved.

Flag / ArgTypeRequiredDescription
<name>stringyesUnique name for the routine
--commandstringyesShell command the routine runs
--schedulestringyesWhen to run — e.g. “every 30m”, “daily at 09:00”, “0 9 * * 1-5”
--contextstringnoContext to fire into (default: the active context at fire time)
--ephemeralflagnoClose the spawned pane when the command exits

plexi routine remove

Remove a routine from the workspace’s routines.toml

Flag / ArgTypeRequiredDescription
<name>stringyesName of the routine to remove

plexi routine enable

Re-enable a disabled routine (removes its enabled = false key)

Flag / ArgTypeRequiredDescription
<name>stringyesName of the routine to enable

plexi routine disable

Disable a routine without deleting it (sets enabled = false; it never fires until re-enabled)

Flag / ArgTypeRequiredDescription
<name>stringyesName of the routine to disable

plexi agent

Report agent status and install status hooks

Report agent status and completion, and install status hooks. Agent definitions, spawning and teams need the agent_mesh experiment.

With agent_mesh on, an agent is a directory containing AGENT.md (persona / system prompt) and settings.toml ([agent] metadata + a [harness] table naming the CLI the agent runs on).

Two tiers exist, and workspace definitions shadow global ones with the same name:

  • Workspace: <workspace>/.plexi/agents/<name>/
  • Global: ~/.plexi-<channel>/agents/<name>/ (pass --global to create)

The agent model — harness vs agent, identity vs authority, lifetimes — is documented in src/agent/AGENTS.md.

End-to-end agent workflow (needs agent_mesh): plexi agent create researcher —cli pi —model openrouter/~z-ai/glm-flash-latest
—persona “You are a researcher.”
—result-schema ’{“type”:“object”,“required”:[“answer”],“properties”:{“answer”:{“type”:“string”}}}’ PANE=$(plexi agent spawn researcher —task “Summarize AgentRegistry”) plexi agent wait “$PANE” —timeout 300

agent start without a first message and task-seeded agent spawn are both interactive adapter launches; only an explicitly configured Script job is one-shot. Spawn returns immediately with a pane id, before the agent is done. Wait in bounded slices with plexi agent wait without capture/send polling. Exit 0 means done; exit 2 means report progress and re-run the same wait; exit 1 is an error to inspect. Never use one long wait or respawn on timeout.

SubcommandDescription
teamInspect or run a stored team of independent ranking agents.
nextFocus the next live agent needing attention (needs-you, blocked, done-unseen)
fleetShow tasks and their workers, ordered by attention, with blocking reasons
createCreate a new agent definition (AGENT.md + settings.toml) in the workspace or global tier.
flagsShow supported custom harness flags and safety rules for an agent or adapter
listList active agents from both workspace and global tiers
showShow the resolved definition for <name>, its directory path, and its exact spawn command
callCall an agent role and return its validated completion or blocking question as JSON
messageReply through a child agent’s structured mailbox
handoffTransfer the current task to a permitted successor role
startStart an interactive agent session in a new pane from the agent registry (<workspace>/.plexi/agents/<name>/ or global)
openOpen a named agent: focus it if a pane is running it, else resume its last chat, else start a new one
new-chatStart a new chat with a named agent, archiving its current chat
spawnSpawn an agent from the agent registry (<workspace>/.plexi/agents/<name>/ or global)
doneValidate a worker’s structured result against its schema, write completion slots, and exit cleanly
resultRead a completed agent’s persisted result (RESULT.md or result.json with --json)
waitWait for one or more child agent panes to finish via plexi agent done and pull their results
askEscalate a blocking question to the parent master agent (Tier 1 Blocked state)
reportReport agent state for this pane to the host
statusShow current agent state for all panes
historyShow closed agent runs and sessions from ~/.plexi-<channel>/agent_history.jsonl
reopenReopen a closed agent run or session from agent_history.jsonl in its saved working directory
hookInstall or uninstall agent hook integrations

plexi agent team

Inspect or run a stored team of independent ranking agents.

Team v0 TOML is resolved from workspace channel teams/.toml, then profile teams/.toml, then built-in consult-experts. Fields: version = 0; options = [“Proceed”, “Experiment”, “Defer”]. Each [[members]] has role, harness (pi/claude/codex/agy/script), grants = [“agents.ping=allow”, “agents.review=deny”], optional model. Script members require command: a shell command whose stdout is exactly {“ranking”:[“Proceed”,“Experiment”,“Defer”],“rationale”:“why”}. Scripts receive PLEXI_AGENT_TASK, PLEXI_TEAM_OPTIONS and PLEXI_TEAM_RUN_ID. Real harnesses report the same JSON through agent done. At least three members independently rank every option once. Borda awards N-1 down to 0 points. Optional tie_break = “Defer” selects a tied leader; default: last option. If that option is not tied, use the last tied option. Optional quorum = 2 requires that many valid ballots; default: all members. The host always writes RESULT.md with COMPLETE, PARTIAL, or FAILED status, member outcomes and valid ballots. Below quorum there is no winner. Failed/timed-out member panes stay open for inspection. Grants use existing delegation admission; a team is not authority. Format v0 may change. consult-experts uses pi, claude and codex by default.

SubcommandDescription
showShow the resolved v0 team, including roles, harnesses, options and grants
runRun independent team members in one task and wait for RESULT.md

plexi agent team show

Show the resolved v0 team, including roles, harnesses, options and grants

Flag / ArgTypeRequiredDescription
<name>stringyes

plexi agent team run

Run independent team members in one task and wait for RESULT.md

Flag / ArgTypeRequiredDescription
<name>stringyes
--questionstringyes
--outstringnoOutput directory (default: team-results/ in a workspace, or the channel profile’s sessions/teams/ outside one)
--optionstring (repeatable)noReplace the stored options; repeat for each option (at least two)
--timeoutstringnoHost-side deadline in seconds; unfinished members are reported as timed out Default: 600.

plexi agent next

Focus the next live agent needing attention (needs-you, blocked, done-unseen)

plexi agent fleet

Show tasks and their workers, ordered by attention, with blocking reasons

SubcommandDescription
dismissDismiss a failed, stalled, or completed agent run from the fleet view while keeping it in agent history

plexi agent fleet dismiss

Dismiss a failed, stalled, or completed agent run from the fleet view while keeping it in agent history

Flag / ArgTypeRequiredDescription
<target>stringnoPane ID (#215 or 215) to dismiss (omit when --all-failed is set)
--all-failedflagnoDismiss all failed, stalled, and exited-without-report runs

plexi agent create

Create a new agent definition (AGENT.md + settings.toml) in the workspace or global tier.

Writes <workspace>/.plexi/agents/<name>/ (or ~/.plexi-<channel>/agents/<name>/ with --global) and validates the directory through AgentDefinition::load_dir. Refuses to overwrite an existing agent directory.

Complete settings.toml example:

[agent]
id = "researcher"
display_name = "Researcher"
description = "Fast codebase researcher"

[harness]
cli = "pi"
model = "openrouter/~z-ai/glm-flash-latest"
fallback = "claude"
ephemeral = true
result_schema = '{"type":"object","required":["answer"],"properties":{"answer":{"type":"string"}}}'
Flag / ArgTypeRequiredDescription
<name>stringyesAgent slug (a-z, 0-9, -)
--clistringyesCLI harness to launch (pi, claude, codex, agy, or script). Interactive harnesses (pi, claude, codex, agy) remain interactive in start/spawn; only explicit script jobs are one-shot
--modelstringnoModel identifier passed verbatim via --model
--fallbackstringnoFallback CLI harness when the primary binary is not on PATH (pi, claude, codex, agy, script)
--descriptionstringnoShort human-readable description of the agent’s role
--personastringnoInline persona text written to AGENT.md (mutually exclusive with --persona-file)
--persona-filestringnoPath to a markdown file whose contents are written to AGENT.md (mutually exclusive with --persona)
--result-schemastringnoOptional JSON Schema string or path to a schema file enforced on plexi agent done
--ephemeralflagnoAuto-close the agent’s pane on clean exit (0)
--display-namestringnoHuman-facing display name in [agent] (defaults to <name>)
--globalflagnoWrite to the global profile registry (~/.plexi-<channel>/agents/<name>/) instead of the workspace
--cwdstringnoDirectory used to resolve the workspace root (defaults to current working directory)
--flagstring (repeatable)noOptional custom harness flag(s) passed to the adapter (can be repeated)

plexi agent flags

Show supported custom harness flags and safety rules for an agent or adapter.

When <target> is an agent slug, displays its resolved safe custom flags. When <target> is a harness adapter (pi, claude, codex, agy, script) or omitted, displays the adapter options inventory, reserved options, and security rules.

Example: plexi agent flags Example: plexi agent flags claude Example: plexi agent flags researcher

Flag / ArgTypeRequiredDescription
<target>stringnoAgent slug or harness adapter name (pi, claude, codex, agy, script)
--cwdstringnoDirectory used to resolve the workspace root (defaults to current working directory)

plexi agent list

List active agents from both workspace and global tiers.

Prints each agent’s name, tier (workspace or global), CLI + model (or assistant when no [harness] table is present), description, and whether it shadows a global agent.

Flag / ArgTypeRequiredDescription
--cwdstringnoDirectory used to resolve the workspace root (defaults to current working directory)

plexi agent show

Show the resolved definition for <name>, its directory path, and its exact spawn command

Flag / ArgTypeRequiredDescription
<name>stringyesAgent name to inspect
--cwdstringnoDirectory used to resolve the workspace root (defaults to current working directory)

plexi agent call

Call an agent role and return its validated completion or blocking question as JSON

Flag / ArgTypeRequiredDescription
<role>stringyes
--taskstringyes
--worktreestringnoCreate a managed worktree for the child
--asyncflagnoReturn the child pane ID immediately

plexi agent message

Reply through a child agent’s structured mailbox

Flag / ArgTypeRequiredDescription
<pane_id>stringyesTarget pane id or name
<text>stringyes
--waitflagnoWait for the child’s next completion or question

plexi agent handoff

Transfer the current task to a permitted successor role

Flag / ArgTypeRequiredDescription
<role>stringyes
--taskstringyes

plexi agent start

Start an interactive agent session in a new pane from the agent registry (<workspace>/.plexi/agents/<name>/ or global).

Resolves <name> by walking up from --cwd (or the current directory) to the project root (stopping at $HOME), then ~/.plexi-<channel>/agents/<name>/, then built-in. Launches the agent’s configured [harness] (pi, claude, codex, agy) interactively in the project directory with AGENT.md persona applied, the # Plexi worker contract, and PLEXI_* env set.

agent start without a first message and task-seeded agent spawn are both interactive adapter launches; only an explicitly configured Script job is one-shot. Child results report via plexi agent done and are collected with plexi agent wait without capture/send polling.

Example: plexi agent start researcher

Flag / ArgTypeRequiredDescription
<name>stringyesAgent name in <workspace>/.plexi/agents/<name>/ or ~/.plexi-<channel>/agents/<name>/
<prompt>stringnoOptional initial message to send in the interactive session
--messagestringnoOptional initial message to send in the interactive session
--cwdstringnoWorking directory for workspace lookup and the interactive agent pane

plexi agent open

Open a named agent: focus it if a pane is running it, else resume its last chat, else start a new one.

“Running” is any pane in any context, restored standby panes included. The last chat is the newest closed, non-ephemeral run of this agent in the same workspace, on the agent’s current harness, whose session the harness can still resume. Prints <outcome> <pane-id> where outcome is focused, resumed or started.

Example: plexi agent open researcher

Flag / ArgTypeRequiredDescription
<name>stringyesAgent name in <workspace>/.plexi/agents/<name>/ or ~/.plexi-<channel>/agents/<name>/
--cwdstringnoWorking directory for workspace lookup

plexi agent new-chat

Start a new chat with a named agent, archiving its current chat.

The current chat is the one agent open would return to. A pane holding it is closed; the chat stays in agent history and agent reopen <run-id> resumes it, but agent open no longer does. The new chat shares the agent’s memory folder. Prints new_chat <pane-id> [archived <run-id>].

Example: plexi agent new-chat researcher

Flag / ArgTypeRequiredDescription
<name>stringyesAgent name in <workspace>/.plexi/agents/<name>/ or ~/.plexi-<channel>/agents/<name>/
--cwdstringnoWorking directory for workspace lookup

plexi agent spawn

Spawn an agent from the agent registry (<workspace>/.plexi/agents/<name>/ or global).

Loads <name> through AgentRegistry (workspace shadowing global), refuses agents without a [harness] table, composes the CLI command with persona and # Plexi worker contract, and launches the worker pane. Codex workers (including calls and team members) use codex --sandbox workspace-write -c sandbox_workspace_write.network_access=true. They can write in their workspace and use the network; Plexi adds no profile writable root.

Task-seeded agent spawn and agent start without a first message are both interactive adapter launches; only an explicitly configured Script job is one-shot. Results report via plexi agent done and are collected with plexi agent wait or parent idle-batch delivery without capture/send polling.

Example: plexi agent spawn researcher —task “Audit auth module” —subcontext auth-audit —ephemeral

Flag / ArgTypeRequiredDescription
<name>stringyesAgent name in <workspace>/.plexi/agents/<name>/ or ~/.plexi-<channel>/agents/<name>/
--taskstringyesTask brief passed to the spawned agent harness
--subcontextstringnoSub-context name to spawn into
--ephemeralflagnoAuto-close the pane on clean exit (0) so the sub-context collapses when all workers finish
--fromstringnoPlace the worker beside this pane id or name. It does not change who spawned it
--cwdstringnoWorking directory for workspace lookup and the spawned worker pane

plexi agent done

Validate a worker’s structured result against its schema, write completion slots, and exit cleanly.

Validates --result against the pane’s result_schema (when present), writes the completed and summary pane slots, and transitions the pane to Idle so an ephemeral run can exit 0 and trigger sub-context auto-collapse.

Example: plexi agent done —result ’{“status”:“pass”}’ —summary “Auth audit complete”

Flag / ArgTypeRequiredDescription
--resultstringyesStructured JSON result payload
--summarystringnoHuman- and master-readable completion summary written to the summary slot
--pane-idstringnoTarget pane id or name (defaults to $PLEXI_PANE_ID)

plexi agent result

Read a completed agent’s persisted result (RESULT.md or result.json with --json).

Reads <workspace>/.plexi/results/<pane-or-run-id>/RESULT.md (and result.json), defaulting to the most recently completed agent result when <pane> is omitted.

Example: plexi agent result Example: plexi agent result 42 —json

Flag / ArgTypeRequiredDescription
<pane>stringnoPane ID, agent role name, or run/session ID (defaults to latest completed run)
--panestringnoPane ID, agent role name, or run/session ID (alias for positional <PANE>)

plexi agent wait

Wait for one or more child agent panes to finish via plexi agent done and pull their results.

Blocks until every specified child pane has reported completion (or exited/failed) or --timeout expires. Results pulled via agent wait are consumed so the host does not re-deliver them as a duplicate idle-batch turn to the parent pane.

Example: plexi agent wait 42 43 —timeout 300

Flag / ArgTypeRequiredDescription
<pane_ids>string (repeatable)yesChild pane IDs or names to wait for
--timeoutstringnoTimeout in seconds Default: 300.

plexi agent ask

Escalate a blocking question to the parent master agent (Tier 1 Blocked state).

Transitions this worker pane to Blocked, writes the question slot, and wakes the PLEXI_PARENT_PANE master agent waiting on plexi pane wait without filing a human-facing NeedsYou alert.

Example: plexi agent ask “Should we preserve the legacy v1 token endpoint?”

Flag / ArgTypeRequiredDescription
<question>stringyesQuestion text for the parent master agent
--pane-idstringnoTarget pane id or name (defaults to $PLEXI_PANE_ID)

plexi agent report

Report agent state for this pane to the host.

Called internally by hook scripts. Requires PLEXI_SOCKET and PLEXI_PANE_ID to be set in the environment.

Example: plexi agent report —state working —agent claude-code

Flag / ArgTypeRequiredDescription
--statestringyesState to report: working, blocked, needs_you, idle, interrupted, failed, or completed
--agentstringnoAgent name (e.g. “claude-code”) Default: unknown.
--detailstringnoActive tool detail (optional, from hook event JSON)
--session-idstringnoSession ID (optional, from hook event JSON)
--eventstringnoRaw provider lifecycle event, retained separately from the UI state
--blocked-reasonstringnoExplicit blocking reason; state-only callers remain supported

plexi agent status

Show current agent state for all panes.

Queries the host for all panes that have reported agent state via hooks. Formats as a table with pane ID, agent name, state, and session ID.

Example: plexi agent status Example: plexi agent status —blocked

Flag / ArgTypeRequiredDescription
--blockedflagnoShow only blocked panes
--workingflagnoShow only working panes
--idleflagnoShow only idle panes

plexi agent history

Show closed agent runs and sessions from ~/.plexi-<channel>/agent_history.jsonl.

Example: plexi agent history Example: plexi agent history —limit 20 —json

Flag / ArgTypeRequiredDescription
--limitstringnoMaximum number of recent closed runs to display (0 = all) Default: 50.

plexi agent reopen

Reopen a closed agent run or session from agent_history.jsonl in its saved working directory.

Resolves the matching entry by run_id or harness session_id and spawns a new pane running the harness’s resume command (claude --resume <id>, codex resume <id>, pi --session <id>, agy --resume <id>).

Example: plexi agent reopen sess-claude-42 Example: plexi agent reopen run-7-1729100000000

Flag / ArgTypeRequiredDescription
<target>stringyesRun ID (run-...) or harness session ID to reopen
--subcontextstringnoOptional sub-context name to reopen the session into

plexi agent hook

Install or uninstall agent hook integrations.

install: patches the selected agent config with lifecycle hook registrations, routing them to plexi agent report.

uninstall: removes all PLEXI hook entries from the selected agent config.

Example: plexi agent hook install —claude-code Example: plexi agent hook install —codex —pi Example: plexi agent hook uninstall —claude-code

SubcommandDescription
installInstall PLEXI agent-state hook integrations
uninstallRemove PLEXI agent-state hook integrations

plexi agent hook install

Install PLEXI agent-state hook integrations

Flag / ArgTypeRequiredDescription
--claude-codeflagnoInstall Claude Code hooks (PreToolUse, PostToolUse, SessionStart, UserPromptSubmit, PermissionRequest, Stop, StopFailure, SessionEnd)
--codexflagnoInstall Codex hooks (SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, Stop)
--piflagnoInstall Pi extension hooks (session, agent, and tool lifecycle events)

plexi agent hook uninstall

Remove PLEXI agent-state hook integrations

Flag / ArgTypeRequiredDescription
--claude-codeflagnoRemove Claude Code hooks
--codexflagnoRemove Codex hooks
--piflagnoRemove Pi extension hooks

plexi context

Manage the active context (folder and project scope)

Manage the active context (the folder and project scope tied to the current pane).

SubcommandDescription
renameRename a context (defaults to the calling pane’s context)
closeClose a context, requesting desktop confirmation when configured
parkPark a context and move focus to an unparked neighbor
unparkUnpark a context and focus it
newOpen a new context with an optional name
subCreate a sub-context under the current one, pre-populated with panes
openFocus the context at this folder, or create it. Defaults to the caller’s cwd
set-rootChange the caller’s context root (active context outside a pane); unknown ids fail
currentPrint the id and name of the current pane’s context as JSON
describeSet the caller’s context description (active context outside a pane)
zoomZoom into a sub-context by its context id or name
zoom-outZoom out of the current sub-context to the parent
pushPush a pane into a new sub-context
listList all open contexts as a JSON array

plexi context rename

Rename a context (defaults to the calling pane’s context)

Flag / ArgTypeRequiredDescription
<name>stringyes
--context-idstringnoTarget context id or name (defaults to the calling pane’s context)

plexi context close

Close a context, requesting desktop confirmation when configured

Flag / ArgTypeRequiredDescription
<context_id>stringnoTarget context id or name (defaults to the calling pane’s context)

plexi context park

Park a context and move focus to an unparked neighbor

Flag / ArgTypeRequiredDescription
<context_id>stringnoTarget context id or name (defaults to the calling pane’s context)

plexi context unpark

Unpark a context and focus it

Flag / ArgTypeRequiredDescription
<context_id>stringnoTarget context id or name (defaults to the calling pane’s context)

plexi context new

Open a new context with an optional name.

Examples: plexi context new “sprint” # top-level context plexi context new “sprint” —parent # child of current context (no-focus) plexi context new “sprint” —parent=main -d # child of “main”, portal splits below plexi context new “sprint” —parent —window “echo a” —window “echo b”

Flag / ArgTypeRequiredDescription
<name>stringnoName for the new context. Defaults to the directory basename
--pathstringnoRoot path for the new context. Defaults to current working directory
--parentstringnoCreate as a child of a context (the new context is its sub-context). Bare --parent uses the current context (reads PLEXI_CONTEXT_NAME from env); use --parent=<name> to target another context by name
--windowstring (repeatable)noCommand to run in each pre-populated window. Repeatable
--focusflagnoFocus (zoom into) the new sub-context after creation. Default: stay in current pane
--fromstringnoPane id or name to anchor the portal split at (requires —parent). Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the parent context’s focused pane
--down / -dflagnoSplit portal below instead of right (requires —parent)
--left / -lflagnoSplit portal left (requires —parent)
--up / -uflagnoSplit portal above (requires —parent)
--right / -rflagnoSplit portal right — explicit (default, requires —parent)

plexi context sub

Create a sub-context under the current one, pre-populated with panes.

One command spins up a scoped squad: N panes in a single tiled window inside the new sub-context, each running the same command (or its own). Unlike context new --parent --window, this creates exactly N panes — no spare terminal — and roots them at the caller’s cwd.

Examples: plexi context sub agentsquad —agents 3 —command cm plexi context sub review —agents 2 —command “cm review” —command “cm test” plexi context sub build —agents 4 —layout columns —focus

Flag / ArgTypeRequiredDescription
<name>stringyesName for the new sub-context
--pathstringnoRoot path for the sub-context. Defaults to the caller’s cwd
--agentsstringnoNumber of panes to open inside the new sub-context Default: 1.
--commandstring (repeatable)noCommand to launch in each pane. Give it once to apply to every pane, or exactly —agents times to give each pane its own command
--layoutstringnoHow the panes are arranged inside the sub-context’s window. Defaults to tiled when the pane count fills a square grid (4, 9, …) and columns otherwise so no grid cell is left empty
--focusflagnoZoom into the new sub-context after creation. Default: stay put
--fromstringnoPane id or name to anchor the portal split at. Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the parent’s focused pane

plexi context open

Focus the context at this folder, or create it. Defaults to the caller’s cwd

Flag / ArgTypeRequiredDescription
<path>stringno

plexi context set-root

Change the caller’s context root (active context outside a pane); unknown ids fail

Flag / ArgTypeRequiredDescription
<path>stringno

plexi context current

Print the id and name of the current pane’s context as JSON

plexi context describe

Set the caller’s context description (active context outside a pane)

Flag / ArgTypeRequiredDescription
<text>stringyesDescription text

plexi context zoom

Zoom into a sub-context by its context id or name

Flag / ArgTypeRequiredDescription
<context_id>stringyesTarget context id or name

plexi context zoom-out

Zoom out of the current sub-context to the parent

plexi context push

Push a pane into a new sub-context.

Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the focused pane.

Flag / ArgTypeRequiredDescription
<name>stringnoName for the new sub-context. Defaults to the pane name
--pane-idstringnoPane id or name to push. Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the focused pane

plexi context list

List all open contexts as a JSON array

plexi plugin

Open, install, list, scaffold and inspect plugins

Manage your Plexi plugins — open, install, list, scaffold, and inspect.

SubcommandDescription
installInstall a plugin from a local path, a bundled plugin, or a pack file
uninstallRemove an installed plugin by id
listShow all installed plugins with their versions
pruneReport obsolete first-party pre-v3 plugins that launch-time reseeding quarantines
checkCheck a local plugin with manifest, scaffold metadata, SDK, and render-size checks
testRun a plugin’s PluginHarness tests with uv run --with pytest pytest tests/
infoShow details about an installed plugin: manifest fields and tool status
stateRead or replace a file-backed plugin’s state document
initCreate a new plugin from a template, or adopt an existing plugin directory
validateCheck a Plexi plugin directory or .plexipkg package for errors before publishing or installing
inspectShow the trust sheet for a local plugin directory or .plexipkg package
packageBuild a distributable .plexipkg package from a plugin directory
freezeExport your currently installed plugins as a single TOML snapshot for sharing or backup
publishValidate, package, and submit a plugin to the Plexi marketplace
browseBrowse every public plugin in the hosted marketplace
searchSearch the public marketplace catalog
updatePull git-backed installed plugins to their latest source revision
callCall a tool a plugin exposes and print its JSON result
toolsSnapshot the live tool registry exposed by running view panes in the current context

plexi plugin install

Install a plugin from a local path, a bundled plugin, or a pack file.

Local path: plexi plugin install ./my-plugin — copies the plugin dir into Plexi’s store; Plexi asks you to allow it in its window the first time it opens. Bundled plugin: plexi plugin install local:<name> — extracts a plugin built into this Plexi. Pack file: plexi plugin install --pack core — installs from a pack file or the built-in core pack. Workspace pack: plexi plugin install (no args) — installs from <repo>/.plexi-<channel>/plugins.toml (or <repo>/.plexi/plugins.toml on stable). Remote sources (github:, git+, marketplace ids, .plexipkg files, and pack entries naming them) are refused until third-party installs open.

Flag / ArgTypeRequiredDescription
<spec_or_path>stringnoSource to install: a local path or local:. Remote sources are refused. Omit to install from the workspace pack (<repo>/.plexi-<channel>/plugins.toml, or <repo>/.plexi/plugins.toml on stable)
--packstringnoInstall from a pack file or ‘core’
--refreshflagnoWith —pack: re-extract already-installed local: plugins from this binary’s embedded tree, replacing the installed copy. The update path for bundled core plugins on stable channels
--yes / -yflagnoSkip the trust-sheet confirmation prompt. Required for non-interactive (scripted) installs — without a terminal the install fails closed instead of proceeding silently. Confirms the install only: no permission is granted, and the plugin asks in the Plexi window when it first runs

plexi plugin uninstall

Remove an installed plugin by id.

Example: plexi plugin uninstall github-tree

Flag / ArgTypeRequiredDescription
<id>stringyesPlugin id to remove (use plexi plugin list to see installed ids)
--yes / -yflagnoSkip the confirmation prompt

plexi plugin list

Show all installed plugins with their versions

plexi plugin prune

Report obsolete first-party pre-v3 plugins that launch-time reseeding quarantines

Flag / ArgTypeRequiredDescription
--dry-runflagnoShow candidates without removing anything

plexi plugin check

Check a local plugin with manifest, scaffold metadata, SDK, and render-size checks.

This is the compiler-like gate for generated Plexi plugins. It checks the manifest capability IDs and command declarations, rejects unavailable contributions, warns on missing or stale plexi.scaffold.toml, inspects Python SDK usage without importing plugin code, and renders the plugin at small and normal pane sizes. Run it with an explicit alpha or PR channel so the SDK/profile under test is not ambient.

Flag / ArgTypeRequiredDescription
<path>stringnoLocal plugin directory to check (default: current directory) Default: ..
--sizestring (repeatable)noRender size to check as WxH. Repeat to override the default matrix
--png-dirstringnoWrite PNG snapshots for each checked size into this directory

plexi plugin test

Run a plugin’s PluginHarness tests with uv run --with pytest pytest tests/.

Runs the Python tests in the plugin’s tests/ directory (the tests/test_plugin.py scaffolded by plexi plugin init). PluginHarness spawns the plugin as a real subprocess and checks it renders without overlap; see plexi_sdk/testing.py. Exits nonzero on failure so CI can gate on it.

Flag / ArgTypeRequiredDescription
<path>stringnoPlugin directory to test (default: current directory) Default: ..
--snapshotflagnoUpdate stored snapshots instead of comparing against them

plexi plugin info

Show details about an installed plugin: manifest fields and tool status.

Populates tools from the live tool registry when a pane of this plugin is running in the current context; otherwise labels the section as manifest-only (or static source scan) so an unopened plugin is never misreported as declaring no tools. Run plexi plugin tools to snapshot all live tools in the current context.

Flag / ArgTypeRequiredDescription
<id>stringyes

plexi plugin state

Read or replace a file-backed plugin’s state document.

Only plugins that declare a [state] section are addressable. The state path uses the pane’s current host context. Outside a pane, context scope uses the nearest ancestor of cwd containing .plexi; no anchor is an error. Global scope uses the shared user-data tier. Spawn-time root env vars are ignored.

SubcommandDescription
getPrint a plugin’s current state document to stdout
setReplace a plugin’s state document, reading from a file or stdin

plexi plugin state get

Print a plugin’s current state document to stdout

Flag / ArgTypeRequiredDescription
<plugin>stringyesPlugin id (from plexi plugin list)
--scopestringnoWhich declared scope to read. Defaults to the plugin’s first declared scope; a scope the plugin did not declare is an error

plexi plugin state set

Replace a plugin’s state document, reading from a file or stdin

Flag / ArgTypeRequiredDescription
<plugin>stringyesPlugin id (from plexi plugin list)
<file>stringnoFile to read the new document from. Reads stdin when omitted
--scopestringnoWhich declared scope to write. Defaults to the plugin’s first declared scope; a scope the plugin did not declare is an error

plexi plugin init

Create a new plugin from a template, or adopt an existing plugin directory.

Scaffolds the folder structure and files you need to build a Plexi view: manifest.toml, main.py, tests/test_plugin.py, AGENTS.md, .gitignore, and plexi.scaffold.toml drift metadata.

Pass --adopt <dir> (or --adopt inside a plugin directory) to write or refresh plexi.scaffold.toml for a pre-existing plugin without creating or modifying any source files.

By default, a newly scaffolded plugin is placed in your workspace’s plugin directory. If no workspace is detected, pass —global to scaffold into the global registry.

Use —open to launch it in a split-right pane after scaffolding. See sdk/python/AUTHORING.md for the canonical authoring guide.

Flag / ArgTypeRequiredDescription
<name>stringno
--adoptflagnoWrite or refresh plexi.scaffold.toml for an existing plugin directory without altering source files
--wasmstringnoCreate a Rust WASM component plugin with the Plexi WASM SDK
--langstringnoPlugin language/template: python (declarative UI). Use --wasm <name> for a Rust WASM component Default: python.
--globalflagnoScaffold into the global plugin registry instead of the workspace
--openflagnoOpen the plugin in a split-right pane after scaffolding
--fromstringnoOpen the new pane relative to this pane id or name. Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the focused pane

plexi plugin validate

Check a Plexi plugin directory or .plexipkg package for errors before publishing or installing.

A directory is validated in place. A .plexipkg file is extracted to a temp dir with path-safety checks and verified end-to-end: descriptor, content hashes, manifest, entry point, and capability strings.

Flag / ArgTypeRequiredDescription
<path>stringnoPlugin directory or .plexipkg file to check (default: current directory) Default: ..

plexi plugin inspect

Show the trust sheet for a local plugin directory or .plexipkg package.

Validates first (fail-closed), then prints what the plugin is, what runtime it uses with a blunt trust label, and every capability it declares — the same sheet shown before plexi plugin install proceeds.

Flag / ArgTypeRequiredDescription
<path>stringyesPlugin directory or .plexipkg file to inspect

plexi plugin package

Build a distributable .plexipkg package from a plugin directory.

Validates the directory first (fail-closed), then writes <id>-<version>.plexipkg containing the plugin files plus a generated PACKAGE.toml with per-file sha256 checksums.

Flag / ArgTypeRequiredDescription
<path>stringyesPlugin directory to package
--outstringnoOutput file path (default: ./-.plexipkg)

plexi plugin freeze

Export your currently installed plugins as a single TOML snapshot for sharing or backup.

Like pip freeze — captures exactly what’s installed so you can replay it later with plexi plugin install.

Flag / ArgTypeRequiredDescription
<path>stringyesDestination path for the TOML snapshot file

plexi plugin publish

Validate, package, and submit a plugin to the Plexi marketplace.

Reads the [marketplace] manifest section (publisher, visibility, price), validates the directory, builds a .plexipkg, and submits it. Without a configured [marketplace].submit_url the package is prepared locally but not uploaded — the artifact path is printed.

Beta-gated: Marketplace publishing and catalog browsing are beta surfaces. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

Flag / ArgTypeRequiredDescription
<path>stringnoPlugin directory to publish (default: current directory) Default: ..

plexi plugin browse

Browse every public plugin in the hosted marketplace

Beta-gated: Marketplace publishing and catalog browsing are beta surfaces. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

Search the public marketplace catalog

Beta-gated: Marketplace publishing and catalog browsing are beta surfaces. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

Flag / ArgTypeRequiredDescription
<query>stringyesSubstring matched against plugin id, name, description, and tags

plexi plugin update

Pull git-backed installed plugins to their latest source revision.

Canonical plugin update command. Resolves workspace-local plugins when run inside a workspace, and skips installed plugins that are not git checkouts.

Flag / ArgTypeRequiredDescription
<id>stringnoPlugin id to update (omit to update all installed plugins visible here)

plexi plugin call

Call a tool a plugin exposes and print its JSON result.

Runs through the same tool dispatcher the Assistant uses, scoped to the calling pane’s context (the active context when run outside a pane). The host stamps the caller identity from the pane credential or peer ancestry (pane:<id>). A missing pane is never the human user. The plugin sees that identity, never one taken from the input. Exits 1 with error: <message> when the tool or the plugin rejects the call.

Example: plexi plugin call chess chess.state Example: plexi plugin call chess chess.play —input ’{“game_id”:“game-1”,“expected_revision”:0,“operation_id”:“op-1”,“move”:“e2e4”}‘

Flag / ArgTypeRequiredDescription
<plugin_id>stringyesPlugin id that exposes the tool (from plexi plugin info)
<tool>stringyesTool name as the plugin declares it (e.g. chess.state)
--inputstringnoTool input as a JSON object Default: {}.
--panestringnoPane id or name that owns the tool when more than one instance of the plugin is open
--wait-approvedflagnoWait up to two minutes for desktop approval, then execute once

plexi plugin tools

Snapshot the live tool registry exposed by running view panes in the current context.

Reads the same context-scoped ToolDispatcher registry that agents and plexi plugin call see: exposed tool name (including <name>@<pane_id> disambiguation when multiple panes expose the same tool), owning plugin id and pane id, description, and full JSON input/output schemas.

Example: plexi plugin tools Example: plexi plugin tools —json Example: plexi plugin tools —plugin calc —json

Flag / ArgTypeRequiredDescription
--pluginstringnoFilter to tools exposed by this plugin id
--contextstringnoInspect a specific context id or name instead of the caller’s context

plexi account

Optional account that links this desktop to cloud features.

Free plugins install without an account. Login requires the accounts backend enabled ([marketplace].account_backend = "plexi"); otherwise it fails closed with a clear message.

Beta-gated: Marketplace account management is a beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

SubcommandDescription
statusShow whether you are logged in
loginLog in to your marketplace account via emailed sign-in link
logoutLog out and clear the local session

plexi account status

Show whether you are logged in

Beta-gated: Marketplace account management is a beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

plexi account login

Log in to your marketplace account via emailed sign-in link.

Runs the device-code flow: plexiapp.com emails a link, you click it in any browser, and the CLI stores the session. Magic-link login creates the account on first use — there is no separate signup.

Beta-gated: Marketplace account management is a beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

Flag / ArgTypeRequiredDescription
--emailstringnoAccount email (falls back to [marketplace].account_email in config)

plexi account logout

Log out and clear the local session

Beta-gated: Marketplace account management is a beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

plexi registry

Watch installed CLI tools for command and option changes

Watch installed CLI tools for changes to their available commands and options.

SubcommandDescription
watchCheck installed CLI tools for changes to their help output and update Plexi’s knowledge of them

plexi registry watch

Check installed CLI tools for changes to their help output and update Plexi’s knowledge of them

Flag / ArgTypeRequiredDescription
<cli>stringnoOnly check this one CLI tool instead of all of them

plexi pane

List, focus, send input to and capture panes

Control panes — list, focus, send input, capture output, and more.

Driving an agent in another pane (two commands, no sleeps, no capture polling): 1. Boot: ID=$(plexi pane new --agent <tier-alias> -n "<name>" --no-focus) Blocks until the agent TUI is idle; a printed id means ready-to-brief. 2. Brief: plexi pane send "$ID" "<brief>" --submit Settles the pane, presses Enter, and exits 0 only once the host confirms the prompt left the input line. 3. Wait: plexi pane wait "$ID" --until idle --timeout 300 (or plexi pane slot wait <slot> --pane-id "$ID" --until '<regex>')

For an ordinary shell command in a terminal pane, use plexi pane command <id> "<cmd>" --enter.

SubcommandDescription
actionSend a semantic action to a running view pane
layoutShow active workspace strip membership and geometry
zoomFocus a pane and toggle fullscreen zoom, or enter its sub-context
swapFocus a pane and swap it with a directional neighbor
waitWait for current idle, blocked, or exited state; print its lifecycle record. Exit 0 on match, 2 on timeout, 1 on invalid predicate or plumbing failure
eventsFollow brokered pane lifecycle records as NDJSON until interrupted
newOpen a terminal pane, the Agents pane (agents), or launch an agent with --agent
nameRename a pane
listList all open panes as a JSON array
treeShow the parent/child session provenance forest across open panes (pstree / ps --forest style)
focusMove the visible focus to a specific pane
heartbeatConfigure a host-owned recurring prompt for a terminal pane
closeClose a pane. Omit the pane id to close the pane you are currently in
sendType text into another pane as if it came from the keyboard, or pass --submit for host-confirmed prompt submission
selfPrint the id of the pane you are currently in
infoPrint details about a pane (default: the current pane, or the previously focused pane) as JSON
captureCapture the last N lines of a pane’s output as a JSON array
statusReport one composite working, idle, blocked, or unknown verdict as JSON
keySend a key press to a pane
dropDrop a local file or image URL onto a pane
clickInject a synthetic pointer click into a view pane, for driving canvas interaction without OS-level automation
dragDrag the pointer across a view pane through the production input path: press, N intermediate moves, release — delivered one frame at a time
commandSend an ordinary shell command to a terminal pane as if typed from the keyboard
stateReturn the current UI state of a pane as JSON
slotManage host-managed named file slots for a pane
messageSend and receive structured messages via a host-managed per-pane FIFO mailbox
resultRead a pane’s validated structured result

plexi pane action

Send a semantic action to a running view pane.

Unlike pane command (which sends raw text), pane action delivers a structured semantic event directly to the plugin’s event handler — no keystroke simulation.

Example: plexi pane action 42 refresh Example: plexi pane action 42 navigate-to /some/path

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name of the target view pane (from plexi pane list)
<action>stringyesAction name to invoke (e.g. “refresh”, “navigate-to”, “add-item”)
<args>string (repeatable)noOptional arguments forwarded to the action handler

plexi pane layout

Show active workspace strip membership and geometry

plexi pane zoom

Focus a pane and toggle fullscreen zoom, or enter its sub-context

Flag / ArgTypeRequiredDescription
<pane_id>stringnoTarget pane id or name (defaults to the calling pane)

plexi pane swap

Focus a pane and swap it with a directional neighbor

Flag / ArgTypeRequiredDescription
<direction>stringyes
--pane-idstringnoTarget pane id or name (defaults to the calling pane)

plexi pane wait

Wait for current idle, blocked, or exited state; print its lifecycle record. Exit 0 on match, 2 on timeout, 1 on invalid predicate or plumbing failure

Flag / ArgTypeRequiredDescription
<pane_id>stringnoTarget pane id or name. Defaults to the current pane (PLEXI_PANE_ID)
--untilstringyesPredicate: idle, blocked, or exited (any exit, including unknown status)
--timeoutstringnoHost deadline in seconds; must be finite and positive Default: 300.

plexi pane events

Follow brokered pane lifecycle records as NDJSON until interrupted

Flag / ArgTypeRequiredDescription
--followflagyes
--panestringnoLimit deliveries to one pane id or name in the caller’s allowed context

plexi pane new

Open a terminal pane, the Agents pane (agents), or launch an agent with --agent.

--agent <tier-alias> is the supported way to launch an agent into a fresh pane: the host runs the command in the new pane and prints the pane id only once the agent reports idle, so a printed id on stdout means ready-to-brief with plexi pane send <id> "<brief>" --submit (two commands, no sleeps, no capture polling).

Examples: plexi pane new —agent c-large -n “worker” —no-focus # agent pane, id printed once ready-to-brief plexi pane new —worktree feature/0668-test # terminal in isolated wtp worktree plexi pane new # empty terminal, split right plexi pane new “npm run dev” -n “dev” # terminal with command, named plexi pane new -d # split below

For plugins use plexi view open. For MCP servers use plexi view open --mcp.

Flag / ArgTypeRequiredDescription
<cmd>stringnoShell command to run, or agents to open the built-in Agents pane
--agentstringnoLaunch an agent in the new pane and block until it reports ready-to-brief. The value is a shell command — normally a size-tier alias such as c-large or codex-small — run in the new pane verbatim. The pane id is printed only once the agent has booted, so a successful id on stdout means the pane is ready to receive a brief via plexi pane send <id> "<brief>" --submit. On boot timeout the reason and the created pane id go to stderr, stdout stays empty, and the exit code is 2 so the caller can close the pane. Requires a running Plexi host (PLEXI_SOCKET).
--boot-timeoutstringnoHow long to wait for the agent to report ready, in seconds. Defaults to 60 when omitted (the host owns the default)
--name / -nstringnoName the pane
--down / -dflagnoSplit below instead of right
--left / -lflagnoSplit left
--up / -uflagnoSplit up
--right / -rflagnoSplit right (explicit, same as default)
--tabflagnoNew tab
--windowflagnoNew window
--overlayflagnoOverlay pane
--fromstringnoPane id or name to split relative to. Defaults to the calling pane (PLEXI_PANE_ID env), falling back to the focused pane
--ephemeral / -eflagnoClose the pane when the command finishes
--no-focusflagnoKeep focus on the current pane
--cwdstringnoWorking directory
--worktreestringnoCreate or check out an isolated git worktree for via wtp and start the pane inside it. When the pane closes, the host automatically reclaims the worktree if clean and unmoved, or retains it and reports its path if dirty or ahead
--result-schemastringnoDeclare a JSON Schema (inline JSON object or path to a .json file) that the pane’s structured return (plexi pane result write) must satisfy before the host accepts it
--on-loadstring (repeatable)noChained steps to run sequentially after the pane opens (reuses the command step runner)
<extra_args>string (repeatable)noExtra arguments forwarded to the command (for example after --)

plexi pane name

Rename a pane.

With one argument, renames the current pane: plexi pane name “My Project” With two arguments, renames any pane by id or name: plexi pane name 42 “My Project”

Flag / ArgTypeRequiredDescription
<first>stringyesPane id or name (from plexi pane list) or the new name if renaming the current pane
<second>stringnoNew name when a pane id or name is given as the first argument

plexi pane list

List all open panes as a JSON array.

Filter by context: --context (no value) returns panes in the caller’s context (reads PLEXI_CONTEXT_ID from env). --context <id-or-name> filters to a specific context.

Flag / ArgTypeRequiredDescription
--contextstringnoFilter by context id or name. With no argument, reads PLEXI_CONTEXT_ID from env (caller’s context). With an argument, returns panes in that specific context

plexi pane tree

Show the parent/child session provenance forest across open panes (pstree / ps --forest style).

Displays each root pane and its spawned child panes with spawned_by, agent role, state, and title. Pass --json to output the nested forest as JSON.

Flag / ArgTypeRequiredDescription
--contextstringnoFilter by context id or name. With no argument, reads PLEXI_CONTEXT_ID from env (caller’s context)

plexi pane focus

Move the visible focus to a specific pane.

This moves what the user sees on screen — it does not change which pane an agent is running in. An agent calling this from pane A remains in pane A; the user just sees pane B highlighted.

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to focus (from plexi pane list)
--backflagnoStep back through pane focus history
--forwardflagnoStep forward through pane focus history

plexi pane heartbeat

Configure a host-owned recurring prompt for a terminal pane.

Defaults to the current pane when no pane id is given.

Example: plexi pane heartbeat 42 —every 5m —text “cycle”

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to prompt (from plexi pane list). Defaults to the current pane (PLEXI_PANE_ID)
--everystringnoInterval such as 30s, 5m, or 1h
--textstringnoPrompt text submitted on each beat
--while-idle-onlyflagnoOnly submit when the shared agent detector reports idle (default)
--offflagnoDisable the pane heartbeat

plexi pane close

Close a pane. Omit the pane id to close the pane you are currently in.

If the pane was created with plexi pane new --worktree <BRANCH>, the host automatically reclaims the worktree via wtp when clean and unmoved, or retains it and prints the retained worktree path when dirty or ahead.

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to close (from plexi pane list). Defaults to the current pane if not given

plexi pane send

Type text into another pane as if it came from the keyboard, or pass --submit for host-confirmed prompt submission.

Pass --submit (-s) when briefing an agent or submitting a prompt in a terminal pane: the host settles the pane, presses Enter (re-sending once if the text was parked as a collapsed paste), and exits 0 only once the prompt has left the input line — no sleep or pane key <id> enter needed.

Without --submit, terminal panes receive raw PTY bytes and view panes receive one egui text input event after the host focuses the target pane. For an ordinary shell command, see also plexi pane command <id> "<cmd>" --enter.

Examples: plexi pane send 42 “Read the brief and implement the fix” —submit plexi pane send 42 “partial text”

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name to send text to (from plexi pane list)
<text>stringyesText to type into the pane (prefer --submit to submit with confirmation)
--submit / -sflagnoPress Enter for you and wait until the host confirms the prompt left the pane’s input line. The host settles the pane, submits, and re-sends Enter once if the text is still parked as a collapsed paste. Exits 0 only when the submission is confirmed; on an unconfirmed submit it exits non-zero and prints the observed input line to stderr. Terminal panes only.
--pasteflagnoPaste literal text, including newlines, as one edit. View panes only; does not read or change the system clipboard
--operation-idstringnoReuse an operation identity for a brokered agent send. Human and unidentified callers are refused before sending when this is set

plexi pane self

Print the id of the pane you are currently in.

Useful in scripts: MY_PANE=$(plexi pane self)

plexi pane info

Print details about a pane (default: the current pane, or the previously focused pane) as JSON.

Example: plexi pane info 42

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to describe. Defaults to the current pane (PLEXI_PANE_ID)
--previousstringnoReturn info for a previously focused pane. With no value, returns the immediately previous pane (step 1). Provide an integer N to walk back N steps in focus history. Examples: plexi pane info —previous # pane focused 1 step ago plexi pane info —previous 3 # pane focused 3 steps ago

plexi pane capture

Capture the last N lines of a pane’s output as a JSON array.

Defaults to the current pane when no pane id is given.

Example: plexi pane capture —lines 50 42

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to capture output from. Defaults to the current pane
--linesstringnoHow many lines to read from the end of the output Default: 50.
--full-outputflagnoPreserve trailing empty lines (by default they are stripped)
--from-cursorstringnoRead only lines written after this cursor value. Get the cursor from a previous capture response. When set, the response is always JSON object format
--plainflagnoPrint only captured lines on stdout. The next cursor is printed to stderr

plexi pane status

Report one composite working, idle, blocked, or unknown verdict as JSON

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to inspect. Defaults to the current pane (PLEXI_PANE_ID)

plexi pane key

Send a key press to a pane.

For terminal panes, injects the keystroke into the terminal. For view panes, delivers a structured key event.

To submit a prompt or command with host confirmation, prefer plexi pane send <id> "<text>" --submit (or plexi pane command <id> "<cmd>" --enter) instead of chaining pane send + pane key <id> enter: --submit settles the pane, handles collapsed-paste Enter, and exits 0 only once the host confirms the input line cleared.

Terminal panes accept: one character (“h”, “H”); a named key (“enter”, “escape”, “space”, “tab”, “backspace”, “up”, “down”, “left”, “right”, “plus”, “minus”, “equals”); “ctrl+” for a-z, @, [, \, ], ^, _, - and space; “shift+tab”; and “alt+” for any of those that sends one character (“alt+m” sends ESC then m). Anything else, such as “alt+up”, “cmd+c” or an unknown name, exits 1 and sends nothing. View panes accept the same names plus their own chords (“cmd+s”, “f5”).

Exit 0 means the host delivered the key, not that the receiving program acted on it. Check the pane afterwards when it matters.

Example: plexi pane key 42 escape

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name to send the key to (from plexi pane list)
<key>stringyesKey to press

plexi pane drop

Drop a local file or image URL onto a pane

Flag / ArgTypeRequiredDescription
<pane_id>stringyesTarget pane id or name
<path_or_url>stringyes

plexi pane click

Inject a synthetic pointer click into a view pane, for driving canvas interaction without OS-level automation.

Two mutually exclusive targeting modes:

PANE-PIXEL coordinates (origin at the pane’s top-left) — the honest primitive, since it exercises the same fit=contain/fit=fill canvas_transform inversion a real click goes through. The host injects a real pointer move + press + release into the live egui pass, never a parallel resolver.

--node <ref> — activates one node of a plugin pane by the ref plexi pane state reports for it: a button’s action, a list or table row’s selection, or focus for a text input. The host checks the ref against the pane’s current tree and delivers in the same step; if the node changed since you read it, the click is refused as stale and nothing happens. Re-read pane state and retry. Builtin views have no refs; click them by position.

Only view panes accept clicks today.

Examples: plexi pane click 42 120 80 plexi pane click 42 —node 5.0f3a9c1e2b4d6e70

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name to click (from plexi pane list)
<x>stringnoX offset in pane pixels from the pane’s top-left corner
<y>stringnoY offset in pane pixels from the pane’s top-left corner
--nodestringnoNode ref to activate (from plexi pane state), instead of pixel coordinates
--buttonstringnoPointer button for a position click: “left” (default), “right”, or “middle”. A node activation has no pointer button

plexi pane drag

Drag the pointer across a view pane through the production input path: press, N intermediate moves, release — delivered one frame at a time.

Endpoints are pane-pixel coordinates (“x,y” from the pane’s top-left) or node refs from plexi pane state (the drag targets the node’s rendered bounds center).

Example: plexi pane drag 42 —from 40,120 —to 260,120 —steps 12

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name to drag in (from plexi pane list)
--fromstringnoStart position “x,y” in pane pixels
--from-nodestringnoStart node ref (from plexi pane state)
--tostringnoEnd position “x,y” in pane pixels
--to-nodestringnoEnd node ref (from plexi pane state)
--stepsstringnoIntermediate pointer moves between press and release (max 256) Default: 8.
--buttonstringnoPointer button: “left”, “right”, or “middle” Default: left.

plexi pane command

Send an ordinary shell command to a terminal pane as if typed from the keyboard.

--enter submits it through the same host-confirmed settle -> Enter -> confirm sequence as pane send --submit (see that command for the full contract), rather than racing a raw newline against the shell’s line editor. Exits 0 only once the host confirms the command was submitted; on an unconfirmed submit it exits non-zero and prints the observed input line to stderr. Terminal panes only.

This verb is scoped to ordinary shell commands. Driving an interactive TUI belongs to plexi pane send --submit; booting another agent belongs to plexi pane new --agent.

Example: plexi pane command 42 “git status” —enter

Flag / ArgTypeRequiredDescription
<pane_id>stringyesPane id or name to send the command to (from plexi pane list)
<text>stringyesText to send to the pane
--enter / -eflagnoSubmit the command through the host-confirmed settle -> Enter -> confirm sequence, instead of just typing it

plexi pane state

Return the current UI state of a pane as JSON.

For view panes: returns a versioned, runtime-neutral semantic tree. Process plugins also retain the compatible frame RenderCommand array. Agents can use the semantic nodes to inspect what any plugin runtime is currently displaying.

For terminal panes: returns a simple status object (type, title, pane_id).

Every response also carries claimed_state (the pane’s own status slot — an agent-authored claim, with its step token embedded in the value by convention, or null if never written) and observed_state (host-derived: process alive, seconds since last output, child pids, current foreground command) — always together, never one without the other. Pass --stale-after <secs> to additionally raise a typed stale_claim when a claim exists but the host has observed no output within that many seconds; omit it and stale_claim stays null with no evaluation performed.

agent_activity is the agent detector’s current state for the pane (state, and in_turn, true only while the agent is working), or null when no agent is detected. inactive_claim is raised, with a reason, when a claim exists but the process has exited or the agent is not in a working turn: a slot that still says working after the agent ended its turn is not ongoing work.

Defaults to the current pane when no pane id is given.

Example: plexi pane state 42 —stale-after 300

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name to query (from plexi pane list). Defaults to the current pane (PLEXI_PANE_ID)
--stale-afterstringnoRaise stale_claim when the claimed state looks fresh but no output has been observed within this many seconds. Omitted by default — no stale evaluation runs unless this is set

plexi pane slot

Manage host-managed named file slots for a pane

SubcommandDescription
writeWrite bytes to a named pane slot. If content is omitted, stdin is read fully
readPrint raw bytes from a named pane slot
waitBlock until a slot’s value matches a pattern, then print it
listList slots for a pane as JSON
deleteDelete a named pane slot

plexi pane slot write

Write bytes to a named pane slot. If content is omitted, stdin is read fully

Flag / ArgTypeRequiredDescription
<name>stringyesSlot name
<content>stringnoOptional content. If omitted, stdin is read fully
--pane-idstringnoPane id or name. Defaults to PLEXI_PANE_ID
--appendflagnoAppend to an existing slot instead of replacing it
--replaceflagnoReplace an existing slot

plexi pane slot read

Print raw bytes from a named pane slot

Flag / ArgTypeRequiredDescription
<name>stringyesSlot name
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID

plexi pane slot wait

Block until a slot’s value matches a pattern, then print it.

Exits 0 on a match, 2 on timeout (nothing on stdout), 1 on error. A slot whose current value already matches returns immediately.

Flag / ArgTypeRequiredDescription
<name>stringyesSlot name
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID
--untilstringyesRegex the slot value must match
--timeoutstringnoSeconds to wait before giving up Default: 300.

plexi pane slot list

List slots for a pane as JSON

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID

plexi pane slot delete

Delete a named pane slot

Flag / ArgTypeRequiredDescription
<name>stringyesSlot name
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID

plexi pane message

Send and receive structured messages via a host-managed per-pane FIFO mailbox

SubcommandDescription
sendEnqueue a message in a target pane’s FIFO mailbox
recvDrain all queued messages from a pane’s mailbox as a JSON array

plexi pane message send

Enqueue a message in a target pane’s FIFO mailbox.

Sender identity (from_pane_id) is stamped host-side from the socket peer process ancestry and is never self-reported. Prints a JSON ack with status ("queued" or "delivered"), message_id, queue_len, and woke.

Pass --submit to wake an idle target agent with a short notice to run plexi pane message recv without interrupting a busy agent.

Flag / ArgTypeRequiredDescription
<pane_id>stringyesTarget pane id or name (from plexi pane list)
<payload>stringyesMessage payload to enqueue
--submitflagnoWake the target agent if idle (never interrupts a busy agent)

plexi pane message recv

Drain all queued messages from a pane’s mailbox as a JSON array.

Defaults to PLEXI_PANE_ID. With --timeout N or --wait, blocks host-side with zero polling until at least one message is in the mailbox or --timeout expires (exits 0 with the drained JSON array, 2 on timeout, 1 on error).

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID
--waitflagnoBlock host-side until at least one message arrives or --timeout expires
--timeoutstringnoBlock for up to N seconds before exiting 2. —wait alone uses 300 seconds

plexi pane result

Read a pane’s validated structured result.

Spawners declare the JSON Schema at spawn (plexi pane new --result-schema <schema>). The agent returns its structured JSON once via plexi agent done --result <json>: the host validates it against the declared schema synchronously and rejects malformed or schema-violating payloads back to the agent (exit 1 with the validation error) so the agent can self-correct before any consumer sees it.

Reading via plexi pane result <id> (or plexi pane result read <id>) prints the validated JSON object to stdout and exits 0, or exits 2 with error_code: "no_result_yet" when no result has been written yet (or on --wait timeout), or exits 1 with error_code: "invalid_result" when the last attempted write was rejected and no valid result has been committed yet.

SubcommandDescription
readRead a pane’s validated structured result as JSON
waitBlock host-side until a pane commits a valid structured result, then print it

plexi pane result read

Read a pane’s validated structured result as JSON.

Exits 0 and prints the validated JSON object when committed, exits 2 (no_result_yet or --wait timeout) when no result has been written yet, or exits 1 (invalid_result) when the last write was rejected by schema validation and not yet corrected.

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID
--waitflagnoBlock host-side until a valid result is committed or --timeout expires
--timeoutstringnoSeconds to wait when --wait is set before exiting 2 Default: 300.

plexi pane result wait

Block host-side until a pane commits a valid structured result, then print it.

Equivalent to plexi pane result <id> --wait. Exits 0 with the validated JSON object, 2 on timeout, 1 on error.

Agent spawn returns immediately. Wait in bounded slices with plexi pane result wait <pane_id> --timeout 300, well under your tool harness call limit. On exit 2, report progress and re-run the same wait until done (exit 0). Inspect errors on exit 1. Never use one long wait or spawn a replacement worker just because a slice expired.

Flag / ArgTypeRequiredDescription
<pane_id>stringnoPane id or name (positional form). Defaults to PLEXI_PANE_ID
--pane-idstringnoPane id or name. Same as the positional form; defaults to PLEXI_PANE_ID
--timeoutstringnoSeconds to wait before exiting 2 Default: 300.

plexi events

Subscribe to plugin event streams

Subscribe to a Plexi plugin’s event streams and receive brokered deliveries.

Plugins declare named event streams (e.g. probe.tick) and emit events on them. plexi events subscribe <plugin_id> <stream> opens a long-lived connection and prints one JSON line per delivered event to stdout (NDJSON) until interrupted. Subscriptions are brokered: the host stamps your identity from the pane you run in and checks permission before any event is delivered.

SubcommandDescription
subscribeSubscribe to a plugin’s event stream and print delivered events as NDJSON
declareDeclare an event stream so it can be emitted on and subscribed to
emitEmit an event onto a declared stream
listList event streams currently declared by running plugins
mcp-configPrint the host MCP server config for an MCP-aware agent

plexi events subscribe

Subscribe to a plugin’s event stream and print delivered events as NDJSON.

Opens a long-lived connection to the running Plexi instance and streams one JSON object per line to stdout: first a subscribed acknowledgement, then one line per delivered event. Runs until interrupted (Ctrl-C), at which point the host drops the subscription and its queued deliveries.

Example: plexi events subscribe event-probe probe.tick —payload full

Flag / ArgTypeRequiredDescription
<plugin_id>stringyesPlugin id that publishes the stream (e.g. event-probe)
<stream>stringnoStream name to subscribe to (e.g. probe.tick). Omit with —all to subscribe to every stream the plugin declares
--allflagnoSubscribe to all of the plugin’s declared streams instead of one
--payloadstringnoHow much of each event to deliver: off, summary, full, or state-ref Default: full.
--triggerstringnoTrigger mode recorded on the subscription: never, conversation, ambient, or ask Default: conversation.
--resourcestringnoOnly deliver events for this resource id (document/game/pane). Omit for any

plexi events declare

Declare an event stream so it can be emitted on and subscribed to.

Registers a named stream under a plugin-id namespace with a JSON-Schema object describing its payload. Declaring is a prerequisite for emit. Re-declaring a stream replaces its previous schema. The first declare under a namespace you do not own prompts for host consent: the command says on stderr that it is waiting for an answer in the Plexi window. Exit 0 declared, 1 refused or failed, 2 no answer within --timeout.

Example: plexi events declare my-agent task.done —schema ’{“type”:“object”}‘

Flag / ArgTypeRequiredDescription
<plugin_id>stringyesPlugin-id namespace to declare the stream under (e.g. my-agent)
<stream>stringyesStream name to declare (e.g. task.done)
--schemastringnoJSON-Schema object describing the event payload Default: {"type":"object"}.
--descriptionstringnoHuman-readable description of when this event fires
--timeoutstringnoSeconds to wait for a consent answer before exiting 2 Default: 60.

plexi events emit

Emit an event onto a declared stream.

Records a semantic event in the host timeline and fans it out to every broker-approved subscriber. The stream must already be declared. The emitter identity (actor_id) is host-stamped from your pane and cannot be set from the CLI; --actor sets only the advisory semantic category.

Example: plexi events emit my-agent task.done —summary “Build finished” —resource build-42 —revision-after done

Flag / ArgTypeRequiredDescription
<plugin_id>stringyesPlugin-id namespace the stream lives under (e.g. my-agent)
<event>stringyesDeclared stream name to emit on (e.g. task.done)
--summarystringyesOne-line human-readable description of what happened
--resourcestringyesId of the document/game/pane/resource the event is about
--revision-afterstringyesRevision identifier after the change
--actorstringnoSemantic actor category that caused the change Default: agent.
--resource-scopestringnoScope class of the resource id (document, game, pane…). Defaults to pane
--payloadstringnoStructured JSON payload; the declared stream schema is advisory and not enforced on the emit path
--state-refstringnoStable reference subscribers can fetch full state from
--revision-beforestringnoRevision identifier before the change
--rollback-tokenstringnoOpaque token that makes this event reversible (creates an undo checkpoint)
--changed-resourcestring (repeatable)noOther resource id touched by this change (repeatable)

plexi events list

List event streams currently declared by running plugins

plexi events mcp-config

Print the host MCP server config for an MCP-aware agent.

Emits a mcpServers JSON block pointing at this instance’s host MCP server (read from PLEXI_HOST_MCP_PORT / PLEXI_HOST_MCP_TOKEN), so a Claude Code or Codex agent in this pane can call workspace plugin tools and subscribe to plugin events natively over MCP. The emitted credential is valid only while the originating pane remains alive.

Beta-gated: MCP client configuration is a beta surface. This reference is included for beta and worktree testing; it is not available from the stable v1 channel.

plexi needs-you

List everything waiting on you.

One host record covers click approvals, agent questions, and blocked runs. The desktop badge reads that record. resolve --approve on a click approval is refused. --deny still denies.

SubcommandDescription
listList open items waiting on you as JSON
showShow one needs-you item and its continuation record as JSON
askFile a creative or blocking question for the human and return its id + continuation record
answerAnswer an open creative question (Question or BlockedRun). Never mints a permission grant
reconcileReconcile open and resolved needs-you items and continuation records for a session, pane, or context
completeMark a continuation record completed (or failed/canceled) with an execution receipt
resolveResolve one item. Approving a click approval is refused; deny still denies it

plexi needs-you list

List open items waiting on you as JSON

plexi needs-you show

Show one needs-you item and its continuation record as JSON

Flag / ArgTypeRequiredDescription
<id>stringyesNeeds-you item id or continuation id

plexi needs-you ask

File a creative or blocking question for the human and return its id + continuation record

Flag / ArgTypeRequiredDescription
--summarystringyesQuestion summary shown in Needs you and agent UI
--resourcestringnoTarget resource identifier (e.g. clip id or file path) Default: workspace.
--choicestring (repeatable)noAllowed answer choices (repeat --choice for multiple options)
--allow-free-textflagnoAllow free-text answers in addition to --choice options
--recommendstringnoMark one --choice as recommended (shown starred in the decision overlay)
--preview-refstring (repeatable)noPreview references (e.g. clip/frame/path references)
--correlation-idstringnoCorrelation id joining the question to an operation or continuation
--operation-idstringnoOperation id for idempotent resume
--session-idstringnoAgent session id for reattachment across restarts
--expected-revisionstringnoExpected resource revision when resuming after the human answers
--context-idstringnoTarget context id or name (defaults to caller pane’s context)
--pane-idstringnoCaller pane id or name (defaults to $PLEXI_PANE_ID)

plexi needs-you answer

Answer an open creative question (Question or BlockedRun). Never mints a permission grant

Flag / ArgTypeRequiredDescription
<id>stringyesNeeds-you question id
--answerstringyesSelected choice or free-text answer

plexi needs-you reconcile

Reconcile open and resolved needs-you items and continuation records for a session, pane, or context

Flag / ArgTypeRequiredDescription
--session-idstringnoFilter by agent session id
--pane-idstringnoFilter by pane id or name
--context-idstringnoFilter by context id or name
--idstringnoFilter by specific item/run/operation/correlation id

plexi needs-you complete

Mark a continuation record completed (or failed/canceled) with an execution receipt

Flag / ArgTypeRequiredDescription
<id>stringyesContinuation run id, operation id, correlation id, or needs-you id
--statestringnoTerminal state (completed, failed, canceled, outcome_unknown) Default: completed.
--receiptstringnoExecution receipt JSON or summary string

plexi needs-you resolve

Resolve one item. Approving a click approval is refused; deny still denies it

Flag / ArgTypeRequiredDescription
<id>stringyes
--approveflagnoApprove the item. A click approval stays open
--denyflagnoDeny the item

plexi permissions

List and change decisions stored by the permission monitor.

list prints the live rows. revoke removes an allow and applies at once. reset and allow widen a permission, so they never apply from a command, even in your own terminal: they file a Needs you item and exit 2. Approve it in the Plexi window (Needs you) to apply the change.

SubcommandDescription
listList live permission decisions
resetAsk to clear a stored denial (does not grant): files a Needs you item to approve in Plexi
revokeRemove an allow, or refuse a pending ask
allowAsk to allow a denial or pending ask (does not grant): files a Needs you item to approve in Plexi

plexi permissions list

List live permission decisions

plexi permissions reset

Ask to clear a stored denial (does not grant): files a Needs you item to approve in Plexi

Flag / ArgTypeRequiredDescription
<id>stringyesDecision id from plexi permissions list

plexi permissions revoke

Remove an allow, or refuse a pending ask

Flag / ArgTypeRequiredDescription
<id>stringyesDecision id from plexi permissions list

plexi permissions allow

Ask to allow a denial or pending ask (does not grant): files a Needs you item to approve in Plexi

Flag / ArgTypeRequiredDescription
<id>stringyesDecision id from plexi permissions list
--durationstringnoHow long to ask for. Defaults to once for a pending ask and always for a stored denial

plexi notify

Send a notification to the Plexi UI

SubcommandDescription
dismissRemove a notification previously posted by this pane

plexi notify dismiss

Remove a notification previously posted by this pane

Flag / ArgTypeRequiredDescription
<notify_id>stringyesNotification id printed by plexi notify

plexi ai

AI diagnostics: hardware scan, integrations, model picks

AI configuration and diagnostics — scan hardware, check integrations, recommend models.

SubcommandDescription
onboardGuide first-run AI setup and the next plugin install step
doctorScan hardware and report recommended AI models
setupRetired: local AI providers are not supported in 0.5.0

plexi ai onboard

Guide first-run AI setup and the next plugin install step.

Checks whether OpenRouter is configured, then prints the shortest path to usable AI: a user-owned OpenRouter key, or skipping AI for now. Ends with the plugin install command to try next.

Example: plexi ai onboard

plexi ai doctor

Scan hardware and report recommended AI models.

Detects your CPU, RAM/VRAM, and GPU, then recommends which local or cloud AI models are a good fit. Also checks whether Ollama is installed and running, lists any already-pulled models, and verifies OpenRouter configuration.

Example: plexi ai doctor

plexi ai setup

Retired: local AI providers are not supported in 0.5.0.

Exits non-zero without touching config.toml. Configure OpenRouter instead with plexi secret set OPENROUTER_API_KEY --global, then run plexi ai doctor.

Example: plexi ai setup

plexi ledger

Summarize recorded AI usage from this channel’s ledger.

With no subcommand, prints per-client totals for tokens, cost, runs, and wall time. Reads ai-ledger.jsonl in the channel profile. Does not require a running host. A token count is a positive number or the word unknown. Rows written before run tags existed count as null client and kind.

SubcommandDescription
summaryTotals for tokens, cost, run count, and wall time

plexi ledger summary

Totals for tokens, cost, run count, and wall time

Flag / ArgTypeRequiredDescription
--bystringnoGroup rows by client or kind. Omitted means client
--sincestringnoInclude rows at or after this YYYY-MM-DD or RFC3339 timestamp

plexi debug

Inspect what the host recorded: per-session flight traces.

Reads files in the channel profile and does not require a running host.

Example: plexi debug session list Example: plexi debug session show latest —pane 3 —join-agents

SubcommandDescription
sessionInspect recorded host sessions

plexi debug session

Inspect recorded host sessions

SubcommandDescription
listList recorded host sessions with start/last time, contexts, panes, and attached external agent session ids
showShow one session as a single chronological timeline

plexi debug session list

List recorded host sessions with start/last time, contexts, panes, and attached external agent session ids

plexi debug session show

Show one session as a single chronological timeline.

With --join-agents, recorded agent session ids are resolved to their transcripts under ~/.pi/agent/sessions and ~/.claude/projects, and agent prompts and tool calls are interleaved with host permission and plugin events.

Flag / ArgTypeRequiredDescription
<session>stringnoSession id (sess-…) or latest. Omitted means latest
--panestringnoOnly records for this pane (and the calls it made)
--cliflagnoShow only CLI argv calls and their exit codes. Secret values, known secret options, and KEY=value assignments are redacted at capture
--utcflagnoRender timestamps in UTC instead of local time (text output only)
--join-agentsflagnoInterleave external agent transcripts

plexi experiments

List, enable or disable experiments

List, enable, or disable experiments (features outside the stable v1 surface).

Every experiment is off by default on every channel. Switches live in the [experiments] table of the global config.toml.

Example: plexi experiments list Example: plexi experiments enable assistant

SubcommandDescription
listShow every experiment: name, on/off, whether a host restart is needed
enableTurn an experiment on in the global config.toml
disableTurn an experiment off by removing its switch from the global config.toml

plexi experiments list

Show every experiment: name, on/off, whether a host restart is needed

plexi experiments enable

Turn an experiment on in the global config.toml

Flag / ArgTypeRequiredDescription
<name>stringyesExperiment name; see plexi experiments list

plexi experiments disable

Turn an experiment off by removing its switch from the global config.toml

Flag / ArgTypeRequiredDescription
<name>stringyesExperiment name; see plexi experiments list

plexi skill

Install the agent skill compiled into this binary.

Writes SKILL.md where Claude Code (~/.claude/skills) and Codex (~/.codex/skills) load user skills. The bytes are the copy embedded at build time, so the installed plexi_version matches this binary.

Example: plexi skill install —agent claude

SubcommandDescription
draftDraft a reusable skill or commands.toml snippet from captured CLI calls
installWrite this binary’s skill for one agent CLI, or all supported agents

plexi skill draft

Draft a reusable skill or commands.toml snippet from captured CLI calls.

Prints for review; installs nothing (never edits <repo>/.plexi-<channel>/commands.toml or ~/.plexi-<channel>/commands.toml, or <repo>/.plexi/commands.toml / ~/.plexi/commands.toml on stable). Without —out, writes no draft files. Captured secret values and KEY=value assignments stay redacted. Review failed calls and suggested —subcontext forms before accepting the draft.

Flag / ArgTypeRequiredDescription
--from-sessionstringyesRecorded host session id, or latest
--panestringnoTarget this pane instead of PLEXI_PANE_ID (without either, includes all panes)
--all-panesflagnoInclude calls from every pane instead of the calling pane
--include-internalflagnoInclude agent bookkeeping and pane polling calls
--include-failedflagnoInclude failed or incomplete calls as review-only notes
--asstringnoOutput format: SKILL.md or commands.toml snippet Default: skill.
--outstringnoWrite the draft to a new file instead of stdout; never installs it

plexi skill install

Write this binary’s skill for one agent CLI, or all supported agents

Flag / ArgTypeRequiredDescription
--agentstringyesWhich agent CLI loads the skill: claude, codex, pi, or all

plexi completions

Print a shell completion script to stdout.

Example: plexi completions zsh >> ~/.zshrc

Flag / ArgTypeRequiredDescription
<shell>stringnoShell name: zsh, bash, or fish

plexi cli

Install the CLI launcher, completions and PATH entry

Install the Plexi CLI launcher, drop-in completions, and shell PATH registration.

Inside Plexi panes, plexi and tab completions are injected automatically without editing your shell dotfiles. Run plexi cli setup to install the ~/.local/bin launcher and XDG/Homebrew completion drop-in files and append PATH and completion blocks to your shell startup files (.zshrc, .bashrc, .profile, config.fish). Pass --no-modify-path to skip dotfile edits.

Example: plexi cli setup Example: plexi cli setup —no-modify-path

SubcommandDescription
setupInstall the ~/.local/bin launcher, drop-in completions, and shell PATH registration

plexi cli setup

Install the ~/.local/bin launcher, drop-in completions, and shell PATH registration

Flag / ArgTypeRequiredDescription
--modify-pathflagnoAppend PATH and completion blocks to ~/.zshrc, ~/.bashrc, ~/.profile, and config.fish
--no-modify-pathflagnoDo not edit shell startup files (.zshrc, .bashrc, .profile, config.fish)

plexi config

Check your Plexi config file for errors

SubcommandDescription
reloadReload configuration in the running host
checkValidate the selected config.toml and report any errors
editOpen the selected config.toml in your $EDITOR
getPrint a config key from the selected config.toml to stdout
resetOverwrite the selected config.toml with the built-in default template
listPrint all known config keys with type, current value, and description
setSet one or more keys in the selected config.toml

plexi config reload

Reload configuration in the running host

plexi config check

Validate the selected config.toml and report any errors.

Reads the workspace config inside a workspace, otherwise the global config.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)

plexi config edit

Open the selected config.toml in your $EDITOR.

Opens the workspace config inside a workspace, otherwise the global config.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)

plexi config get

Print a config key from the selected config.toml to stdout.

Supports dotted keys: agents.low, agents.medium, agents.high. Reads the workspace config inside a workspace, otherwise the global config.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)
<key>stringyesDotted key to retrieve (e.g. agents.medium)

plexi config reset

Overwrite the selected config.toml with the built-in default template.

Writes the workspace config inside a workspace, otherwise the global config. Creates a backup at config.toml.bak before overwriting.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)

plexi config list

Print all known config keys with type, current value, and description.

Columns: key\ttype\tvalue\tdescription. Use —json for machine-readable output. Reads the workspace config inside a workspace, otherwise the global config.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)

plexi config set

Set one or more keys in the selected config.toml.

Each argument must be in KEY=VALUE form (e.g. theme.preset=dracula font_size=14). Writes the workspace config inside a workspace, otherwise the global config. Pass —global to read or write only the global config.

Flag / ArgTypeRequiredDescription
--global / -gflagnoUse the global channel config.toml only (~/.plexi-<channel>/config.toml, or ~/.plexi/config.toml on stable)
--workspace / -wflagnoUse the active workspace’s channel-scoped config.toml only (<repo>/.plexi-<channel>/config.toml, or <repo>/.plexi/config.toml on stable)
<pairs>string (repeatable)yesOne or more KEY=VALUE pairs to write

plexi note

Capture, list, read, open, and delete notes.

plexi note "a thought" captures a note. plexi note list prints note paths, plexi note show <path> prints one note, plexi note open picks one with fzf in the focused pane, and plexi note rm <path> deletes one. Notes live in the tier of the current directory (its nearest ancestor holding .plexi/, else the global tier); see src/host/AGENTS.md for the tier contract. list also rolls up nested tiers and the global tier.

Text that is exactly list, open, add, show, or rm is read as that subcommand; shell quoting cannot tell them apart. Capture it with plexi note add list.

Example: plexi note “remember to update the docs”

SubcommandDescription
addCapture a note explicitly, even when the text is list, open, or add
listPrint paths of every note in every visible tier, newest first
openOpen a note picker with fzf in the focused terminal pane
showPrint one note’s contents by the path plexi note list printed
rmDelete one note by the path plexi note list printed

plexi note add

Capture a note explicitly, even when the text is list, open, or add.

Writes a timestamped note into the tier of the current directory.

Example: plexi note add “remember to update the docs”

Flag / ArgTypeRequiredDescription
<text>stringyesNote text to capture

plexi note list

Print paths of every note in every visible tier, newest first.

Tiers are the current directory’s context tier (its nearest ancestor holding a .plexi/ directory), any tier nested below it, and the global tier. Resolved from the working directory, never from the environment.

plexi note open

Open a note picker with fzf in the focused terminal pane.

Candidates come from plexi note list. Requires fzf and a running host; both are reported as errors rather than silently degrading.

plexi note show

Print one note’s contents by the path plexi note list printed.

Refuses any path outside a notes tier visible from the current directory, so a hand-typed path cannot read an arbitrary file.

Example: plexi note show ~/.plexi/notes/20260101T000000.000Z.md

Flag / ArgTypeRequiredDescription
<path>stringyesNote path from plexi note list

plexi note rm

Delete one note by the path plexi note list printed.

Irreversible: the note file is removed from disk. Refuses any path outside a notes tier visible from the current directory.

Example: plexi note rm ~/.plexi/notes/20260101T000000.000Z.md

Flag / ArgTypeRequiredDescription
<path>stringyesNote path from plexi note list

plexi doctor

Audit all installed plugins for capability and config gaps.

Checks every installed plugin’s declared capabilities against your current config.toml and reports what’s working and what needs to be configured. Use —json for scripting.

plexi demo

Interactive keybinding tutorial

Interactive keybinding tutorial — learn split and navigate in real time.

Walk through macOS pane controls inside a live pane. Requires macOS and a Plexi pane (PLEXI_PANE_ID must be set).

plexi update

Update this channel’s package or restore the previous one

Update this channel’s managed package, or restore its previous generation.

Flag / ArgTypeRequiredDescription
--rollbackflagnoRestore the retained previous package through the installation transaction

plexi uninstall

Remove this channel’s recorded package and launchers.

Files outside the installation receipt, including development binaries and other channels, are preserved.

Flag / ArgTypeRequiredDescription
--keep-dataflagnoRetain user data and its credentials (the default)
--delete-dataflagnoPermanently delete this channel’s profile and integrity credentials
--yes / -yflagnoRemove this channel without a confirmation prompt

plexi host

Start, stop or check a Plexi host from the CLI

Launch, stop, or check a headless-friendly Plexi host from the CLI.

host start launches this channel’s plugin bundle detached from the calling shell, optionally seeding panes from a --layout TOML file or repeated --pane flags, then blocks until the host confirms it’s ready. Works identically on alpha, beta, main, and PR builds — the channel is resolved from the running CLI binary’s own name.

SubcommandDescription
restartRestart this channel, restoring the saved workspace
startLaunch this channel’s plugin bundle detached and wait for readiness
stopStop the running host and every pane agent for this channel
logWrite one info-level marker line into the running host’s channel log
statusReport whether this channel’s host is running, its pid, socket path, and pane count
screenshotCapture the running host window as a PNG through the real render pipeline — the pixels the user actually sees, no OS screen capture
keyInject a key or chord into the host-level keyboard path

plexi host restart

Restart this channel, restoring the saved workspace

Flag / ArgTypeRequiredDescription
--yesflagnoConfirm restarting the host containing this pane; this pane will close

plexi host start

Launch this channel’s plugin bundle detached and wait for readiness.

Errors if a host for this channel is already running. Seeds any declared panes via the spawn-queue before the plugin boots, so they appear on its first frame.

Example: plexi host start —pane ‘cwd=/tmp,cmd=htop’

Flag / ArgTypeRequiredDescription
--layoutstringnoTOML file with [[pane]] tables to seed on boot
--panestring (repeatable)noA pane to seed: ‘cwd=[,cmd=][,tab
--timeout-secsstringnoSeconds to wait for the host to confirm readiness (default 15)
--ephemeralflagnoBoot a hermetic session: skip workspace restore on start and skip workspace save on shutdown. For automated runs (scene runners, release gates) that must never see or clobber the channel’s saved session
--backgroundflagnoLaunch without activating Plexi or taking focus. On macOS this uses Accessory activation policy, so the host has no normal Dock or menu-bar presence and should be driven through the CLI

plexi host stop

Stop the running host and every pane agent for this channel.

Non-interactive: sends pane process groups SIGHUP then SIGTERM, then SIGKILL after a grace period (PLEXI_QUIT_GRACE_MS, default 2000 ms; closing the window uses 500 ms). Sends a clean shutdown request first, falling back to SIGTERM if the host doesn’t confirm exit in time.

plexi host log

Write one info-level marker line into the running host’s channel log.

For automated drivers (release gates, scene runners, CI) that must leave start/finish summaries in ~/.plexi-<channel>/plexi.log itself.

Example: plexi host log —source editor_gate “gate finished passed=9 failed=0”

Flag / ArgTypeRequiredDescription
<message>stringyesThe marker text (flattened to one line in the log)
--sourcestringnoShort tool identity prefixed to the line Default: cli.

plexi host status

Report whether this channel’s host is running, its pid, socket path, and pane count

plexi host screenshot

Capture the running host window as a PNG through the real render pipeline — the pixels the user actually sees, no OS screen capture.

Example: plexi host screenshot —pane 3 —output /tmp/pane3.png

Flag / ArgTypeRequiredDescription
--panestringnoCrop the capture to this pane id or name’s current screen rect
--output / -ostringnoWhere to write the PNG (default: /screenshots/.png)

plexi host key

Inject a key or chord into the host-level keyboard path.

This is a validation seam for host shortcuts: it does not send bytes to a focused pane. Example: plexi host key cmd+1.

Flag / ArgTypeRequiredDescription
<key>stringyesSingle key, named key, or chord such as cmd+1 or cmd+shift+2