[FEATURE] GitHub CLI Support for iOS Claude Code
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Problem Statement
Claude Code on iOS cannot effectively troubleshoot GitHub Actions workflow failures due to lack of GitHub CLI (gh) access. This limitation has resulted in multiple failed diagnostic sessions where critical issues (such as billing/payment problems) could not be identified.
Real-World Impact
Incident: 2025-12-15 - All GitHub Actions workflows failing
Root Cause: Billing/payment issue preventing job execution
Sessions Failed: Multiple (iOS, Web) - Could not diagnose
Session Succeeded: Linux with gh CLI - Diagnosed in 30 minutes
Key Finding: The error message was only accessible via:
gh api repos/{owner}/{repo}/check-runs/{id}/annotations
Without this capability, the issue was invisible to iOS/Web sessions.
---
Current Limitations
iOS Claude Code Cannot:
- Access GitHub API - No programmatic access to GitHub data
- View workflow runs - Cannot list or inspect workflow execution history
- Read workflow logs - Cannot view job output or error messages
- Query check-run annotations - Cannot access detailed error information
- Diagnose billing issues - Cannot detect account/quota problems
- Manage PRs/issues - Cannot create, update, or close via CLI
- Check workflow status - Must rely on user manually checking web UI
What iOS Can Do:
- Read local workflow files (
.github/workflows/*.yml) - Use
gitcommands - Provide GitHub web URLs for manual operations
---
---
Proposed Solution
Proposed Solution
Option 1: Bundle GitHub CLI in iOS App (Preferred)
Implementation:
- Include
ghbinary in iOS app bundle - Pre-authenticate using app's credentials
- Expose
ghcommands to Claude's bash tool - Installation path:
~/Documents/.claude/bin/ghor similar
Benefits:
- Full GitHub API access
- No user setup required
- Consistent experience across platforms
- Can troubleshoot private repositories
Technical Considerations:
- Binary size: ~15-20 MB (manageable)
- Requires GitHub app token for API access
- May need iOS-specific build of
ghCLI - Should respect iOS sandbox restrictions
Alternative Solutions
Option 2: Add GitHub API Tool to Claude Code
Implementation:
- Create dedicated GitHub API tool (similar to WebFetch)
- Expose common operations: list runs, get logs, query annotations
- Use user's GitHub token or app credentials
- iOS-native implementation
Benefits:
- Lighter weight than full
ghCLI - Can be optimized for mobile
- Purpose-built for Claude's needs
Drawbacks:
- Requires developing/maintaining custom tool
- May not have feature parity with
ghCLI - Less flexible than full CLI access
Option 3: Web-Based GitHub Integration
Implementation:
- OAuth integration with GitHub
- Fetch workflow data via web API calls
- Display in Claude's interface
- User must authenticate via GitHub OAuth
Benefits:
- No binary bundling required
- Standard OAuth flow
- Works on all platforms
Drawbacks:
- Requires user authentication setup
- May have rate limiting issues
- More complex error handling
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
Use Cases
1. Troubleshooting Workflow Failures
Scenario: User reports "all my GitHub Actions are failing"
Current iOS Experience:
Claude: I can see your workflow files, but I cannot view the actual
failures or logs. Please:
1. Go to github.com/your-repo/actions
2. Click on a failed run
3. Copy/paste the error message to me
User: [frustrated, has to do manual work]
With GitHub CLI:
Claude: Let me check the workflow runs...
[Runs: gh run list --limit 10]
[Checks: gh run view 123456 --log]
[Analyzes: gh api repos/.../check-runs/.../annotations]
Claude: Found the issue! Your workflows are failing due to a billing
problem. Here's the error message and how to fix it...
User: [problem solved quickly]
2. PR Management During Development
Current iOS Experience:
Claude: I've committed your changes to branch 'fix-123'.
To create a PR, go to:
https://github.com/owner/repo/pull/new/fix-123
[User must switch to browser, create PR manually]
With GitHub CLI:
Claude: I've committed your changes and created PR #45:
[Runs: gh pr create --title "..." --body "..."]
The PR is ready for review at: [URL]
3. Monitoring CI/CD Pipeline
Current iOS Experience:
User: Did my workflow pass?
Claude: I don't have access to check. Please visit the Actions tab
on GitHub.
With GitHub CLI:
User: Did my workflow pass?
Claude: Let me check...
[Runs: gh run list --branch main --limit 1]
Yes! Your latest workflow "Tests" passed successfully 2 minutes ago.
All checks are green.
4. Diagnosing Billing/Quota Issues
Current iOS Experience:
Claude: Your workflows are failing but I cannot determine why.
The error logs are not accessible from here.
[Multiple sessions fail to diagnose]
[User wastes hours troubleshooting]
With GitHub CLI:
Claude: Let me check the annotations...
[Runs: gh api repos/.../check-runs/.../annotations]
Found it! You have a billing issue:
"The job was not started because recent account payments have failed..."
Fix this at: github.com/settings/billing
---
Benefits
For Users
- Faster Problem Resolution - Diagnose issues in minutes, not hours
- Less Context Switching - No need to leave Claude to check GitHub
- Better Experience - Claude can be truly helpful with CI/CD issues
- Complete Workflows - Can handle entire dev workflow within Claude
For Claude Code Product
- Feature Parity - iOS matches Linux/Desktop capabilities
- Better Reviews - Users praise comprehensive GitHub integration
- Reduced Frustration - No more "I can't help with that" responses
- Competitive Advantage - Full GitHub integration is a selling point
For Development Velocity
- Eliminates Diagnostic Blind Spots - Can see what's actually happening
- Enables Proactive Help - Claude can check status without being asked
- Supports DevOps Workflows - Critical for modern development practices
---
Success Metrics
After implementation, we should see:
- Diagnostic Success Rate ↑ - More issues resolved without escalation
- Session Length ↓ - Faster problem resolution
- User Satisfaction ↑ - Based on feedback/ratings
- "I can't do that" Responses ↓ - Fewer capability limitations
- Context Switches ↓ - Less leaving Claude to check GitHub
---
Implementation Phases
Phase 1: MVP (Critical Operations)
Priority Commands:
gh run list- List workflow runsgh run view <id> --log- View workflow logsgh api repos/.../check-runs/.../annotations- Get error detailsgh pr list- List pull requestsgh pr view <id>- View PR details
Estimated Effort: 2-4 weeks
Impact: Solves 80% of current pain points
Phase 2: PR/Issue Management
Additional Commands:
gh pr create- Create pull requestsgh pr review- Review PRsgh issue create- Create issuesgh issue list- List issues
Estimated Effort: 2-3 weeks
Impact: Complete PR workflow within Claude
Phase 3: Advanced Features
Additional Commands:
gh workflow run- Trigger workflows manuallygh release create- Create releasesgh repo view- View repository info- Full
ghCLI feature set
Estimated Effort: 3-4 weeks
Impact: Full GitHub integration parity
---
Technical Requirements
iOS App Requirements
- Include
ghCLI binary (or build custom GitHub API tool) - Manage GitHub authentication/tokens
- Respect iOS sandbox restrictions
- Handle network requests appropriately
- Cache API responses to avoid rate limits
Security Requirements
- Secure token storage
- Respect user's GitHub permissions
- Handle private repository access appropriately
- Comply with GitHub API terms of service
- Rate limit management
UX Requirements
- Transparent to user (works automatically)
- Clear error messages if auth fails
- Option to disable if desired
- Show API usage/rate limit status
---
Related Issues
- Inability to diagnose GitHub Actions failures on iOS
- Cannot create PRs programmatically
- Cannot check CI/CD status
- Cannot manage issues from Claude
- Limited automation capabilities
---
References
- GitHub CLI: https://cli.github.com/
- GitHub API: https://docs.github.com/en/rest
---
Priority Justification
- Common Use Case - GitHub integration is essential for modern development
- Current Gap - iOS users have significantly degraded experience
- Clear Solution - GitHub CLI is mature, well-documented, available
- High Impact - Solves entire class of problems (not just one edge case)
- Competitive Necessity - Other AI coding tools have GitHub integration
- User Frustration - Multiple failed sessions due to this limitation
Additional Context
Alternative Workarounds (Current State)
While waiting for this feature, iOS users can:
- Use Linux/Desktop Claude Code for GitHub troubleshooting
- Manually check GitHub web UI and paste errors to Claude
- Ask Claude to provide GitHub URLs to click instead of automating
- Accept limited diagnostics for workflow issues
None of these are satisfactory for a premium developer tool.
---
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗