Workflows
This guide covers the main workflow in Autogit for creating and managing pull requests.
Smart PR State Machine
Section titled “Smart PR State Machine”The PR command (8) is context-aware and performs different actions based on your current state:
Outcomes
Section titled “Outcomes”| Context | Action |
|---|---|
| On main + issue selected | Creates branch + worktree, switches to it, creates draft PR |
| On main + no issue | Opens popup to enter issue number |
| On feature branch + no PR | Creates standard PR (ready for review) |
| On feature branch + draft PR | Marks PR as ready for review |
| On feature branch + ready PR | Shows “PR is already published” message |
Why Draft vs Standard?
Section titled “Why Draft vs Standard?”Draft PR (when creating branch from issue on main):
- Signals to other agents that work has started on this issue
- Allows you to push early and get CI feedback
- Lets you iterate before marking ready for review
Standard PR (when submitting from existing feature branch):
- You’re explicitly ready to submit for review
- Created ready for review immediately
Typical Workflows
Section titled “Typical Workflows”Starting Fresh (from issue)
Section titled “Starting Fresh (from issue)”- On
mainbranch, select an issue in the Issues panel - Press
8(Smart PR) - Autogit creates a feature branch and a worktree for it
- Autogit switches to the new worktree
- Autogit creates a draft PR linking to the issue
- Work on your changes, commit with
7(Smart Commit) - When ready, press
8again → PR marked ready for review
Submitting Work (from existing branch)
Section titled “Submitting Work (from existing branch)”- On a feature branch with commits
- Press
8(Smart PR) - If no PR exists → creates standard PR (ready for review)
- If draft exists → marks it ready for review
Keyboard Reference
Section titled “Keyboard Reference”| Action | Key | Context |
|---|---|---|
| Smart Issue | 6 | Global |
| Smart Commit | 7 | Global |
| Smart PR | 8 | Global |
| Toggle auto-push | p | Commit popup |
Next Steps
Section titled “Next Steps”- Learn more about Smart Commit options
- See Worktrees for multi-agent development