Skip to main content

CLI Reference

pad-lattice ports

List MIDI input and output ports.

pad-lattice ports

pad-lattice demo

Run the standalone hardware demo loop.

pad-lattice demo --no-greeting

Useful options:

pad-lattice demo --input "Launchpad Pro" --output "Launchpad Pro"
pad-lattice demo --greeting-delay 0.12

pad-lattice daemon

Own the Launchpad MIDI ports and expose the local Unix socket API.

pad-lattice daemon --no-greeting --terminal-hold 1.5

pad-lattice send-state

Send an agent state to the daemon.

pad-lattice send-state running
pad-lattice send-state waiting_for_reply
pad-lattice send-state waiting_for_approval
pad-lattice send-state success
pad-lattice send-state error

pad-lattice hook-state

Send a state from a Codex hook. If the daemon is offline, the command exits successfully so the hook does not block Codex.

pad-lattice hook-state running

pad-lattice listen-actions

Print Launchpad actions emitted by the daemon.

pad-lattice listen-actions

pad-lattice monitor-midi

Print raw MIDI input messages for pad mapping and debugging.

pad-lattice monitor-midi --seconds 15

pad-lattice codex-exec

Run codex exec --json and mirror Codex state to the daemon.

pad-lattice codex-exec "summarize this repository"

During codex-exec, pad 18 emits stop and terminates the running Codex process.