Skip to main content

Synopsis

profclaw github <subcommand> [flags]

Description

github manages profClaw’s GitHub integration. Once connected, profClaw can listen for GitHub webhooks (issues, pull requests, comments, pushes) and automatically dispatch agent tasks in response. It can also read repository context for agents working on code.

Subcommands

SubcommandDescription
statusShow GitHub connection status and configured repositories
connectAdd a GitHub token and configure webhook
disconnectRemove the GitHub integration
reposList connected repositories
sync <repo>Manually sync open issues from a repository
webhookShow webhook configuration for a repository

github connect

--token
string
GitHub personal access token or GitHub App token. Requires repo and read:org scopes for private repos.
--repo
string
Repository to connect in owner/repo format.

github sync <repo>

repo
string
required
Repository in owner/repo format.
--label
string
Only sync issues with this label (e.g., profclaw, ai-task).
--limit
string
default:"50"
Maximum issues to sync.

Examples

profclaw github status

Webhook Events

When a webhook is configured, profClaw responds to:
EventAction
issues.openedCreate an agent task for the new issue
issues.labeledTrigger when a specific label is applied
pull_request.openedTrigger code review workflow
issue_comment.createdRespond to @profclaw mentions
pushTrigger on-push workflows

Environment Variables

GITHUB_TOKEN=ghp_...     # Personal access token
GITHUB_WEBHOOK_SECRET=   # Webhook HMAC secret for verification