A coding agent that watches for new pull requests, fetches the diff, and posts a structured review with risk tags. Works with GitHub, GitLab, or any system that fires a webhook. A hook gates the session once it passes a tool-call ceiling, so a freak 5000-line PR cannot drain the budget.
1runtime:2 mode: background3 entry_agent: reviewer4 hooks:5 - id: pr_budget_cap6 "on": tool_start7 condition: { type: expression, expr: "session.tool_calls.total >= 30" }8 action: { type: gate, reason: "Tool call ceiling reached." }910tools:11 modules:12 web: {}13 channels:14 config:15 providers:16 github_pr:17 adapter: webhook18 config: { inbound_path: /hooks/github-pr }19 activation:20 agent: reviewer21 message: "{{event.payload.pull_request.title}}"2223security:24 behavior:25 profile: coding2627agents:28 - id: reviewer29 modules: [{web: [fetch]}]30 brain: { provider: anthropic, model: claude-sonnet-5, credential: { ref: anthropic_main, scope: per_user, provider: anthropic } }31 system_prompt: "Review the diff. Tag severity. Cite file:line for each comment."# 1. install runtime
curl -sSL https://digitorn.ai/install | sh
# 2. save the YAML above to ~/.digitorn/apps/my-code-review/app.yaml
mkdir -p ~/.digitorn/apps/my-code-review
# paste the YAML into app.yaml
# 3. deploy
digitorn deploy my-code-reviewEngineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.