OpenMicro

by stephenleoโœ“ Verified

๐ŸŽฎ Codex Micro functionality using any Gaming Controller on any Coding Harness!

122
Stars
16
Forks
TypeScript
Language
8/23/2026
Added
View on GitHubDownload ZIP

โš ๏ธ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/stephenleo/OpenMicro

Getting Started

Guides for using skills like OpenMicro.

Security Report

Verified

Last scanned: โ€”

{
  "status": "PASSED",
  "issues": []
}

README.md

OpenMicro connects game controllers to Claude Code and Codex CLI

One controller. Your agent workflow.

Bring Codex Micro to any gaming controller and coding harness

Start in 60 seconds

You need macOS, Node.js 22 or newer, Claude Code or Codex CLI, and a connected controller. OpenMicro is macOS-first; other platforms are not yet tested.

npm i -g openmicro

openmicro claude # or just: openmicro
openmicro codex
openmicro codex-app # drive the Codex macOS desktop app

openmicro codex-app drives the Codex desktop app instead of a terminal CLI: new chat and prompt prefill use codex:// deep links (no permission needed), while submit (Enter), reject (Esc), dictation (Ctrl+Shift+D), d-pad arrows, and Ctrl+U send keystrokes and need Accessibility permission for your terminal. A stick-flick prompt prefills the composer; press submit to send it. The app launches automatically and the terminal shows live status (controller, actions, agent state).

The thinking-depth dial (right-stick flicks) needs one-time setup: the app ships "Increase reasoning effort" and "Decrease reasoning effort" shortcuts unassigned, and assignments are account-synced so OpenMicro cannot set them for you. In the Codex app open Settings โ†’ Keyboard shortcuts, search "effort", and assign Increase to โŒƒโŒฅ= (Control+Option+=, Ctrl+Alt on Windows) and Decrease to โŒƒโŒฅ- โ€” right-stick flicks then step the composer's reasoning effort. These chords avoid the app's Ctrl/Cmd +/- zoom shortcuts. Note the app's own Decrease shortcut stops one step short of the lowest effort level (also when pressed physically) โ€” use the model picker for that. Optionally also assign "Open model picker" to โŒƒโ‡งM โ€” right-stick click then opens the picker so you can watch the effort change. Assigned different chords? Remap thinking_depth in your OpenMicro config to matching keys bindings.

OpenMicro installs its lifecycle hooks automatically. If Codex reports that its hooks changed, open /hooks in Codex and trust the OpenMicro hooks.

Controller support depends on the exact device and connection. Check the controller compatibility guide before you start, or run openmicro doctor to test your controller.

Default controls

DualSenseGameSir G7 Pro
Default OpenMicro DualSense controlsDefault OpenMicro GameSir G7 Pro controls

Text control reference

ControlAction
south (โœ• / A)Submit or confirm
east (โ—‹ / B)Interrupt or dismiss
north (โ–ณ / Y)Push-to-talk
west (โ–ก / X)Start a new chat
d-padNavigate TUI menus; repeats while held
left stick flick up / down / left / rightReview PR / debug / refactor / write tests
right stick flick right / leftIncrease / decrease thinking depth
R1Cycle modes (Shift+Tab)
R2Clear the input line (Ctrl+U)
right stick click (R3)Open the model picker (Codex app, with shortcut setup)
touchpad clickFocus the next session by default, where supported
L2Cycle herdr spaces; touchpad then cycles agents in the space

Stick flicks fire after returning to center. Rotation gestures (rstick_cw/rstick_ccw, one step per quarter-turn) remain available for remapping. Hold L1 with south, east, west, north, d-pad up, or d-pad down to select one of six layers. The first layer ships with these defaults; the other five start empty. Other controls are unbound by default and remappable.

Voice and thinking-depth support varies by harness; see OpenMicro feature parity.

See it in action

Animated demos (rendered, not filmed) of the six core interactions:

Lightbar status colors follow the focused session
Status lightbar โ€” executing, waiting, done, error
Face buttons submit, interrupt, dictate, and start a new chat
Command keys โ€” โœ• โ—‹ โ–ณ โ–ก
Left-stick flick launches a workflow prompt
Workflow flick โ€” stick up = review PR
Right-stick flicks step thinking depth
Thinking dial โ€” stick flicks step /effort
L1 plus a face button switches control layers
Layers โ€” hold L1 to switch
Touchpad click moves focus between sessions
Multi-session โ€” touchpad switches focus

What it gives you

  • Respond to agents without hunting through terminal tabs.
  • Launch review, debug, refactor, and test workflows with a stick flick.
  • Switch among active sessions from one controller.
  • See focused-session state on DualSense.
  • Remap six layers for project-specific workflows.
  • First-class herdr support: sessions appear in the herdr workspace overview, and the controller drives herdr spaces and agents.

OpenMicro feature parity

โœ… supported ยท โš ๏ธ setup required or best-effort ยท โ€” no verified equivalent

CapabilityClaude CodeCodex CLI
Launch and forward CLI argumentsโœ… openmicro claudeโœ… openmicro codex
Submit / confirmโœ… Enterโœ… Enter
Interrupt / dismissโœ… Escapeโœ… Escape
Start a new chatโœ… /clearโœ… /new
D-pad TUI navigationโœ… Arrow-key passthroughโœ… Arrow-key passthrough
Stick-triggered workflow promptsโœ… Supportedโœ… Supported
Push-to-talkโœ… Enable with /voiceโ€” No equivalent
Thinking-depth dialโœ… /effort, low โ†’ maxโ€” No deterministic binding
Six remappable control layersโœ… Supportedโœ… Supported
Multi-session focus switchingโœ… Supportedโœ… Supported
Executing statusโœ… Prompt and tool hooksโœ… Prompt and tool hooks
Waiting-for-input statusโœ… Questions and notificationsโœ… Permission requests
Stop statusโœ… Stop hookโœ… Stop hook
Error statusโš ๏ธ Notification-text matchingโ€” No error hook signal
Hook installationโœ… Automaticโš ๏ธ Trust changes in /hooks

Layers, workflows, navigation, and session switching are handled by OpenMicro itself. Harness-specific gaps are left unmapped instead of sending guessed keystrokes. A Stop event means the agent stopped; it does not guarantee success.

Configure controls and workflows

OpenMicro creates ~/.openmicro/config.json on first run. Edit bindings, layer colors, and workflow prompt text there. Invalid configuration stops startup without overwriting the file.

{
  "layers": [
    {
      "name": "Layer 1",
      "color": { "r": 255, "g": 255, "b": 255 },
      "bindings": {
        "south": { "type": "accept" },
        "lstick_up": { "type": "workflow", "presetId": "review-pr" },
        "rstick_right": { "type": "thinking_depth", "delta": 1 }
      }
    },
    { "name": "Layer 2", "color": { "r": 160, "g": 32, "b": 240 }, "bindings": {} },
    { "name": "Layer 3", "color": { "r": 0, "g": 255, "b": 255 }, "bindings": {} },
    { "name": "Layer 4", "color": { "r": 255, "g": 140, "b": 0 }, "bindings": {} },
    { "name": "Layer 5", "color": { "r": 255, "g": 20, "b": 147 }, "bindings": {} },
    { "name": "Layer 6", "color": { "r": 255, "g": 255, "b": 0 }, "bindings": {} }
  ],
  "workflows": {
    "review-pr": "Review this PR for correctness, security, and style issues."
  }
}

Binding keys can be buttons such as south and dpad_up, or gestures such as lstick_up and rstick_cw. Actions include accept, reject, push_to_talk, new_chat, thinking_depth, workflow, prompt, focus_session, layer, herdr_space, and raw keys.

Sessions and status

The first OpenMicro process owns the controller and becomes the host. Later processes register as clients, so one controller can drive several terminal sessions. On supported pads, touchpad click cycles focus by default.

On DualSense, the lightbar follows the focused session: blue while executing, amber while waiting, green when stopped, red on a detected error, and dim white while idle. The five player LEDs show occupied session slots.

Herdr integration

OpenMicro treats herdr as a first-class environment. Everything below is automatic and a no-op outside herdr or when the herdr CLI is absent.

  • State reporting. A wrapped session running inside a herdr-managed pane reports its state (working/blocked/idle) to herdr, so it shows up in the herdr agents panel. OpenMicro claims the pane at startup and releases it on exit.
  • Space switching. L2 cycles through herdr workspaces ("spaces") and back to local mode.
  • Agent cycling. While a space is selected, the touchpad cycles focus across that space's agents instead of local sessions.
  • Focus follows herdr. Voice and keystrokes retarget to the agent focused in herdr โ€” switching spaces or agents never spills input into a session in another space.

Controller compatibility

See CONTROLLERS.md for the full list of community-tested controllers, connection-specific notes, and per-device status.

Test or contribute a controller

openmicro doctor

The diagnostic checks controller input and, on DualSense, lightbar/player-LED output. It writes a <vid>-<pid>-<transport>.json report that can be added unchanged to test/fixtures/controllers/; CI then replays the captured inputs as a regression test. See CONTROLLERS.md for contribution steps.

Hardware notes

  • DualSense is the only controller with lightbar and player-LED output. DS4, Xbox, and GameSir controllers are input-only; generic HID input is best-effort because report layouts vary.
  • DualSense has five player LEDs, so feedback represents at most five active session slots.

Add another harness

The public openmicro/harness API exposes the Harness contract and registerHarness(). Implement the contract, return null for actions without a verified CLI equivalent, and register it before OpenMicro resolves the harness.

import { registerHarness } from 'openmicro/harness'
import type { Harness } from 'openmicro/harness'

const myHarness: Harness = {
  kind: 'my-cli',
  command: 'my-cli',
  buildArgs: (args) => args,
  installHooks: () => ({ changed: false, trustNotice: null }),
  stateForHookEvent: () => null,
  resolveAction: (action) => {
    if (action.type === 'accept') return { bytes: '\r' }
    if (action.type === 'reject') return { bytes: '\x1b' }
    if (action.type === 'prompt') return { bytes: `${action.text}\r` }
    if (action.type === 'keys') return { bytes: action.bytes }
    return null
  },
}

registerHarness(myHarness)

The binary does not load harness plugins from configuration yet, so a third-party registration currently needs a small custom entry point.

Embed controller input

The openmicro/controller API exposes the same controller manager used by the CLI without starting the CLI, installing hooks, creating configuration, opening a PTY, or binding a server.

import { HidManager } from 'openmicro/controller'
import type { ControllerEvent } from 'openmicro/controller'

const controller = new HidManager()
controller.on('data', (event: ControllerEvent) => {
  // Handle normalized controller input.
})
controller.start()

// Release polling and the active HID device during shutdown.
controller.stop()

start() discovers and verifies a supported device, emits a connected event, then emits deduplicated button and axis state changes. Stick axes use -1..1; triggers use 0..1. A disconnected event is followed by automatic reconnect polling. start() and stop() are idempotent; call stop() when the consumer shuts down to release polling and device ownership.

Embed GUI status logs

The side-effect-free openmicro/logging API exposes the same safe status messages as the OpenMicro GUI CLI:

import { actionStatus, agentStatus, controllerStatus } from 'openmicro/logging'

const lifecycle = controllerStatus(controllerEvent)
const action = actionStatus('north', 'dualsense', { type: 'push_to_talk', pressed: true })
const state = agentStatus(['waiting'], previousStateKey)

Each function returns { message, tone } or null; agent statuses also return stateKey for the next deduplication call. Prompt text and unknown raw key bytes are never included. The embedding application owns output, ANSI styling, successful-action checks, and repeat/release suppression.

Troubleshooting

Controller is connected but OpenMicro cannot open it

Another process probably owns the device exclusively. Quit other controller tools, Steam, browser tabs using Gamepad/WebHID, and PS Remote Play, then retry.

On macOS, this command lists processes with the DualSense open:

ioreg -r -n "DualSense Wireless Controller" -l -w0 | grep IOUserClientCreator

Current macOS versions do not require Input Monitoring permission for game controllers.

Frequently Asked Questions

What is OpenMicro?โŒ„

OpenMicro is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by stephenleo. ๐ŸŽฎ Codex Micro functionality using any Gaming Controller on any Coding Harness!. It has 122 GitHub stars.

Is OpenMicro safe to use?โŒ„

Yes. OpenMicro passed SkillsLLM's automated security scan โ€” a dependency vulnerability audit plus prompt-injection heuristics โ€” with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install OpenMicro?โŒ„

Clone the repository with "git clone https://github.com/stephenleo/OpenMicro" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is OpenMicro written in?โŒ„

OpenMicro is primarily written in TypeScript. It is open-source under stephenleo on GitHub, so you can review or fork the full source.

Are there alternatives to OpenMicro?โŒ„

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh OpenMicro against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’
15

An agentic skills framework & software development methodology that works.

โญ 234,966โ‘‚ 20,863Shell
AI Agentsai-agentsbrainstorming
View details โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI Agentsclaude-codeai-tools
View details โ†’

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

โญ 120,031โ‘‚ 19,897Shell
AI Agents
View details โ†’

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’
15

An agentic skills framework & software development methodology that works.

โญ 234,966โ‘‚ 20,863Shell
AI Agentsai-agentsbrainstorming
View details โ†’

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

โญ 201,881โ‘‚ 60,308TypeScript
MCP Serversapisai-tools
View details โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI Agentsclaude-codeai-tools
View details โ†’