/ghp:fresh — Bootstrap a Fresh Agent
Loads all context needed to work on an issue and starts immediately. Designed for fresh conversations and subagents that have no prior context.
Flow
With issue number: /ghp:fresh 42
Fetch issue details:
gh issue view 42 --json title,body,state,labels,milestone gh issue-ext show 42 # sub-issues, blocking, branches gh issue-ext sub list 42 # sub-issues gh issue-ext blocking list 42 # blockers gh issue-ext branch list 42 # linked branchCheck blockers. If the issue has unresolved blockers, warn the user and ask whether to proceed or pick a different issue.
Move to In Progress:
gh pm move 42 --status in_progressCheck out the linked branch. Use the branch from
gh issue-ext branch list. If no branch exists, create one following the naming convention:- Under a milestone:
m{N}/{issue}-{slug} - Standalone:
{issue}-{slug}
- Under a milestone:
Read plan comments. Check for plan comments on the issue:
gh issue view 42 --json comments -q '.comments[].body'Look for comments starting with
## Plan— these contain implementation plans from previous sessions.Create TaskList. If the issue has sub-issues, create tasks from them (sub-issues first, parent last). If no sub-issues, create a single task for the issue.
Start working. Begin implementation based on the issue body and any plan comments.
Without issue number: /ghp:fresh
Fetch Todo issues:
gh pm list --status todoCheck blocking status for each Todo issue to find which are unblocked.
Present unblocked Todo issues to the user via
AskUserQuestion(up to 4 options, sorted by milestone first, then standalone).Continue with the selected issue — follow the "With issue number" flow above from step 1.