Cmux Socket Policy
Socket command threading and focus rules for cmux, keeping automation from stealing app focus.
- CCM score
- 68 of 100
- skills.sh installs
- 5.1K
- GitHub stars
- 29K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers off-main handling for high-frequency telemetry commands and main-actor rules for AppKit and Ghostty UI state
- Enforces that non-focus socket and CLI commands never activate the app or raise windows without explicit focus intent
- Lists explicit focus-intent commands such as
window.focus,workspace.select,surface.focus, andpane.focus - Designed for contributors adding socket commands, CLI open commands, or relay-exposed v2 methods to cmux
Install
$ npx -y skills add manaflow-ai/cmux --skill cmux-socket-policy -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
cmux Socket Policy
Threading policy
- Do not use
DispatchQueue.main.syncfor high-frequency socket telemetry commands such asreport_*,ports_kick, status/progress updates, or log metadata updates. - For telemetry hot paths, parse and validate arguments off-main.
- Dedupe and coalesce off-main first.
- Schedule minimal UI/model mutation with
DispatchQueue.main.asynconly when needed. - Commands that directly manipulate AppKit/Ghostty UI state are allowed to run on the main actor.
- If adding a new socket command, default to off-main handling and require an explicit reason in code comments when main-thread execution is necessary.
Focus policy
Details
- Repository
- github.com/manaflow-ai/cmux
- Categories
- CLI & Terminal, Code Review & Quality
- First seen
- Jul 14, 2026
Questions
What does the cmux-socket-policy skill do?
It sets the threading and focus rules for cmux CLI and socket work. It covers adding or changing socket commands, telemetry commands, and automation that could steal app focus. Non-focus commands keep the user's current focus while still applying data changes.
How do I install the cmux-socket-policy skill?
Run npx -y skills add manaflow-ai/cmux --skill cmux-socket-policy -y in a project. The skill then guides the agent when adding or changing cmux socket and CLI commands.
Where does cmux-socket-policy rank in its category?
It sits in the CLI and Terminal category and ranks in the top 50 on that category page. Other skills listed alongside it include herdr, gws-shared, opentui, cf-cli and pnpm.
When should I use cmux-socket-policy?
Use it when you add socket commands, change focus, select, open, close or send-key behavior, or write telemetry commands. It keeps those changes from pulling app focus unless the command has explicit focus intent.
More from manaflow-ai/cmux
All 21- Cmux Ghostty5.1K
- Cmux Shared Behavior5K
- Cmux Debug Windows604
- Release133
- Cmux10.4K
- Cmux Browser9.2K
- Cmux Markdown8.1K
- Cmux Settings7.8K
- Cmux Workspace7.5K
- Cmux Customization7.2K
- Cmux Diagnostics6.9K
- Cmux Keyboard Shortcuts6.7K
- Cmux Custom Sidebar5.3K
- Cmux Testing5.3K
- Cmux Dev Workflow5.2K
- Cmux Architecture5.2K
- Cmux Debugging5.1K
- Cmux Backend5.1K
- Cmux Release5.1K
- Cmux Localization5.1K
Similar to Cmux Socket Policy
More CLI & Terminalcmux-workspacemanaflow-ai/cmux7.5K installsScoped cmux automation that targets the caller's workspace and avoids disruptive focus changes.
cmux-customizationmanaflow-ai/cmux7.2K installsCustomize cmux configs, actions, layouts, dock controls, and viewers with schema-backed, validated edits.
electronvercel-labs/agent-browser16.8K installsAutomate Electron desktop apps by connecting agent-browser to their Chrome DevTools Protocol port.
computer-automationweb-infra-dev/midscene-skills3.3K installsVision-driven desktop automation that controls local or remote Windows desktops from screenshots alone.
cmux-terminal-multiplexerreason-machines/trending-skills1.4K installsTerminal multiplexer with a programmable socket API and snapshot-based browser automation for AI coding agents.