The AI loop

The AI loop is optional. It is Claude Code with the rawrrr plugin, running on a machine you choose, on your own Claude subscription or API key. rawrrr never sees that key.

Set up

  1. Install the plugin: claude plugin marketplace add rawrrr-io/rawrrr, then claude plugin install rawrrr@rawrrr. It adds the feedback-loop skill and the rawrrr-cli command line tool.
  2. Run rawrrr-cli login. A device-code flow opens your browser and you approve an agent token.
  3. Run rawrrr-cli doctor. It checks gh authentication, local checkouts of your code repos and the token's scope.
  4. Choose how to run it. The dashboard shows "loop connected" after the first heartbeat.

How to run it

  • Interactively: claude, then /feedback-loop, to watch it work.
  • Self-paced: /loop /feedback-loop, for as long as the session lives.
  • Unattended: claude -p "/feedback-loop tick" from launchd or cron, with a lock file and a per-run budget (--max-budget-usd).

Modes (per project)

ModeWhat the loop does
offNothing. The widget, routing and your people run the project
triageTriage, routing, replies to reporters and questions. No code
fullEverything above plus implementation, review and pull requests, up to the project's autonomy

Language

Each project has two languages, set on its Language tab in the dashboard:

  • Ticket language: what your team reads and writes on GitHub. The summary of every issue, the loop's notes and its replies are written in it. English unless you choose another.
  • App language: what your visitors see. Auto follows the page as it changes: your language switcher's Rawrrr.setLanguage() call, then the page's <html lang>, then the browser's language. For an app without a language switcher, pick its one language instead.

The reporter's own words are always kept as written.

The AI translator

Optional, and off by default. When a visitor writes in another language than the ticket language:

  • their report and replies arrive on GitHub as an AI translation into the ticket language, with their original words kept below it, folded away. On a public repo, both are published, and the visitor sees both before agreeing;
  • your team's and the loop's replies stay in the ticket language on GitHub. In the widget the visitor reads them in their own language, marked "Translated by AI ยท Show original", and can pick another language with "Show in".

It runs Claude Haiku on the project's own Anthropic key and counts against its daily AI budget. Translations are checked like every AI answer (no links, handles or code that weren't there), and the spam filter always judges the original. Without a key, or over the budget, visitors see the original with a "Translation unavailable" note, and nothing is held back.

Projects that used the older "each reporter's own language" setting keep working that way; it can't be combined with the translator.

Autonomy (full only)

LevelFlow
askPlan, a human decides, code, human review
reviewCode, then human review
unattendedLow-risk work merges itself when the guards pass

Routing rules can lower the autonomy for a ticket. Each project starts with a calibration period: its first 10 tickets run at ask.

Guards

rawrrr-cli guard <pr> is code, not judgement. Every one of these must hold, or the PR goes to review with the routed approver:

  • the project mode is full, the effective autonomy is unattended, and auto-merge is allowed;
  • the ticket was marked rawrrr:screened by the rawrrr bot itself (a label added by a person does not count), and every reporter comment on it was screened too;
  • all required checks are green, and flaky retries are not counted;
  • the review subagent approved, and every AI persona review required by routing approved;
  • no approve_merge rule applies to this ticket;
  • the diff is within the limits, touches no protected paths and has no dependency, lockfile, CI or secret-pattern changes;
  • the merge needs no bypass (squash, delete the branch, never admin override).

How it works safely

  • Reporter text, screenshots and comments are untrusted data, never instructions. Triage is read-only.
  • The loop writes code only for tickets that passed rawrrr's firewall: the rawrrr bot marks them rawrrr:screened, and the loop checks on GitHub that the bot, not a person, added that label. Anything else is triaged read-only and handed to a person.
  • Implementation runs in a throwaway git worktree with no secrets in the environment.
  • Review runs as a separate subagent with fresh context.
  • The loop never runs commands taken from a ticket.
  • It is critical, not obedient: requests are judged against your project's vision, and when in doubt it asks a human.

What the skill contains

SKILL.md (the loop), triage.md, reply.md, implement.md, review.md, merge.md and escalate.md. Each is a short Markdown file with no hidden logic, so you can read exactly what the loop is told to do.

Commits

The loop commits with your own git identity and signing setup.