Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/CLAUDE_AUTOFIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@ in sync. **A new `mode` cannot work until the prompt on the routine's page has
been updated** — the workflows only send the payload, the prompt is what knows
what to do with it.

**Before copying, diff the two — the routine's page is what actually runs.**
Editing the prompt directly in the web UI is easy and leaves no trace in git,
so the live routine can hold instructions this file has never seen (that is how
`Do not watch the PR you fix` came to exist only on the routine's page). Copying
this file over a drifted routine silently deletes those edits. Read the stored
prompt first, back-port anything missing here, and only then push the merged
version.

**The prompt must stay backward compatible with the payload already in
production**, because the two are deployed separately and never atomically: the
prompt lives in a web UI, the payload in a workflow file. That is why a payload
Expand Down
1 change: 1 addition & 0 deletions .github/CLAUDE_AUTOFIX_ROUTINE_PROMPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Common rules, both modes:
- Never force-push, never rewrite existing history on <branch>, never create another branch, never open or merge a pull request (the PR already exists), and never change repository settings, secrets or labels.
- Never print, echo or copy a secret, token or credential anywhere, including in a commit, a comment or a log.
- Work only inside the checked-out repository, on <branch>, for pull request <number>.
- Do not watch the PR you fix: do not subscribe to its activity and do not keep monitoring it after your reply. Post your answer and end the run. Follow-ups are the next cron run's job, or a new "/claude" command.

=== MODE "scheduled" ===

Expand Down
Loading