feat(cli): add /autofix-pr to check out a PR, fix failures, push back#165
Merged
emal-avala merged 4 commits intomainfrom Apr 23, 2026
Merged
feat(cli): add /autofix-pr to check out a PR, fix failures, push back#165emal-avala merged 4 commits intomainfrom
emal-avala merged 4 commits intomainfrom
Conversation
`/autofix-pr [number]` triggers an end-to-end CI rescue workflow: worktree checkout → lint+test → triage failures → minimal fixes → verify → commit + push. Hard rules baked into the prompt: - work inside a git worktree (don't touch current tree) - re-run the gate after each fix, don't batch speculative edits - never force-push, never skip hooks - never modify tests to make them pass — fix the code they test, or flag the test as wrong and stop - never touch .github/workflows/** as part of an autofix - honor the types, don't cast to bypass type errors - detect project toolchain from AGENTS.md / CONTRIBUTING.md first, fall back to defaults per language Defaults to the current branch's PR; `/autofix-pr <n>` targets a specific PR number.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
# Conflicts: # crates/cli/src/commands/mod.rs
# Conflicts: # crates/cli/src/commands/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds `/autofix-pr [number]` — end-to-end CI rescue in one command.
Flow:
Guardrails in the prompt:
Why
"CI failed, go make it green" is a common ask. Without a skill, the agent often short-cuts: batches speculative edits, force-pushes, or edits tests to match broken behavior. This codifies the right sequence and the guardrails that keep it honest.
Leans on the existing `worktree` tool and the established lint/test conventions in AGENTS.md.
Test plan