tasks: add review-unmerged-task-branches.sh wrapper to launch Codex agent

This commit is contained in:
Rai (Michael Pokorny)
2025-06-24 13:49:10 -07:00
parent aa0a4bfba4
commit c370c0cca6
2 changed files with 22 additions and 1 deletions

View File

@@ -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.
---

View 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."