Shared Awareness
Both humans and AI agents use the same tmux session naming convention (omo-{project}-{service}). One starts a server, the other reuses it.
pnpm add -D @chriscode/devmuxnpm install -D @chriscode/devmuxnpx @chriscode/devmux statusShared Awareness
Both humans and AI agents use the same tmux session naming convention (omo-{project}-{service}). One starts a server, the other reuses it.
Idempotent by Design
devmux ensure is safe to run multiple times. If the service is already running, it reuses it. No port conflicts. No duplicate processes.
Zero Config for Turbo
Auto-discovers services from your turbo.json. Just run devmux discover turbo and you’re set.
Built for AI Agents
Includes AGENTS.md template with exact instructions for Claude Code, OpenCode, and other AI coding assistants.
When AI coding assistants work on your project, they often need to start dev servers:
devmux creates shared awareness through tmux session naming:
# Human starts the APIdevmux ensure api# -> Creates tmux session: omo-myproject-api
# Later, AI agent needs the APIdevmux ensure api# -> Sees omo-myproject-api already running# -> Reuses it (no restart!)
# Check what's runningdevmux status# Service Status Port Session# api running 8787 omo-myproject-apiBoth human and agent see the same services. Both can start, stop, or reuse them.
# Initialize config (auto-detects from turbo.json)devmux init
# Start your API (idempotent - safe to run multiple times)devmux ensure api
# Check statusdevmux status
# View logsdevmux attach api
# Run a command with services, cleanup on exitdevmux run --with api -- npm test
# Stop when donedevmux stop apiAdd this to your AGENTS.md file so AI assistants know how to use devmux:
## Service Management
Before starting dev servers, check if they're already running:
\`\`\`bashdevmux status\`\`\`
To start a service (idempotent):
\`\`\`bashdevmux ensure api\`\`\`
NEVER start servers with raw commands like `pnpm dev`.Always use devmux to prevent port conflicts.See the AI Agent Integration guide for the full template.