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 fb command line tool.
  2. Run fb login. A device-code flow opens your browser and you approve an agent token.
  3. Run fb 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

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

fb 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;
  • 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.
  • 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.