This folder contains reusable prompt files and helper scripts for Codex-driven repository maintenance workflows.
AGENTS.mddefines the local todo-file format and maintenance rules for agent edits in this directory.todo.mdandtodo-<name>.mdfiles are the default implementation queues. Codex starts at the first listed queue that still has todo items, completes the first unfinished item, and archives finished entries intodone.md. Completed queues may stay behind as short handoff notes that point at the next file.done.mdrecords completed todo items that have been removed from the active queue.builder/contains the reusable prompt templates thatagent.shruns:resolve-todo.md,planner.md,simplify-and-refactor.md, andstage-and-commit.md.builder/resolve-todo.mdis a rendered template.agent.shinjects the selected todo files into it, then Codex inspects the first active queue, implements the first unfinished item, and moves finished items intodone.md.builder/planner.mdis a rendered template for refining todo plans before implementation.agent.sh --refineinjects the selected todo files into it and runs it as a planner-only pass.builder/simplify-and-refactor.mdasks Codex to review the codebase for cleanup, deduplication, and documentation improvements.builder/stage-and-commit.mdtells Codex to stage and commit the current worktree using the rules inAGENTS.md.agent.shruns the maintained prompt sequence, accepts todo files as positional arguments, accepts--itersto control how many times the loop executes, accepts--refineto run only the planner pass, accepts--promptto run a comma-separated custom prompt sequence once by default, accepts--codex/--claudeto select the backing agent CLI, and stops early when all selected todo files have no numbered or unchecked Markdown task-list items in implementation mode.agent.mddocuments theagent.shcommand-line helper.
- Keep reusable instructions in the individual prompt files instead of embedding
large prompt text directly in
agent.sh. - When one queue is emptied, leave a short completion note in that file and hand the active backlog to the next listed queue file.
- Update the prompt file list in
agent.shif the workflow order changes, so the automation and this README stay aligned. - Run
prompt/agent.sh --helpto inspect the supported command-line flags. Example:prompt/agent.sh prompt/todo.md --iters 10. Plan refinement example:prompt/agent.sh --refine prompt/todo.md. Custom prompt sequence example:prompt/agent.sh --prompt resolve-todo.md,stage-and-commit.md. Claude example:prompt/agent.sh --claude --prompt resolve-todo.md,stage-and-commit.md.