From 8ca134f1a590fff4ce479030f456244276a5dc79 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sat, 14 Feb 2026 09:04:17 +0700 Subject: [PATCH] chore(scripts): broaden refactor loop scope and focus on server/app code --- scripts/codex-refactor-loop.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/codex-refactor-loop.sh b/scripts/codex-refactor-loop.sh index 56b276281..7c9200aa8 100755 --- a/scripts/codex-refactor-loop.sh +++ b/scripts/codex-refactor-loop.sh @@ -13,8 +13,11 @@ CODEX_REASONING_EFFORT="${CODEX_REASONING_EFFORT:-medium}" read -r -d '' PROMPT <<'EOF' || true 1. load the refactor skill and read its SKILL.md fully from top to bottom (do not skim or partially read) 2. check previous commits to see what other agents have worked on -3. identify and work on a single improvement based on the refactor skill (can be a file system reorg, file splitting, refactor, add a new test, harden a test, deflakify a test, fix a test, improve control flow, remove unused code) +3. identify and work on a single large improvement based on the refactor skill (can be a file system reorg, file splitting, refactor, add a new test, harden a test, deflakify a test, fix a test, improve control flow, remove unused code) 4. commit with a description of what was done, your reasoning, and document accomplishments or challenges for the next agent + +guidelines: +- focus on the server and app code, it's the most hairy EOF iteration=1