Two agents that any Indie Box app can use:
- The feedback judge (
judge/, a service on a droplet). An app sends a person's report to it. The judge looks the app up in the Indie Box registry, decides whether the report is a bug, a feature request or general feedback, checks it (bugs and features against the app's code, read-only), and files a GitHub issue for the ones that hold up: bugs and features in the app's repo, feedback in a shared feedback repo. A bug issue is written so a fix can be reproduced and proven. Each filed issue can also go onto a tracking board (a GitHub Project) as "New". - The implementation agent (
.github/actions/implement, a GitHub Action an app repo's workflow uses). Labelling an issueimplement-agentin an app repo runs it, in that repo's Actions. It writes a test that reproduces the problem, fixes it, PROVES the fix (the test fails without it and passes with it, the checks and the whole suite pass, and an independent check confirms every acceptance criterion), and only then opens a draft pull request.
app (e.g. indie-chat) judge (droplet) app repo on GitHub
"Send feedback" ──POST──▶ /feedback ─▶ registry: app → repo
─▶ read the code, judge
─▶ valid: issue (format below) ──▶ issue
│ maintainer adds
▼ `implement-agent`
the app repo's Actions: .github/actions/implement
reproduce ▸ fix ▸ prove ▸ check ▸ draft PR
Integrating an app: see docs/integration.md: how to send feedback to the judge (endpoint, payload, answers, examples) and how to use the implementation agent in an app repository.
contract/feedback-v1.md: what an app posts.contract/issue-format.md: the sections every filed issue has.contract/indie-feedback-loop.yml: the config file an app repo adds.
- Which app: the payload names it (
app, the registry id). The judge readsregistry/registry.json.infrombrainbot-com/indie-box(id→source.repo), refreshed every 10 minutes. An override file wins over it, for example to test on a fork. An unknown id is refused. - Apps built on others: if an app's Dockerfile builds
FROManother registry app's image (crefo-chat on indie-chat), that app's code is mounted too, and the issue is filed where the cause lives. - Safety: the model runs in a throwaway container with only read, grep, find and ls, a read-only root, no capabilities, no token, and the sender's identity never in the prompt.
- Screen recordings: a report may carry one video (MP4, MOV or WebM, at most 25 MB). The model cannot play it, so ffmpeg, in a container of the runner image without network, takes at most 12 still frames from the first 3 minutes and the model reads those in time order. The video stays on the judge.
- Types: the model decides from the text whether a report is a
bug, afeaturerequest orfeedback(the form has no choice). Bugs and features are checked against the code; feedback only for spam and abuse. - Filing: a valid bug or feature needs confidence ≥ 0.7 and a second
independent run that agrees (at ≥ 0.5); feedback is filed after one run.
The issue must be in its type's format, or the report is kept as unclear.
Every filed issue gets
validated-feedbackand its type as labels. Bugs and features go to the app's repo; feedback toFEEDBACK_REPO, titled[<app repo name>] .... A person reviews an issue before labelling it. - Board: with
PROJECT_OWNERandPROJECT_NUMBER, each filed issue is added to that GitHub Project with Status "New" (see "The tracking board" below). A failure there never stops the filing. - Deploying: see
deploy/README.md(Docker Compose, Caddy, a subdomain). - Running locally:
npm install, ajudge/.env(seedeploy/.env.example),npm run judge. The runner image is built withdocker build -f judge/Dockerfile.runner -t indie-feedback-runner judge.
In an app repo:
- Add
.indie-feedback-loop.yml(seecontract/indie-feedback-loop.yml) and a test that shows how the repo tests, for example one that boots the server with a stand-in model. - Add
examples/caller.ymlas.github/workflows/implement.yml, withCOMMITreplaced by the indie-feedback-loop commit to run (the full hash). - The secret
CLAUDE_CODE_OAUTH_TOKEN(fromclaude setup-token, the subscription the agent runs on). - Settings → Actions → General: "Read and write permissions" and "Allow
GitHub Actions to create and approve pull requests". Create the label
implement-agent.
This repository is public, so the runner fetches the action, and with it all of indie-feedback-loop at that commit, by itself: no token and no access setting are needed. The job runs in the app repo's Actions, with its secrets and its minutes.
What a run does (implement/run.mjs):
- Check first (Claude Code, Sonnet, read-only): is the problem still in the current code, is the issue actionable, is it a safe change for one pull request? Any no: a comment on the issue saying why, and nothing is written.
- Implement (Claude Code, Opus): write the test from the issue's
"Reproduction test" section, see it fail, fix, run the checks. The agent
has file tools and only the commands in
.indie-feedback-loop.yml. It has no git push and no GitHub token, and the subscription token is scrubbed from what its commands see. - Prove (the workflow itself,
implement/core.mjs):- nothing protected was touched, and a new test exists under
tests.dir; - the test FAILS with the source changes taken out, and PASSES with them;
- the checks and the whole suite pass.
- nothing protected was touched, and a new test exists under
- Check (Claude Code, Sonnet, read-only plus running a test): does the test exercise the reported problem, and is each ACn met?
- One retry with the failure details. If the fix is still not proven, the issue gets a comment saying why, and nothing is pushed.
- End to end (only if
.indie-feedback-loop.ymlhase2e): the repo's own tests against real services, in a separate step with only the secrets the config names. A required one that fails means no PR. - Proven: one commit on
implement/issue-<n>and a draft PR whose body carries the proof table, the end-to-end result and the check's verdict for each criterion.
Only code-level tests for now: a problem only visible in a browser needs a repo that can test it without one, or a headless browser added to its setup later.
One GitHub Project (v2) shows every filed issue and where it stands. Its
Status field has the options New, Todo, In Progress, In Review,
Blocked, Done (exact names; lib/project.mjs looks them up by name).
| Status | Set by |
|---|---|
| New | The judge, when it files the issue |
| Todo | A person: it should be implemented |
| In Progress | The implementation agent, when it starts |
| In Review | The agent, when it opened a draft pull request |
| Blocked | The agent, when it stopped without one |
| Done | GitHub's built-in "Item closed" workflow (the pull request says Closes #n) |
The Actions GITHUB_TOKEN cannot change projects, so the agent gets a
second credential through the action's inputs: project-token (a token with
the project scope), or board-app-id + board-app-key (a GitHub App with
Projects read and write, which gets a fresh one-hour token per step). Keep it
in an environment that only the default branch may use (see
examples/caller.yml). A board failure is a warning in the run's log; it
never fails the run.
npm test runs the unit tests: the payload, the registry and the upstream
detection, the issue format, the config file, and the proof against
throwaway git repos.