Skip to content

About

Turn a Pulsar XPAD Mini into a physical Codex agent controller: live LCD, RGB status, approvals and knob navigation.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pulsar Codex Deck

Checks Download MIT license

Turn a Pulsar Lab XPAD Mini into a physical controller for your Codex agents. Browse agents with the knob, see what needs attention on the LCD, and approve the selected request with a single key press.

Codex entries use the existing session title as their main label on the pad and PC. Untitled sessions fall back to their existing name or project directory. The working directory appears in a muted line beneath the pad's activity text; long paths are shortened, and the PC details show the full path below the status. Long overview titles scroll horizontally on the pad, pausing at each end. Short titles stay still, and selecting another session or opening a menu resets the scroll. The PC panel shows the full label. Duplicate labels get a short ID prefix. Titles are read from Codex metadata and update when renamed; Pulsar does not generate titles or rename sessions.

Windows x64 · public preview · no custom firmware required

Companion

Choose Cat, Owl, or Off using the PC app's Companion selector, or press + → Companion on the pad and press the knob to cycle the choices. Your choice is saved automatically. The cat and owl animate while an agent works, waits for input, rests, or reports an error. After an observed turn ends, a short finish animation plays before the companion rests.

During an active native voice session, the selected voice target's cat or owl shows a listening animation, then a speaking animation when native assistant transcript activity indicates a reply. These are animated conversation states, not audio-volume lip sync. Off remains off. Voice animations do not change agent status or approval state.

The companion sits beside the activity preview. Press the knob for full details; choose Off for the wider text preview. Colors and approval controls still show the actual agent state independently of the animation.

Model and Effort

The pad's top line shows the selected agent's Model · Effort. Both values also appear beneath the agent's name in the PC app.

To change the pair on the pad: press the knob → Model & Effort → choose a model → choose its Effort → review both → press to apply. Turn the knob to browse and press to advance. × goes back one step; from the model list it cancels the flow. The PC app's Model & Effort button opens the same flow.

Choices come from Codex's model catalog, including each model's supported Effort values. The Effort step initially highlights your current value when supported, otherwise the selected model's default; choose any supported value. No settings are sent until you confirm the complete pair. Changes apply to subsequent turns on that agent. Permission settings are preserved. If settings or model choices change while a selection is being reviewed, reopen the selector to review it again.

Desktop companion showing simulated Codex sessions

Demo screenshot with synthetic sessions. The physical LCD uses the same layout.

ComfyUI connections

Click + Add ComfyUI connection in the PC app and enter a Name and the instance's Server URL (for example, http://127.0.0.1:8188). Test the connection, then save. Add another connection for each separate server: an AMD instance and an NVIDIA instance can have their own names, URLs, queues and images. Up to eight connections are supported, including servers on your local network. The URL can include a reverse-proxy path; authenticated servers are not supported in this version. Connections are saved locally and reconnect automatically.

Turn the knob to browse ComfyUI entries alongside Codex agents. Each shows whether it is idle, queued, generating, finished or failed, plus the number of pending jobs. Key 2 opens the selected ComfyUI server on the PC. Offline ComfyUI connections are hidden from the pad and its entry count. They reappear automatically when connected. If the selected connection goes offline, the pad switches to an available entry. Offline connections remain in the PC app; click one to edit its settings or remove the connection. Key 1 retains its approval meaning and has no action on ComfyUI entries. Key 3 includes ComfyUI failures in its attention cycle. Queued jobs do not count as requests for human attention.

The latest completed image appears as a thumbnail on the pad and a larger image in the PC app. Press the knob → Latest image → press for a larger pad view; × returns to the overview. The PC app also has a View image on pad button. Images are fitted without cropping and stay visible while another job runs. The last image is retained in memory while offline and is available again when the connection returns to the pad. A failed image download keeps the previous image. These are completed results, rather than live intermediate sampling previews.

Queue and image monitoring use ComfyUI's built-in read-only HTTP endpoints; no workflow changes or ComfyUI extension are required. Images are selected from the latest 40 history entries, preferring saved output images over temporary previews and showing the final image of a batch. PNG, JPEG, WebP, GIF, AVIF and BMP image outputs are supported (animated files show their first frame). Video-only workflows have status monitoring but no image preview. History is held by ComfyUI: a fresh server with no history has no previous result to retrieve. Thumbnails stay in memory for the current deck process.

For live node and step progress, edit the connection, expand Live node and step progress, click Install progress helper…, and choose that instance's ComfyUI folder containing main.py and custom_nodes. Restart ComfyUI afterward. Repeat for other installations as needed. The bundled optional helper adds one read-only status route and no workflow nodes or dependencies. It leaves browser connections alone. ComfyUI normally sends detailed progress only to the client that submitted the job, so a separate monitor needs this helper for those details. Older versions without the progress registry provide the node name when available. While generating, the pad shows Total: …% and Current node name: …% under Generating. Total follows ComfyUI's completed/cached node count; the second percentage tracks progress within the current node. Slim bars show both values beside the latest-image thumbnail. These values are also in the PC panel. The helper observes existing progress notifications and forwards them unchanged; it does not change execution or browser client IDs. Update an older helper using the same Install progress helper button, then restart ComfyUI when its queue is finished. Missing progress is shown as — rather than a guessed percentage.

Use Edit connection or Remove connection in the selected entry's PC panel to manage it. Removing an entry does not stop ComfyUI or change its queue. This version monitors existing jobs; it does not launch or cancel generations.

OpenCode sessions

Running OpenCode TUI windows on this PC appear alongside Codex agents automatically — Pulsar finds each window's local server by inspecting listening ports, verifies it with OpenCode's health endpoint, and follows its live events. No hooks, extensions, or configuration are required.

Sessions appear when they work in a window you have open, and leave when the window closes. A freshly opened window shows nothing; sending a prompt makes its session appear — the same flow as Codex. Database history never creates pad rows, sessions running in other windows or processes cannot leak into a window's list, and idling never hides a session that already appeared. Close the tab and its sessions are gone within seconds. Headless opencode run processes host no server and are never shown.

OpenCode 1.x: start the TUI with a port so it hosts the server Pulsar monitors: opencode --port 4096. On OpenCode 1.19.2 a TUI started without --port binds no server and cannot be detected or attached to; use a distinct port per window (4096, 4097, …).

OpenCode 2.x (verified with 2.2.6): Pulsar also supports the authenticated shared background service and its /api routes. The TUI does not accept --port; that option belongs to serve. Pulsar reads the running service's existing local service.json, validates its PID and version, and keeps the authorization header in memory. It does not change OpenCode configuration or require another API key. Standard per-user state and portable installations with a sibling profile/state directory are discovered automatically. Open TUI tabs supply idle-session visibility; active executions and pending permissions supply live state. Database history alone does not create entries. The 1.x permission-preset editor is unavailable for 2.x sessions because those permission schemas differ.

Conditions for an OpenCode session to appear on the deck:

  1. A monitored server must be running. 1.x: a TUI started with --port <n> (a distinct port per window). 2.x: the shared background service — starting a plain opencode2 window is enough. Headless opencode run processes host no monitorable server and never appear.
  2. The instance must be discoverable. 1.x: the process must own a loopback listener. 2.x: its service.json (one record per state directory) must match the listening PID. Multiple 2.x instances sharing one state directory overwrite each other's record — only the newest starting one is found; give each its own XDG_STATE_HOME or a profile/state directory next to its executable.
  3. The session must be live, not history. It counts as live when it is currently executing or waiting for permission, when it produced an event (message, tool part, session creation, TUI selection) since the deck connected, or — on 2.x — when it is open in a TUI tab. Archived sessions and subagent/child sessions are always excluded.
  4. An entry disappears when its window/server closes (within one ~10-second rescan) or, on 2.x, when the session is closed in every TUI tab. Idling never hides a session that already appeared; closing the last tab does.

A stale 2.x tabs.json (OpenCode sometimes leaves a closed tab listed) can keep a closed session visible until OpenCode rewrites the file or the session is archived.

Entries use the OpenCode session title (falling back to the project folder) and show the session's current model — for example claude-sonnet-4-5 · thinking — in the pad's top line and the PC panel, read from the session itself.

  • Key 1 approves the shown permission request once, using its exact request ID; × → Reject request refuses it. Requests resolved elsewhere are refused as stale.
  • Key 2 opens a terminal attached to that server (1.x: opencode attach, 2.x: the root TUI with --server/--session), so you can watch and steer the same session from a TUI.
  • The knob menu offers Stop turn (abort) while the agent works and Continue to send a Continue prompt when it is idle.
  • Errors and automatic retries turn the entry red; a pending permission request always takes priority in amber.

Session permission questions, structured answers, and model choice stay in the OpenCode TUI: Pulsar displays the model in use but does not change it, and there is no voice for OpenCode entries. Up to the 12 most recently updated sessions per window are listed. Discovery is local to this PC; remote servers are not monitored in this version. OpenCode's server API is experimental and versions may require changes — tested with OpenCode 1.19.2.

OpenCode voice (experimental, push-to-talk)

Tap Key 3 on an OpenCode entry to start push-to-talk: speak, tap again, and the transcribed text is sent as your prompt. The microphone captures only between the two taps and is released immediately afterwards.

Two voice styles are available in the PC app's Speech services section:

  • Summaries (default): during the turn, only brief activity narration is spoken — "Working in the terminal", "Editing files", "Asking your permission" — deduplicated, never raw commands. When the turn finishes, the full reply is summarized to at most two spoken sentences by a local Ollama model of your choice (default gemma4:e2b-it-qat; if Ollama is unreachable a plain "Turn finished." plays instead). Reply text itself is never read aloud.
  • Full text: every completed reply sentence is spoken as the turn streams.

Set up the servers in Speech services: a TTS server URL (OpenAI-compatible /v1/audio/speech; tested with a local Chatterbox TTS server — pick its voice from the server's list), an STT server URL (OpenAI-compatible /v1/audio/transcriptions; tested with a local whisper.cpp server), and the Ollama URL used for summaries. All services are yours: audio goes only to those servers, and no speech models, downloads, or keys are bundled. The companion's listening/speaking animations and the transcript strip work as with Codex voice. Codex's native voice is unchanged.

Download and get started

  1. Download the latest Windows release. Choose …-Setup.exe for a per-user installer, or extract …-Portable.zip and run Pulsar Codex Deck.exe.
  2. Connect your XPAD Mini by USB and open the app. Close Bibimbap or other software that is using the device.
  3. Click Connect Codex to install the session-status hooks. Existing hooks are preserved and backed up. In Codex, run /hooks, review and trust the new hooks, then start/resume a session and send a prompt.

The Windows downloads include Electron, the session backend, and Python. You do not need Node.js, Python, a Flipper Zero, or another source checkout to run the packaged app. You do need an installed, signed-in Codex CLI. The app uses that existing Codex login; it does not need a separate API key.

The builds are currently unsigned. Windows may show an unknown-publisher warning. Download from this repository's Releases page and compare the archive's SHA256 hash with SHA256SUMS.txt from the same release.

What you can do

  • Browse one agent at a time with room for its name, state, activity, and pending request.
  • See status at a glance through RGB lights, even when you are not reading the LCD.
  • Approve a supported pending request once, using its exact live request ID.
  • Open the selected Codex session on your PC without sending a new prompt.
  • Jump to the next agent that needs attention.
  • Start a native Codex voice turn from Key 3 and read its live transcript.
  • Inspect details, reject requests, interrupt a turn, or send a Continue prompt.
  • Change the selected session's permission preset for subsequent turns.
  • Adjust display brightness and switch status lighting on/off.
  • Monitor multiple ComfyUI servers and view their latest generated images.
  • Browse and control local OpenCode TUI sessions: approve permission requests, stop, or continue.

Physical controls

Control Action
Turn knob Previous/next agent; navigate a menu when one is open
Press knob Open agent details; select an item or confirm a settings change
Key 1 Approve the selected agent's displayed request once
Key 2 Open the selected agent on PC
Key 3 tap Toggle a native voice turn; for OpenCode entries: push-to-talk (tap to talk, tap again to send; tap later to end)
Key 3 hold (700 ms) Jump to the next waiting/error agent
+ Open global settings; press again to return to the previous screen
× Back to the agent screen

The three main keys keep the same purpose across the interface. Their labels line up along the bottom of the LCD. Key 1 is dimmed when no supported approval is available. Approval uses a normal press, without a hold or an extra dialog.

The desktop companion mirrors the LCD and has clickable knob, key, and +/× controls. Closing its window leaves it running in the tray; choose Quit from the tray menu to exit. The app does not start at login automatically.

Native voice

Tap Key 3 to start or end a live, turn-taking voice conversation with the selected Codex session. Hold Key 3 for 700 ms to jump to the next waiting or error agent. The desktop companion shows the current target, microphone status, and live transcript as plain text. Spoken replies are off by default. Enable Spoken replies in the companion or + → Spoken replies in global settings; the choice is saved. When enabled, replies use the PC's default audio output. Choose the voice in the companion's Voice selector or the pad's + → Voice picker. Choices come from Codex's native voice catalog. Your selection is saved and applies to the next voice session; changing the voice does not change Spoken replies. Audio is sent to the native Codex service using the existing signed-in Codex login over the current v3/audio WebRTC path. Pulsar adds no speech model or API key. Microphone access follows Windows privacy controls. The microphone stops when the voice session disconnects or Pulsar quits; voice does not auto-resume.

Native voice is experimental and depends on account and Codex service availability. Use the companion's Microphone selector to choose an input, or keep Windows default input selected. Device enumeration only lists inputs; it does not start recording. A voice session remains visible in the companion while you browse other agents.

Microphone names load before recording and update automatically when devices change. The selector retains your saved input, marks disconnected inputs as unavailable, and keeps the last known names during a temporary discovery error. Device IDs persist across app restarts. If upgrading from a version that used temporary IDs, select your microphone once again; no voice session is needed.

Status lighting

Color Meaning
Amber At least one agent needs approval or an answer
Red An agent reported an error
Blue An agent is working
Green No agent is waiting, running, or reporting an error

Waiting takes priority over error, running, and idle states. Reported session states are preserved; inactivity alone never closes or hides a session. ComfyUI jobs that are running or queued also light blue; failed generations contribute to red. An offline connection is shown on its entry and does not count as a generation error or pending approval.

Permission presets

Mode Approval behavior Sandbox
Read-only Ask when additional permission is needed Read-only
Auto Ask when additional permission is needed Workspace write; network disabled by default
No prompts Do not ask for approval; blocked operations remain blocked Workspace write; network disabled
YOLO / Full access No approval prompts Full access

Changes affect the selected agent's subsequent turns. They do not change other agents or an already-running command. The app shows a confirmation before applying a preset and reads the effective settings back from Codex. Custom policies are displayed as Custom rather than silently labeled Auto.

Permission changes can be constrained by Codex or organization policy. Full access deliberately removes Codex's sandbox and approval prompts. These presets are distinct from any other controller's automatic approval feature.

The same four presets are available for OpenCode entries: they patch the selected session's server-side permission ruleset (edit/bash/external-directory rules), and the pad and PC panel read the session's ruleset back and label it — including Custom when the ruleset does not match a preset. Verified against OpenCode 1.19.2: preset ask rules override allow-defaults, deny rules block silently without an ask, and the readback reflects what OpenCode actually stored.

Requirements and current coverage

  • Windows 10/11 x64. Windows 11 has been tested with a real device.
  • Pulsar Lab XPAD Mini, connected by USB: VID 3710, PID 2507, 240×135 LCD.
  • An installed, signed-in Codex CLI with lifecycle hooks and the shared local app-server protocol, including codex app-server proxy.
  • Developed and tested with Codex CLI 0.165.0. The shared-server and settings APIs are experimental; other versions may require changes.
  • Hooks must be allowed by your policy and reviewed/trusted in Codex.

Session discovery uses lifecycle events. It does not scan every open window, read terminal text, or automatically discover internal subagents. CLI sessions must have loaded the hooks and reported an event; sending the first prompt is the normal way to make a new session appear. Controls require the session to be loaded on the shared local server. Desktop-app conversation navigation and macOS/Linux hardware operation have not been independently validated.

Long approval previews are visibly truncated on the small LCD. The full request preview remains available in the companion/on PC, and display truncation never changes which request is approved. Structured questions and unsupported approval types remain for you to answer in Codex.

Hardware behavior

All device changes are temporary RAM changes. The app does not flash firmware or send a Save command. An orderly Quit restores the original key/knob mappings. Unplug/replug restores the device's saved configuration after a crash or forced termination. RGB overrides can remain until a profile switch or reconnect.

All controls use direct USB input, including while a game captures keyboard shortcuts. Main keys and the knob use unsolicited vendor events; +/× use raw button state. The app temporarily suppresses the main keys' and knob's keyboard output, so their original bindings do not also activate in the foreground app. No global function-key shortcuts or injected approval keystrokes are used.

Troubleshooting

No sessions appear

Use Connect Codex, review/trust the entries in /hooks, then start or resume a CLI session and send a prompt. A session that was already open before setup may need to reload its hooks. Check that your policy permits user-defined hooks.

Sessions appear, but controls are unavailable

Check codex --version and that codex app-server proxy is supported. The session must be loaded on the same PC's shared local server. Old journal entries can be visible without being controllable. Use Open on PC when available.

An approval disappears before I can press key 1

Another Codex client/controller may have resolved it. In particular, disable automatic approval in any other Agent Deck/Flipper controller while testing manual approval. Existing command approval rules can also allow an action without presenting a prompt.

Device not connected / input is unresponsive

Use a USB data cable, close Bibimbap and other device clients, then reconnect the pad. If an older version stops responding while a game has focus, update to v0.1.3 or later for direct USB input. The protocol is unofficial and may vary with firmware. Occasional raw-input read timeouts are logged and polling continues; include reproducible symptoms when reporting a problem.

Where are settings and hooks stored?

  • Packaged-app preferences/profile: %APPDATA%\PulsarCodexDeck.
  • ComfyUI connection names and URLs: comfyui.json in that profile.
  • Session event journal: %LOCALAPPDATA%\PulsarCodexDeck\events.sqlite3.
  • If an existing Agent Deck journal is found, it is reused for compatibility.
  • Codex hooks: %CODEX_HOME%\hooks.json, or %USERPROFILE%\.codex\hooks.json. Changes create timestamped .pulsar-deck-….bak backups beside the hook file.

No prompt transcripts, credentials, or telemetry are uploaded by this app. Session summaries, project paths, and activity metadata are stored locally.

Uninstalling

The Windows uninstaller offers to remove only Pulsar's hook entries, preserving other integrations and backing up the file. For a portable install, run this from its extracted directory before deleting/moving it:

.\resources\backend\PulsarBackend.exe uninstall-hooks --apply

Then quit the app and remove the extracted folder. Moving a portable install requires reinstalling its hooks so Codex knows the new backend path. Silent uninstall leaves hooks unchanged; remove them explicitly first if needed.

Run or build from source

Development requires Node.js 22.12+, Python 3.9+, and Git. Packaged users do not need these development tools.

git clone https://github.com/peterpbroere/pulsar-codex-controller.git
cd pulsar-codex-controller
npm ci
npm run setup
npm start

npm run setup creates a local Python environment and installs the small backend dependencies. It does not register hooks automatically. Use Connect Codex in the app or preview and apply the hook setup explicitly:

.venv\Scripts\python.exe python\adapter.py install-hooks
.venv\Scripts\python.exe python\adapter.py install-hooks --apply

Use npm run demo to explore the UI with synthetic sessions and no hardware or real agent actions. Source preferences and local test artifacts stay in work/.

npm test
.venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py" -v
npm run dist:win

dist:win builds the Python backend and the Windows installer/portable ZIP in release/. CI runs the automated checks; tags matching package.json trigger the release workflow. Current releases are public previews.

Optional overrides: PULSAR_PYTHON (source Python executable), PULSAR_CODEX (Codex executable), PULSAR_EVENT_STORE (journal), PULSAR_STATE_DIR (app profile), and PULSAR_AGENT_DECK (advanced compatibility with an external Agent Deck checkout).

Project origins and contributing

The hardware implementation builds on the reverse-engineered protocol from SpinnerMaster/xpad-mini-claude-code. The session/control backend derives from Flipper Agent Deck. The required Python modules are included here; installing either original project is unnecessary.

See CONTRIBUTING.md, SECURITY.md, hardware protocol notes, and third-party notices.

MIT licensed. Community project, not affiliated with Pulsar or OpenAI.

About

Turn a Pulsar XPAD Mini into a physical Codex agent controller: live LCD, RGB status, approvals and knob navigation.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages