-
Notifications
You must be signed in to change notification settings - Fork 4
GitHub Integration Examples
Alessio Rocchi edited this page Jan 27, 2026
·
1 revision
Practical examples for GitHub automation.
const session = await memory.createSession({ type: 'code-review' });
// Review code
const reviewer = spawnAgent('reviewer', { sessionId: session.id });
// Reviewer finds issues...
// Create GitHub issue
{
"tool": "github_issue_create",
"arguments": {
"owner": "myorg",
"repo": "myrepo",
"title": "Security issue in authentication",
"body": "Found SQL injection vulnerability...",
"labels": ["security", "bug"],
"assignees": ["security-team"]
}
}// After feature implementation
const coder = spawnAgent('coder');
// Coder implements feature...
// Create PR
{
"tool": "github_pr_create",
"arguments": {
"owner": "myorg",
"repo": "myrepo",
"title": "Add user authentication",
"head": "feature/user-auth",
"base": "main",
"body": "Implemented JWT-based authentication\n\n- JWT generation\n- Token validation\n- Refresh tokens"
}
}const session = await memory.createSession({
pr: 'PR-123',
repository: 'myrepo'
});
// Get PR details
const pr = await github.getPR('myorg', 'myrepo', 123);
// Store in memory
await memory.store('pr:123:details', JSON.stringify(pr), {
namespace: `session:${session.id}`
});Related:
Getting Started
Core Concepts
Agent Guides
- Overview
- Coder
- Researcher
- Tester
- Reviewer
- Adversarial
- Architect
- Coordinator
- Analyst
- DevOps
- Documentation
- Security Auditor
MCP Tools
- Overview
- Agent Tools
- Memory Tools
- Task Tools
- Session Tools
- System Tools
- GitHub Tools
- Review Loop Tools
- Identity Tools
Recipes
- Index
- Code Review
- Doc Sync
- Multi-Agent
- Adversarial Testing
- Full-Stack Feature
- Memory Patterns
- GitHub Integration
Advanced
- Plugin Development
- Custom Agent Types
- Workflow Engine
- Vector Search Setup
- Web Dashboard
- Programmatic API
- Resource Monitoring
Reference