mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
tasks: add review-unmerged-task-branches.sh wrapper to launch Codex agent
This commit is contained in:
@@ -35,7 +35,15 @@ Tasks live under `agentydragon/tasks/` as individual Markdown files. Please upda
|
||||
- Without `--agent`, this creates or reuses a worktree at
|
||||
- `agentydragon/tasks/.worktrees/<task-id>-<task-slug>` off the `agentydragon` branch.
|
||||
- With `--agent`, after setup it launches a Codex agent in that workspace,
|
||||
- preloaded to work on the specified task from its Markdown file.
|
||||
- preloaded to work on the specified task from its Markdown file.
|
||||
|
||||
- **Review helper**: in the repo root run:
|
||||
|
||||
```sh
|
||||
agentydragon/tasks/review-unmerged-task-branches.sh
|
||||
```
|
||||
|
||||
This will launch a Codex agent to review all `agentydragon/NN-slug` branches not yet merged into `agentydragon`, prompting you to merge completed tasks and reporting any branches that need further work.
|
||||
|
||||
---
|
||||
|
||||
|
||||
13
agentydragon/tasks/review-unmerged-task-branches.sh
Executable file
13
agentydragon/tasks/review-unmerged-task-branches.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# review-unmerged-task-branches.sh
|
||||
#
|
||||
# Launch a Codex agent to review all task branches not yet merged and facilitate merging completed tasks.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
codex "Your task is to review all branches matching 'agentydragon/[0-9][0-9]-*' that are not merged into the 'agentydragon' branch.\
|
||||
For each branch: determine its slug and run 'create-task-worktree.sh --agent <slug>' in agentydragon/tasks/. Work in the generated worktree.\
|
||||
Review the task's Markdown and any code changes to ensure the task is complete, documented, and Status/Implementation sections are accurate.\
|
||||
After reviewing each branch, ask me if I should merge it into 'agentydragon'; if I approve, perform the merge and clean up the worktree and branch.\
|
||||
At the end, present a summary of any branches still needing further work."
|
||||
Reference in New Issue
Block a user