AgentKit
DocsKitsCLI ReferenceDesktop App

ak watch

ak watch

Choose a GitHub issue watch workflow and understand its credential, posting, state, and rate-limit boundaries.

Use ak watch to discover commands that poll GitHub issues, generate responses through an AgentKit skill, and optionally post comments.

Usage

ak watch

The parent has no positional arguments or command-specific flags. It shows help and performs no GitHub request, agent invocation, state write, or prompt.

Choose a subcommand

GoalCommandExternal mutation
Preview matching issues and generated repliesak watch dry-run <owner/repo>No GitHub comment, but GitHub and the configured model/provider are contacted.
Poll and post onceak watch start <owner/repo>Posts issue comments after generation.
Keep polling in the current processak watch start <owner/repo> --daemonCan continue posting until that process is interrupted.
Inspect persisted stateak watch status [owner/repo]None.
Mark persisted state inactiveak watch stop <owner/repo>Local state only; it does not signal a running process.

Credentials and privacy

Polling and posting execute the local gh CLI and inherit its GitHub authentication and environment. Response generation executes ak run, so the selected skill, runtime, provider credentials, and provider network policy also apply. The issue title, body, author, labels, number, repository, and URL are placed in the agent prompt. Review repository privacy and provider policy before running either start or dry-run.

The default rolling ceiling is 10 successfully recorded posts per hour per repository state. This is a safety bound, not a permission boundary or a review queue. Use least-privilege GitHub credentials and preview filters first.

Output and exit status

Subcommands define their own single-object or streaming JSON contracts. Parent help declares exits 1 for runtime failures, 2 for invalid invocations, and 3 for one-shot rate limiting. The current one-shot implementation handles per-issue rate-limit, agent, and posting errors as stderr log entries and can still exit 0; do not use exit status alone to prove every matched issue was posted.