CLI reference
The splinterm CLI serves both people and structured clients. Human output is the default. JSON and NDJSON are versioned machine contracts with separate authority rules; see Bounded automation before scripting them.
Everyday graphical workflows
Section titled “Everyday graphical workflows”splinterm dojos # open Recent Dojossplinterm reopen # reopen the last still-running Dojosplinterm launch # fresh graphical Lair; lifetime follows configurationsplinterm window --lair-id L --dojo-id Dsplinterm sessions remains a compatibility alias for dojos. A Window is a disposable view and can hold several Dojos as local tabs.
Inspect topology
Section titled “Inspect topology”splinterm pingsplinterm listsplinterm list --allsplinterm topologysplinterm inspect SPLINT_IDlist emphasizes active Lairs. --all includes exited-only history. IDs returned by these commands are stable topology identities, not window handles.
Create and arrange work
Section titled “Create and arrange work”splinterm new project --cwd "$HOME/src/project"splinterm new-dojo LAIR_ID --name logs -- /usr/bin/journalctl -fsplinterm split SPLINT_ID --axis vertical --side second --ratio 600splinterm ratio SPLINT_ID 500splinterm rename-lair LAIR_ID NAMEsplinterm rename-dojo DOJO_ID NAMEsplinterm rename-splint SPLINT_ID TITLEsplinterm rename-splint SPLINT_ID --use-app-nameArguments after -- are executed directly as an argument vector. Splinterm does not rebuild them into shell text.
A new Lair starts with Dojo 1. If new-dojo omits --name, Splinterm chooses one greater than that Lair’s highest exact Dojo N name without reusing gaps. Explicit names are preserved.
Lifecycle
Section titled “Lifecycle”| Command | Effect |
|---|---|
kill SPLINT_ID |
End a live process but retain its Splint. |
restore SPLINT_ID |
Start one exited Splint from saved metadata. |
restore-dojo DOJO_ID |
Restore every exited Splint in a Dojo. |
restore-lair LAIR_ID |
Restore every exited Splint in a Lair. |
relaunch SPLINT_ID [-- ARGV...] |
Start a new incarnation, optionally with new argv. |
close SPLINT_ID |
Remove an exited Splint and collapse its layout branch. |
close-dojo DOJO_ID |
Remove a Dojo after every Splint has exited. |
reset |
Back up and clear all persistent topology, then restart cleanly. |
Restore is always explicit. Saved launch metadata is never executed automatically.
Agent status
Section titled “Agent status”| Command | Effect |
|---|---|
agent-status set STATE [--detail TEXT] [--ttl SECONDS] |
Report working, needs_input, done, error, or idle for the current Splint. |
agent-status clear |
Clear the current Splint’s reported status. |
agent-status get [SPLINT_ID] |
Read one Splint’s reported status. |
Inside a Splint the target comes from $SPLINTERM_SPLINT_ID and $SPLINTERM_SPLINT_INCARNATION; --splint ID --incarnation N overrides it. Without either, the command exits 2 with not inside a Splint. See Bounded automation for authority and agent hook recipes.
Local configuration and presets
Section titled “Local configuration and presets”splinterm config checksplinterm keymap listsplinterm keymap showsplinterm keymap conflictssplinterm preset listsplinterm preset show NAMEsplinterm preset checksplinterm preset run NAME --cwd "$PWD" --dry-runRead Configuration and keymaps and Dojo presets for the strict schemas and bundled Omarchy workflows.
Remote profiles
Section titled “Remote profiles”splinterm remote listsplinterm remote inspect PROFILEsplinterm remote check PROFILEsplinterm remotessplinterm --remote PROFILEsplinterm --remote PROFILE reopenThe first two commands are local-only. splinterm remotes returns at once and prints nothing; it opens one Window that lists the profiles, connects to the chosen one, lists its Dojos, and becomes the remote terminal. remote check performs bounded, read-only SSH, relay, and daemon probes without mapping a Window. See Remote access.
Machine output
Section titled “Machine output”splinterm --output json --schema-major 2 --timeout-ms 5000 topologysplinterm --output ndjson --schema-major 2 --timeout-ms 300000 \ subscribe terminal SPLINT_IDMachine mode never prompts. It uses stable schema-major-2 envelopes, explicit timeouts, structured exit categories, resource policy, incarnation checks, and resynchronization rules. Human-readable output and private daemon frames are not compatibility contracts.
For every flag and operation, the current executable’s --help and repository docs/cli.md remain authoritative.