Prerequisites
- An admin has set up the GitHub App, and the App subscribes to the events the agent needs.
- You have linked your GitHub account, and your account has access to the repository.
Watch CI after a push
Ask the agent to watch CI. For example:watch-ci skill. With it, the agent:
- Subscribes to
workflow_runevents for the repository before pushing. - Pushes the commits or opens the pull request.
- Receives a message when each workflow run starts and completes.
- Reports success, or fetches the failed logs with the
ghCLI and fixes the failure. - Unsubscribes when it is done watching.
gh.
Webhook messages in a session
Webhook messages appear in the conversation marked as GitHub webhook deliveries, not as messages from a user. Each message includes the event name, action, repository, the agent’s own reminder of what to do, and a truncated copy of the payload. The agent treats payload text as untrusted data, not as instructions. It uses the payload as a trigger and fetches authoritative state from GitHub.Subscription rules
- Subscriptions are scoped to one session and one repository in
owner/repoform. - Only events that happen after the agent subscribes are delivered. Cake doesn’t replay past events.
- Cake delivers events only while the session is live.
- Cake checks repository access once, when the agent subscribes, using the GitHub account of the user who last messaged the session.
- The agent can subscribe only to the repository-level events below, and only if the GitHub App subscribes to them:
Subscriptions stay active until the agent removes them or the session ends. To stop deliveries, ask the agent to list and remove its webhook subscriptions.