Communitygithub.com

dmux 워크플로우

dmux(tmux 창 관리자)를 사용한 다중 에이전트 오케스트레이션. Claude Code, Codex, OpenCode 등 여러 하네스에서 병렬 에이전트 워크플로우를 지원합니다. 여러 에이전트 세션을 병렬로 실행하거나 다중 에이전트 개발 워크플로우를 조정할 때 사용하세요.

dmux 워크플로우란 무엇인가요?

dmux 워크플로우는 tmux 기반 창 관리자 dmux를 활용하여 AI 에이전트 세션을 병렬로 오케스트레이션하는 스킬입니다. Claude Code, Codex, OpenCode, Cline, Gemini, Qwen 등 다양한 에이전트 하네스를 지원하며, 복잡한 작업을 분할-정복 방식으로 병렬 처리할 수 있습니다. 사용자는 'n' 키를 눌러 새 프롬프트 창을 만들고, 'm' 키를 눌러 결과를 메인 세션으로 병합할 수 있습니다. 이 스킬은 연구와 구현 분리, 다중 파일 기능 개발, 테스트-수정 루프, 교차 하네스 작업, 코드 리뷰 파이프라인 등 5가지 워크플로우 패턴을 제공하며, Git 워크트리 통합을 통해 파일 충돌을 방지할 수 있습니다. 병렬 처리는 독립적인 작업에만 적용하고, 각 창이 서로 다른 파일이나 영역을 담당하도록 명확한 경계를 설정하는 것이 중요합니다.

지원 대상✓Claude Code✓Codex CLI~Cursor✓Gemini CLI✓OpenCode
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/dmux-workflows

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

dmux 워크플로우은(는) 무엇을 하나요?

dmux를 사용하여 AI 에이전트 세션을 병렬로 오케스트레이션합니다. dmux는 에이전트 하네스를 위한 tmux 창 관리자입니다.

활성화 시점

  • 여러 에이전트 세션을 병렬로 실행할 때
  • Claude Code, Codex 및 기타 하네스 간의 작업을 조정할 때
  • 분할-정복 병렬 처리가 유리한 복잡한 작업
  • 사용자가 "병렬로 실행", "이 작업 분할", "dmux 사용", "다중 에이전트"라고 말할 때

dmux란?

dmux는 AI 에이전트 창을 관리하는 tmux 기반 오케스트레이션 도구입니다:

  • n 키를 눌러 프롬프트가 있는 새 창 생성
  • m 키를 눌러 창 출력을 메인 세션으로 병합
  • 지원: Claude Code, Codex, OpenCode, Cline, Gemini, Qwen

설치: 패키지를 검토한 후 저장소에서 dmux를 설치하세요. github.com/standardagents/dmux 참조

빠른 시작

# dmux 세션 시작
dmux

# 에이전트 창 생성 (dmux에서 'n'을 누른 후 프롬프트 입력)
# 창 1: "Implement the auth middleware in src/auth/"
# 창 2: "Write tests for the user service"
# 창 3: "Update API documentation"

# 각 창은 자체 에이전트 세션을 실행
# 'm'을 눌러 결과를 병합

워크플로우 패턴

패턴 1: 연구 + 구현

연구와 구현을 병렬 트랙으로 분할:

창 1 (연구): "Research best practices for rate limiting in Node.js.
  Check current libraries, compare approaches, and write findings to
  /tmp/rate-limit-research.md"

창 2 (구현): "Implement rate limiting middleware for our Express API.
  Start with a basic token bucket, we'll refine after research completes."

# 창 1 완료 후, 연구 결과를 창 2의 컨텍스트로 병합

패턴 2: 다중 파일 기능

독립적인 파일 간 작업 병렬화:

창 1: "Create the database schema and migrations for the billing feature"
창 2: "Build the billing API endpoints in src/api/billing/"
창 3: "Create the billing dashboard UI components"

# 모두 병합한 후 메인 창에서 통합 작업 수행

패턴 3: 테스트 + 수정 루프

한 창에서 테스트를 실행하고 다른 창에서 수정:

창 1 (감시자): "Run the test suite in watch mode. When tests fail,
  summarize the failures."

창 2 (수정자): "Fix failing tests based on the error output from pane 1"

패턴 4: 교차 하네스

서로 다른 작업에 다양한 AI 도구 사용:

창 1 (Claude Code): "Review the security of the auth module"
창 2 (Codex): "Refactor the utility functions for performance"
창 3 (Claude Code): "Write E2E tests for the checkout flow"

패턴 5: 코드 리뷰 파이프라인

병렬 리뷰 관점:

창 1: "Review src/api/ for security vulnerabilities"
창 2: "Review src/api/ for performance issues"
창 3: "Review src/api/ for test coverage gaps"

# 모든 리뷰를 단일 보고서로 병합

모범 사례

  1. 독립적인 작업만 병렬화하세요. 서로의 출력에 의존하는 작업은 병렬화하지 마세요.
  2. 명확한 경계를 설정하세요. 각 창은 서로 다른 파일이나 영역을 담당해야 합니다.
  3. 전략적으로 병합하세요. 충돌을 피하기 위해 창 출력을 병합하기 전에 검토하세요.
  4. Git 워크트리를 사용하세요. 파일 충돌이 발생하기 쉬운 작업의 경우 창마다 별도의 워크트리를 사용하세요.
  5. 리소스 인지. 각 창은 API 토큰을 사용하므로 총 창 수를 5-6개 미만으로 유지하세요.

Git 워크트리 통합

겹치는 파일을 다루는 작업의 경우:

# 격리를 위한 워크트리 생성
git worktree add -b feat/auth ../feature-auth HEAD
git worktree add -b feat/billing ../feature-billing HEAD

# 별도 워크트리에서 에이전트 실행
# 창 1: cd ../feature-auth && claude
# 창 2: cd ../feature-billing && claude

# 완료 후 브랜치 병합
git merge feat/auth
git merge feat/billing

보완 도구

도구기능사용 시기
dmux에이전트를 위한 tmux 창 관리병렬 에이전트 세션
Superset10+ 병렬 에이전트를 위한 터미널 IDE대규모 오케스트레이션
Claude Code Task 도구프로세스 내 하위 에이전트 생성세션 내 프로그래매틱 병렬 처리
Codex 다중 에이전트내장 에이전트 역할Codex 특정 병렬 작업

ECC 헬퍼

ECC에는 별도의 Git 워크트리와 함께 외부 tmux 창 오케스트레이션을 위한 헬퍼가 포함되어 있습니다:

node scripts/orchestrate-worktrees.js plan.json --execute

plan.json 예시:

{
  "sessionName": "skill-audit",
  "baseRef": "HEAD",
  "launcherCommand": "codex exec --cwd {worktree_path} --task-file {task_file}",
  "workers": [
    { "name": "docs-a", "task": "Fix skills 1-4 and write handoff notes." },
    { "name": "docs-b", "task": "Fix skills 5-8 and write handoff notes." }
  ]
}

헬퍼는:

  • 작업자당 하나의 브랜치 백업 Git 워크트리를 생성합니다.
  • 선택적으로 메인 체크아웃에서 선택한 seedPaths를 각 작업자 워크트리에 오버레이합니다.
  • .orchestration/<session>/ 아래에 작업자별 task.md, handoff.md, status.md 파일을 작성합니다.
  • 작업자당 하나의 창으로 tmux 세션을 시작합니다.
  • 각 작업자 명령을 자체 창에서 실행합니다.
  • 메인 창은 오케스트레이터를 위해 비워둡니다.

작업자가 아직 HEAD에 포함되지 않은 더티 또는 추적되지 않은 로컬 파일(예: 로컬 오케스트레이션 스크립트, 드래프트 계획, 문서)에 액세스해야 하는 경우 seedPaths를 사용하세요:

{
  "sessionName": "workflow-e2e",
  "seedPaths": [
    "scripts/orchestrate-worktrees.js",
    "scripts/lib/tmux-worktree-orchestrator.js",
    ".claude/plan/workflow-e2e-test.json"
  ],
  "launcherCommand": "bash {repo_root}/scripts/orchestrate-codex-worker.sh {task_file} {handoff_file} {status_file}",
  "workers": [
    { "name": "seed-check", "task": "Verify seeded files are present before starting work." }
  ]
}

문제 해결

  • 창이 응답하지 않음: 창으로 직접 전환하거나 tmux capture-pane -pt <session>:0.<pane-index>로 검사하세요.
  • 병합 충돌: Git 워크트리를 사용하여 창당 파일 변경을 격리하세요.
  • 높은 토큰 사용량: 병렬 창 수를 줄이세요. 각 창은 전체 에이전트 세션입니다.
  • tmux를 찾을 수 없음: brew install tmux(macOS) 또는 apt install tmux(Linux)로 설치하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

관련 스킬