Help us improve
Share bugs, ideas, or general feedback.
From codegen-bridge
Use when executing implementation plans via Codegen cloud agents instead of locally. Delegates each task as a separate Codegen agent run, monitors progress, and handles blockers. Drop-in replacement for superpowers:executing-plans — works with the same plan format.
npx claudepluginhub evgenygurin/codegen-bridge --plugin codegen-bridgeHow this skill is triggered — by the user, by Claude, or both
Slash command
/codegen-bridge:executing-via-codegenThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Load plan, delegate each task to a Codegen cloud agent, monitor until done, report results.
Executes written implementation plans by delegating all code tasks to subagents with dependency-aware dispatch, context preservation, review checkpoints, and lower-cost models.
Orchestrates Codex agents for code implementation, file modifications, codebase research, security audits, testing, and multi-step execution workflows.
Share bugs, ideas, or general feedback.
Load plan, delegate each task to a Codegen cloud agent, monitor until done, report results.
Core principle: One task = one agent run. You orchestrate, Codegen executes.
Announce at start: "I'm using the executing-via-codegen skill to execute this plan via Codegen cloud agents."
CODEGEN_API_KEY and CODEGEN_ORG_ID environment variables setcodegen_create_run, codegen_get_run, codegen_get_logs, codegen_resume_run, codegen_stop_run, codegen_start_execution, codegen_get_execution_context, codegen_get_agent_rulesThese tools enhance the execution workflow but are not required:
codegen_check_integration_health — verify integrations before running (Step 2)codegen_bulk_create_runs — batch-create runs for independent tasks (Step 3 alternative)codegen_monitor_run_background — background monitoring with progress callbacks (Step 3c alternative)codegen_get_run_analytics — analytics after all runs complete (Step 5 enhancement)If a plan path was provided, read it
Otherwise, look for the most recent plan in docs/plans/ (pattern: YYYY-MM-DD-*.md)
If no plan found, ask the user for the path
The plan may contain a superpowers header like:
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans
This is fine — executing-via-codegen is the cloud alternative. Proceed normally.
### Task N: ...)codegen_start_execution(mode="plan", plan_tasks=[...]) — this returns an execution_id that tracks all tasks and their statecodegen_list_repos to verify the repository is accessiblerepo_id for subsequent calls (or let auto-detect handle it)codegen_check_integration_health to verify webhooks, GitHub app, and API connectivity are healthy before creating runs. If any check fails, surface it to the user before proceeding.codegen_get_models to see available modelsIf the plan contains tasks that are independent (no inter-task dependencies), consider using codegen_bulk_create_runs to launch them all at once:
codegen_bulk_create_runs(
tasks=[
{prompt: <task_1_prompt>, execution_id: <ctx_id>},
{prompt: <task_2_prompt>, execution_id: <ctx_id>},
...
],
agent_type="claude_code"
)
This returns all run IDs at once and is faster than sequential creation. Skip to Step 3c for monitoring. See the bulk-delegation skill for details.
If tasks have dependencies (Task 2 needs Task 1's output), use sequential execution below.
For each task in the plan:
a. Build the prompt:
Use the delegate_task prompt template as base, then compose:
## Context
[Plan header: Goal, Architecture, Tech Stack]
Previously completed tasks:
- Task 1: [one-line summary of result]
- Task 2: [one-line summary of result]
## Your Task
[Full text of current task from plan — all steps verbatim]
## Constraints
- Create a branch from main (or the current default branch)
- Run tests after each step
- Commit with conventional commit messages
- Create a PR when done
b. Create the agent run:
codegen_create_run(
prompt=<composed prompt>,
execution_id=<ctx_id>,
repo_id=<detected or explicit>,
agent_type="claude_code"
)
The execution_id enables auto-enrichment — the run prompt is automatically enriched with execution context (goal, completed tasks, previous results).
If a model was selected in Step 2b, pass model=<selected>.
c. Monitor progress:
(v0.6 preferred) Use codegen_monitor_run_background(run_id=<id>, execution_id=<ctx_id>) to start background monitoring. This automatically polls, detects status transitions, and reports progress without manual sleep loops. You will be notified when the run reaches a terminal state.
Manual polling (fallback): Poll every 30 seconds:
sleep 30
Then call codegen_get_run(run_id=<id>, execution_id=<ctx_id>). The execution_id enables auto-parsing — run results are automatically parsed and stored in the execution context. Check the status field:
| Status | Action |
|---|---|
running | Continue polling. Show: "Task N still running..." |
queued | Continue polling. Show: "Task N queued..." |
completed | Go to step d |
failed | Go to step e |
paused | Go to step f |
Max polling: 10 minutes per task. After 10 min, show status and ask user.
d. On completion — Two-Stage Review Gate:
Before moving to the next task, review the agent's output. Use the reviewing-agent-output skill process:
Stage 1: Spec Compliance (always)
codegen_get_logs(run_id, limit=30, reverse=false) — chronological reviewcodegen_get_run(run_id, execution_id=<ctx_id>) to check for PRscodegen_resume_run(run_id, prompt="Missing: [specific items]")debugging-failed-runs skill, then create new run with better promptStage 2: Code Quality (for risky tasks) Apply full quality review for: auth/security changes, database migrations, multi-file refactors, and the final task in a plan. For simple model/schema/test additions, Stage 1 is sufficient.
console.log/debug artifacts in Edit tool inputscodegen_resume_run(run_id, prompt="Fix: [specific issues]")After review passes: 9. Report to user:
e. On failure:
Use the debugging-failed-runs skill for systematic diagnosis:
codegen_get_logs(run_id, limit=50, reverse=false) — full chronological viewcodegen_resume_run(run_id, prompt=<targeted fix based on diagnosis>)codegen_stop_run(run_id) if still running, then haltf. On pause (agent needs input):
codegen_get_logs(run_id, limit=10) to see what agent is askingcodegen_resume_run(run_id, prompt=<user response>)After each task completes, use codegen_get_execution_context for a progress report:
After all tasks, use the execution_summary prompt to generate a final report:
(v0.6) Call codegen_get_run_analytics to enrich the summary with:
See the run-analytics skill for interpretation guidance.
| Aspect | executing-plans (local) | executing-via-codegen (cloud) |
|---|---|---|
| Where | Your terminal | Codegen cloud sandbox |
| Output | Files on disk | PRs on GitHub |
| Branch | Git worktree required | Codegen creates branch |
| Review | Local diff | PR diff on GitHub |
| Batch size | 3 tasks per batch | 1 task = 1 agent run |
| Monitoring | Direct stdout | codegen_get_logs |
| Cancel | Ctrl+C | codegen_stop_run |
| Context | Manual prompt building | Auto-enriched via execution_id |
STOP immediately when:
If codegen_create_run returns HTTP error:
If polling times out (10 min):
codegen_bulk_create_runs for independent tasks)execution_id with codegen_create_run and codegen_get_run for automatic context enrichment and parsingcodegen_monitor_run_background over manual sleep loops when availablesleep 30 between checks (fallback if background monitoring unavailable)codegen_stop_run for cancellation — don't just stop pollingcodegen_get_execution_context for progress trackingcodegen_check_integration_health before starting a batch of runscodegen_get_run_analytics after completion for performance insights