Orchestrates multiple AI agents (Claude, Codex, Gemini) for parallel implementation in the background. Separates independent tasks from planning docs, each agent writes code directly. Context-safe with auto-save. Use for "백그라운드 구현", "bg impl", "병렬 구현", "Codex로 구현", "구현해줘", "코드 작성해줘" requests.
Implement independent tasks with isolated parallel workers, then integrate only the diffs that pass verification — in dependency order.
Mechanics (worker invocation, provider recipes, worktree isolation, .context/ layout,
token discipline) live in references/orchestration.md. This file owns the workflow,
the schema, and the integration gate.
From the plan (or the request), extract independent units and their dependencies:
- id: T1
feature: db-migration
files: [migrations/…]
depends_on: []
provider: codex # who implements it (see §3)
verify: how to check it (test cmd, build, manual assertion)
- id: T2
feature: models
depends_on: [T1]
Typical ordering: migrations → models → handlers/services → frontend. Independent leaves (migrations, types, frontend scaffolding) parallelize; dependents wait.
Run tasks in dependency waves; parallelize within a wave, barrier between waves.
Wave 1 (parallel): migration + types + frontend scaffold
Wave 2 (needs migration): models
Wave 3 (needs models): handlers
Only start a wave once its dependencies are integrated and verified (§4).
Choose the provider per task, then give each writer its own git worktree — never let two workers edit the same files (see orchestration reference for the isolation recipe).
| Provider | Best for | Isolation |
|----------|----------|-----------|
| host-native sub-agent (Claude) | complex logic, multi-file changes, deep codebase reading | isolation: worktree frontmatter / EnterWorktree |
| Codex exec | focused code gen, migrations, models | manual git worktree add per worker |
Prefer the host's native worker + native worktree isolation. Use Codex only as a cross-tool fallback or when the user explicitly asks for it.
Pass each worker its task by file path (not inline), scoped to one id, with its
verify command. Tell every worker: do not commit — leave the worktree dirty for the
orchestrator to inspect and apply.
Codex worker recipe (note the global -a/-C placement — the common breakage):
codex -C "$WT" -a never exec -s workspace-write \
-o "$PROJ/.context/impl/${ROUND}-codex-${FEATURE}.md" \
- < "$PROJ/.context/impl/${ROUND}-codex-${FEATURE}.prompt.md"
workspace-write has no network by default and protects .git; install deps up front
and do not rely on the worker committing. Use --output-schema if you need the worker's
summary in a fixed JSON shape.
Prefer the host's native wait/notification. When a worker finishes, do not apply its work blindly:
git -C "$WT" diff).verify command against the worktree. A worker's claim of success is
not evidence — the passing check is.Only fire-and-forget (launch and return immediately) when the user explicitly asks for it.
If verification fails or the user requests fixes, run R02 on the affected tasks only.
Stop when all tasks integrate cleanly and their verifications pass, when a fix needs a
decision not yet authorized, or at the user's round/token bound.
.md file; pass the path, not the body..context/impl/ so the main conversation stays lean.Do
Don't
-s danger-full-access / --dangerously-bypass-approvals-and-sandbox only inside an
externally isolated or disposable worktree runner.codex-cli, and gemini-cli on 2026-07-23. Re-check
codex exec --help before changing recipes; Codex flags move fast. See
references/orchestration.md.npx skills add jiunbae/implementing-in-background下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer
Tags:implementation, background, parallel-execution, autonomous, codex, gemini, multi-llm