From 991819481224cba39122c028ccecaff63c9ca132 Mon Sep 17 00:00:00 2001 From: Vitalii Mishchenko Date: Thu, 14 May 2026 19:53:55 -0700 Subject: [PATCH 1/4] Add run_agent.py to execute prompt templates with auggie Implements a universal Python script to run prompt templates against the auggie coding agent. Resolves template paths, substitutes environment variables (DRAFT_REPO_DIR, DRAFT_BRANCH, DRAFT_BASE_BRANCH, DRAFT_SPEC_FILE), validates auggie auth, and handles output verdicts (approval if no issues found, rejection if FOUND_ISSUES present). Includes comprehensive test coverage for all functionality. Will serve as a reviewer in the review-implementation step of config.yaml. --- scripts/run_agent.py | 128 +++++++++++++++++++++++ tests/draft/test_run_agent.py | 190 ++++++++++++++++++++++++++++++++++ 2 files changed, 318 insertions(+) create mode 100755 scripts/run_agent.py create mode 100644 tests/draft/test_run_agent.py diff --git a/scripts/run_agent.py b/scripts/run_agent.py new file mode 100755 index 0000000..8f38524 --- /dev/null +++ b/scripts/run_agent.py @@ -0,0 +1,128 @@ +#!/usr/bin/env python3 +"""Runs a prompt template against auggie. + +Usage: run_agent.py