diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f9b8d8a7..df0440ae93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -100,6 +100,8 @@ checkpoint, and status-only commits are intentionally omitted. commit lists no longer process entries that are omitted from Codex input. - Thanks @stainlu for the repair prompt, GitHub pagination, lazy context compaction, and review telemetry PRs. +- Cached the static review prompt and decision schema within each ClawSweeper + process instead of re-reading them during review planning and item prompts. ## 0.2.0 - 2026-05-03 diff --git a/src/clawsweeper.ts b/src/clawsweeper.ts index 2e63385a0b..dc59eb50b3 100644 --- a/src/clawsweeper.ts +++ b/src/clawsweeper.ts @@ -639,6 +639,8 @@ const DEFAULT_CODEX_MODEL = "gpt-5.5"; const DEFAULT_REASONING_EFFORT = "high"; const DEFAULT_SERVICE_TIER = ""; const REVIEW_POLICY_VERSION = "2026-05-05-policy-v13"; +const REVIEW_ITEM_PROMPT_PATH = join(ROOT, "prompts", "review-item.md"); +const CLAWSWEEPER_DECISION_SCHEMA_PATH = join(ROOT, "schema", "clawsweeper-decision.schema.json"); const REVIEW_COMMENT_MARKER_PREFIX = "