How We Orchestrate with AI
Using Claude Code with GitHub MCP for AI-assisted development workflows
How We Orchestrate with AI
This guide covers how we use Claude Code connected to GitHub MCP (Model Context Protocol) to manage our development workflow - PRs, issues, and code reviews - with AI assistance.
Core idea: AI can handle the mechanical parts of development workflows, letting you focus on the creative and strategic work.
What is AI Orchestration?
AI orchestration means using AI tools to automate and assist with development workflows:
Developer Intent → Claude Code → GitHub MCP → GitHub Actions
↓ ↓ ↓
"Fix this bug" Understands Creates PR
context Updates issues
Manages workflow
What is MCP?
Model Context Protocol (MCP) is a standard for connecting AI assistants to external tools and services. The GitHub MCP server gives Claude Code access to:
- Repository information
- Issues and pull requests
- File contents
- Commit history
- GitHub Actions
Setting Up Claude Code with GitHub MCP
Prerequisites
- Claude Code installed
- GitHub CLI authenticated (
gh auth login) - MCP server configured
Configuration
Add the GitHub MCP server to your Claude Code configuration:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-token>"
}
}
}
}
Common Workflows
Creating a PR with Context
Instead of manually writing PR descriptions:
"Create a PR for my current changes. Include what changed and why."
Claude Code will:
- Read your changes
- Understand the context
- Generate a descriptive PR
- Link related issues
Issue Triage
"Look at the open issues and categorize them by priority and type."
Claude Code will:
- Read all open issues
- Analyze content and labels
- Suggest categorization
- Optionally apply labels
Code Review Assistance
"Review PR #123 and summarize the changes."
Claude Code will:
- Fetch the PR diff
- Analyze the changes
- Identify potential issues
- Summarize for human review
Decision Framework
When to Use AI Orchestration
| Scenario | Use AI | Why |
|---|---|---|
| Routine PR creation | Yes | Saves time, consistent format |
| Complex code review | Partial | AI summarizes, human decides |
| Issue triage | Yes | Pattern recognition at scale |
| Sensitive changes | No | Human judgment required |
When to Use Manual Workflow
- Security-sensitive changes
- Breaking changes that need careful communication
- When you need full control over the narrative
- Learning (doing it manually builds understanding)
Best Practices
1. Review AI-Generated Content
Always review before submitting:
- PR descriptions may miss context you have
- Issue labels may not match team conventions
- Comments should reflect your voice
2. Start Small
Begin with low-stakes tasks:
- Draft PR descriptions (edit before submitting)
- Summarize changes for your own understanding
- Generate commit messages
3. Provide Context
The more context you give, the better the output:
- Reference related issues
- Explain the "why" not just the "what"
- Mention team conventions
Limitations
| Limitation | Workaround |
|---|---|
| May not know team conventions | Provide examples or CLAUDE.md context |
| Can't access private repos without auth | Ensure proper token setup |
| May generate verbose PRs | Edit and trim before submitting |
| Doesn't understand political context | Review sensitive communications manually |
Quick Reference
| I want to... | Approach |
|---|---|
| Create a PR quickly | Ask Claude to draft, review, then submit |
| Understand a PR | Ask Claude to summarize changes |
| Triage issues | Ask Claude to categorize and prioritize |
| Write commit messages | Ask Claude to generate from diff |