From codegen-bridge
Monitor running Codegen agents — poll status, review logs, detect blockers, and surface progress. Triggered when codegen_get_run, codegen_get_logs, codegen_list_runs, or codegen_get_execution_context tools are invoked.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codegen-bridge:agent-monitoringThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Monitor Codegen agent runs in real time. This skill activates when checking agent status, reviewing execution logs, or tracking multi-task execution progress. It interprets raw agent output into actionable summaries for the user.
Monitor Codegen agent runs in real time. This skill activates when checking agent status, reviewing execution logs, or tracking multi-task execution progress. It interprets raw agent output into actionable summaries for the user.
Core principle: Poll, interpret, summarize, suggest next action.
This skill is invoked by the model when any of these MCP tools are called:
codegen_get_run — checking a specific run's statuscodegen_get_logs — viewing execution logscodegen_list_runs — browsing recent runscodegen_get_execution_context — checking multi-task progress| Status | Meaning | User-Facing Summary | Next Action |
|---|---|---|---|
queued | Waiting for sandbox | "Agent is queued, waiting for a sandbox..." | Poll again in 30s |
running | Actively executing | "Agent is working on the task..." | Poll again in 30s |
completed | Finished successfully | "Agent completed! Here's what it did..." | Show results + PR link |
failed | Errored out | "Agent failed. Here's what went wrong..." | Show error, offer resume |
paused | Needs human input | "Agent is waiting for your input..." | Show question, get response |
When monitoring a running agent:
codegen_get_run(run_id) immediatelysleep 30
completed, failed) or timeoutOn completed:
codegen_get_logs(run_id, limit=20) for a summary of what happenedpull_requests in the run result for PR linksOn failed:
codegen_get_logs(run_id, limit=30) to see the errortool_output fieldsOn paused:
codegen_get_logs(run_id, limit=10) to see the agent's questionthought — this usually contains the questioncodegen_resume_run(run_id, prompt=<user response>)Call codegen_get_logs(run_id, limit=<N>) with appropriate limits:
| Scenario | Recommended limit | Reason |
|---|---|---|
| Quick status check | 5 | Just the latest activity |
| Post-completion review | 20 | Enough for a summary |
| Debugging a failure | 30 | Need error context |
| Full audit trail | 100 | Complete history |
Use reverse=True (default) for newest-first, or reverse=False for chronological order.
Each log entry may contain:
thought — the agent's reasoning (most useful for understanding intent)tool_name — which tool was called (e.g., Edit, Bash, Read)tool_input — what was passed to the tool (may contain file paths, commands)tool_output — the tool's result (truncated to 500 chars)message_type — entry classificationcreated_at — timestampWhen presenting logs to the user, focus on:
thought fields — why the agent chose an approachBash tool calls with test commandsgh pr create or similar commands appearFormat as a concise summary, not raw log dumps:
Agent completed in 12 steps:
- Modified 3 files: src/auth.py, tests/test_auth.py, src/models.py
- Ran tests: 45 passed, 0 failed
- Created PR #42: "feat: add JWT authentication"
For multi-task executions, use codegen_get_execution_context(execution_id) to get:
Present as a progress dashboard:
Execution: "Implement auth system" (3/5 tasks completed)
Task 1: Add user model [completed] PR #40
Task 2: Add JWT middleware [completed] PR #41
Task 3: Add login endpoint [completed] PR #42
Task 4: Add registration flow [running] Run #789
Task 5: Add password reset [pending]
Iron Law: NO COMPLETION CLAIMS WITHOUT FRESH EVIDENCE.
Before telling the user "the agent completed successfully":
status: completedpull_requests in the run result| Claim | Required Evidence |
|---|---|
| "Agent completed" | status: completed from codegen_get_run |
| "Tests pass" | Test command output in logs showing PASS |
| "PR created" | PR URL in pull_requests array |
| "All files modified" | Edit/Write tool calls in logs matching expected files |
| "No errors" | Full log scan showing no error outputs |
Never say "tests pass" without seeing actual test output in logs. The agent may have skipped tests or tests may have passed vacuously.
When the user has active runs:
| Error | Action |
|---|---|
| Run not found | Verify run ID; suggest codegen_list_runs to find it |
| No logs available | Run may be too new; wait and retry |
| Execution context not found | May have expired; check with specific execution_id |
| Pagination needed | Use cursor from previous response's next_cursor |
sleep 30 between status checks — don't flood the APIcodegen_stop_run for cancellation if the user wants to abortnpx claudepluginhub evgenygurin/codegen-bridge --plugin codegen-bridgeOrchestrates Codex agents for code implementation, file modifications, codebase research, security audits, testing, and multi-step execution workflows.
Audits, reviews, and monitors another agent's work from session IDs, transcripts, PRs, branches, or logs. Reconstructs the original request, inspects evidence, and reports gaps.
Checks worldai-workstreams team agents and summarizes status, commits, and beads. Useful for monitoring agent progress and getting periodic status updates.