Overview
Jean integrates deeply with GitHub through the GitHub CLI (gh), enabling seamless issue investigation, pull request workflows, CI monitoring, and automatic worktree management.
Key Capabilities
Issue Investigation
Browse and search issues:- Click GitHub icon in project sidebar
- Browse open issues (up to 100)
- Filter by state (open, closed, all)
- Click “Investigate” on any issue
- Jean creates worktree with issue context
- AI analyzes issue and proposes solution
Pull Request Workflows
PR investigation:- Find PR in GitHub panel
- Click “Checkout PR”
- Jean creates worktree on PR branch
- Loads PR context (description, reviews, comments)
- AI analyzes changes and review feedback
- Proposes addressing reviewer comments
- Malicious or obfuscated code
- Suspicious dependency changes
- Hardcoded secrets
- Backdoors or unauthorized access
- Injection vulnerabilities
- Weakened auth/permissions
PR Creation
AI-generated PR content:- Click “Open PR” in chat toolbar
- Jean collects:
- Current branch and target branch
- Commit history since divergence
- Full diff
- AI generates title and body
- Creates PR via
gh pr create - Links PR to worktree
- Opens PR URL in browser
- Toast notification for progress
- Success toast with “Open” action
- Worktree updated with PR metadata
PR Status Tracking
Cached PR information:- PR status (draft, open, merged, etc.)
- CI check status (passing, failing, pending)
- Behind/ahead commit counts
- Uncommitted changes count
- Polls GitHub via
gh pr view - Polls CI via
gh pr checks - Caches results to reduce API calls
- Updates badges in real-time
Auto-Archive on PR Merge
Configuration:- Polling detects PR status changed to “merged”
- Jean archives associated worktree
- Toast notification confirms archiving
- Worktree moves to archive view
- Subject to retention policy
- Automatic cleanup after merging
- Keeps active worktrees focused on open work
- Reduces manual cleanup effort
Workflow Investigation
Failed CI workflows:- Worktree shows failed check badge
- Click “Investigate” on workflow
- Jean creates session with workflow context
- AI fetches logs:
gh run view {runId} --log-failed - Analyzes error output
- Explores relevant code
- Determines issue type:
- Code bug
- CI configuration issue
- Flaky test
- Proposes fix
Git Status Integration
Cached git information:- Uncommitted changes badge
- Behind/ahead counts
- Push/pull reminders
- Conflict warnings
How to Use
Setting Up GitHub CLI
Prerequisites:- Install GitHub CLI:
brew install gh(macOS) - Authenticate:
gh auth login - Verify:
gh auth status
- Automatically locates
ghbinary - Checks common installation paths
- Falls back to system PATH
Browsing Issues
Open GitHub panel:- Click GitHub icon in project sidebar
- Or press configured keyboard shortcut
- State dropdown: Open, Closed, All
- Search bar: Filter by text
- Label filters: Click labels to filter
- Shows up to 100 issues
- Total count displayed
- Scroll to load more (future)
Investigating Issues
Quick investigation:- Click “Investigate” button on issue
- Jean creates worktree automatically
- Issue context loads in chat
- AI starts analysis immediately
- Review AI’s findings and proposal
- Create worktree manually
- Use magic command to load issue
- Chat with AI about implementation
- Reference issue context as needed
Working with Pull Requests
Checkout existing PR:- Browse PRs in GitHub panel
- Click “Checkout PR”
- Worktree created on PR branch
- PR context loaded
- AI reviews changes and feedback
- Complete work in worktree
- Commit changes
- Click “Open PR” in toolbar
- Review AI-generated title/body
- Confirm to create
- PR opens in browser
- Make additional changes
- Commit normally
- Push to update PR automatically
- Jean tracks PR status
Monitoring CI/CD
View workflow status:- Check badge in worktree list
- Green: All checks passing
- Red: Some checks failed
- Yellow: Checks pending
- Gray: No checks configured
- Click failed check badge
- Select workflow to investigate
- AI analyzes logs and proposes fix
- Implement fix
- Push and monitor new run
Managing PR Lifecycle
Track progress:- Draft → Open → Review → Merged
- Status badge updates automatically
- CI status shown alongside
- Worktree auto-archives (if enabled)
- Manual cleanup if disabled
- Archive retention policy applies
Configuration Options
Polling Intervals
Git polling:- Active development: 30-60 seconds
- Background projects: 300-600 seconds
- Rate limit concerns: 300+ seconds
Auto-Archive Settings
Enable/disable:GitHub Authentication
Location: Managed by GitHub CLI Commands:Best Practices
Issue Investigation
When to investigate:- Complex bugs requiring codebase exploration
- Feature requests needing architecture decisions
- Regressions requiring git history analysis
- Issues with unclear reproduction steps
- Simple, well-understood fixes
- Documentation updates
- Typo fixes
- Duplicate issues
PR Workflows
Before creating PR:- Commit all changes
- Run tests locally
- Review diff yourself
- Let AI generate PR content
- Edit if needed
- All commits pushed
- Tests passing
- AI code review clean
- PR description accurate
- Linked to issue (if applicable)
CI/CD Monitoring
Set appropriate poll intervals:- Investigate using workflow investigation
- Fix root cause, don’t just retry
- Document flakiness patterns
- Use AI to suggest stability improvements
Performance Optimization
Reduce API calls:- Increase poll intervals
- Disable auto-archive if not needed
- Archive finished work promptly
- Close unused worktrees
- GitHub API: 5,000 requests/hour (authenticated)
- Jean caches aggressively
- Increase poll intervals if hitting limits
- Monitor
gh api rate_limit
Security
PR security reviews:- Always review AI’s security findings
- Don’t blindly trust AI approval
- Check dependencies manually
- Verify credential handling
- Review permission changes
- GitHub CLI handles token storage
- Tokens stored in OS keychain
- Never commit tokens to repository
- Rotate tokens regularly
Workflow Organization
Issue-driven development:Team Collaboration
Shared conventions:- Customize magic prompts for team style
- Configure commit message format
- Set PR description template
- Document review criteria
- Use AI review as first pass
- Human review for architecture
- Security review for sensitive changes
- Performance review for critical paths
Troubleshooting
GitHub CLI not working:- Check repository visibility
- Verify authentication
- Confirm permissions
- Check filters/search
- Check poll interval settings
- Verify internet connection
- Check GitHub status
- Review app logs
- Ensure branch pushed
- Check remote exists
- Verify gh CLI works:
gh pr create - Check for existing PR