From c370c0cca62659e72844b546683f30abe89a62f7 Mon Sep 17 00:00:00 2001 From: "Rai (Michael Pokorny)" Date: Tue, 24 Jun 2025 13:49:10 -0700 Subject: [PATCH] tasks: add review-unmerged-task-branches.sh wrapper to launch Codex agent --- agentydragon/README.md | 10 +++++++++- agentydragon/tasks/review-unmerged-task-branches.sh | 13 +++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 agentydragon/tasks/review-unmerged-task-branches.sh diff --git a/agentydragon/README.md b/agentydragon/README.md index 9a6b196aca..b1bbfec7cd 100644 --- a/agentydragon/README.md +++ b/agentydragon/README.md @@ -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/-` 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. --- diff --git a/agentydragon/tasks/review-unmerged-task-branches.sh b/agentydragon/tasks/review-unmerged-task-branches.sh new file mode 100755 index 0000000000..7c2b2c229e --- /dev/null +++ b/agentydragon/tasks/review-unmerged-task-branches.sh @@ -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 ' 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." \ No newline at end of file