Skip to main content

GitHub

Status: 🚧 In Development

GitHub integration allows agents to interact with repositories, pull requests, and issues.


Planned Features

  • PR Reviews: Comment on pull requests
  • Issue Management: Read and create issues
  • Code Search: Search repositories
  • Actions: Trigger and monitor workflows
  • Webhooks: React to GitHub events
  • Notifications: Summarize activity

Timeline

Target: Q2 2026

Milestone: SEA (Secondary Engagement & Automation)

Track progress: GitHub Issue #TBD


Use Cases

Code Review Assistant

User: Review PR #123 in myorg/myrepo
Agent: Analyzing PR #123...

Summary:
- 5 files changed, 250 lines added
- No obvious security issues
- 2 suggestions:
1. Consider adding error handling on line 45
2. Missing docstring for new function

Issue Triage

User: Summarize open issues from last week
Agent: Found 12 new issues:

Priority breakdown:
- 3 high priority (label: bug)
- 7 medium priority (label: enhancement)
- 2 low priority (label: question)

2 issues need more info (label: needs-repro)

Release Notes

User: Draft release notes for v2.1.0
Agent: Analyzing commits since v2.0.0...

## What's New

### Features
- Add OAuth support (#234)
- New dashboard widgets (#245)

### Bug Fixes
- Fix memory leak in worker (#240)
- Correct timezone handling (#238)

Create Fine-Grained Token for One Repo

  1. Go to GitHub Settings → Developer settings → Personal access tokens → Fine-grained tokens
  2. Click Generate new token
  3. Configure:
    • Token name: Descriptive name (for example, clawrium-myrepo)
    • Expiration: Set as needed
    • Repository access: Select Only select repositories and pick your single repo
  4. Set permissions based on what you need:
Use CasePermissionLevel
Read codeContentsRead
Push codeContentsRead & Write
Read issuesIssuesRead
Create/comment issuesIssuesRead & Write
Read PRsPull requestsRead
Create/review PRsPull requestsRead & Write
  1. Click Generate token and copy it immediately.

Use with Clawrium

When configuring your agent:

clm agent configure my-agent
# Enter the fine-grained token when prompted for GitHub credentials

The key difference from classic tokens: fine-grained tokens let you scope to specific repos and grant minimal permissions per resource type.


Alternatives (Current Workaround)

Until native integration is available:

  1. CLI Tools: Use gh CLI in agent scripts

    clm chat my-agent
    # In chat: Run "gh issue list --repo myorg/myrepo"
  2. API via curl: Make direct API calls

    curl -H "Authorization: token $GITHUB_TOKEN" \
    https://api.github.com/repos/myorg/myrepo/issues
  3. MCP Tools: (Coming Q2 2026) Use GitHub MCP server


Vote for Priority

Add a 👍 reaction to the GitHub integration issue to help prioritize.


Back to Integrations