robin
AGENTS.md36 starsChanged 5 months agoMITView on GitHub
Use this file when adding Robin to another repository. Default (latest): Pinned release (preferred for stability): For a direct action step: antongulin/robin@main or @v2. Free OpenRouter example: Create .github/workflows/robin.yml: The job needs: actions/checkout is optional for review-only workflows. Everything above is for adding Robin to a consumer repo. This section is for agents working in this repository. It is a concise operating map, not a task log; keep run evidence in task records outside the tracked tree. Layout. src/ is…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Use this file when adding Robin to another repository.
- Distinctive: line 110
Verification: Run the existing checks before pushing:
- Very specific: line 121
Keep action inputs, reusable-workflow workflow_call inputs, the with: forwarding in review.yml, the installer template, and the docs in …
- Very specific: line 141
Keep the generated format (version heading with compare link, ### Features / ### Bug Fixes / ### Documentation sections).
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Instructions for AI coding agents
Use this file when adding Robin to another repository.
Required workflow reference
Default (latest):
uses: antongulin/robin/.github/workflows/review.yml@mainPinned release (preferred for stability):
uses: antongulin/robin/.github/workflows/review.yml@v2For a direct action step: antongulin/robin@main or @v2.
Do not use
@v0,v0, or anyv0release tag — workflows fail or point at stale code.pull_request_target— not supported; security risk with secrets.synchronizeonpull_requestunless the user explicitly wants review on every push.
Required secrets (in the consumer repo)
| Secret | Purpose |
LLM_API_KEY | Provider API key |
LLM_BASE_URL | OpenAI-compatible base URL |
LLM_MODEL | Model id |
Free OpenRouter example:
LLM_BASE_URL:https://openrouter.ai/api/v1LLM_MODEL:openrouter/free
Minimal consumer workflow
Create .github/workflows/robin.yml:
name: Robin
on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:
types: [created]
permissions:
actions: read
contents: read
pull-requests: write
jobs:
review:
uses: antongulin/robin/.github/workflows/review.yml@main
secrets:
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}
LLM_MODEL: ${{ secrets.LLM_MODEL }}Permissions
The job needs:
permissions:
actions: read
contents: read
pull-requests: writeactions/checkout is optional for review-only workflows.
Maintainers: project map and verification
Everything above is for adding Robin to a consumer repo. This section is for agents working in this repository. It is a concise operating map, not a task log; keep run evidence in task records outside the tracked tree.
Layout. src/ is the GitHub Action (compiled into the committed dist/index.js).
action.yml is the action input/output contract; .github/workflows/review.yml is the
reusable workflow consumers call; templates/robin.yml, scripts/install.sh, and
bin/robin-review.js are the shipped installer surfaces; docs/ and README.md are the
user documentation; skills/robin/ is the companion chat skill shipped for coding agents.
| Path | Owns |
src/main.ts | Entry point: event/trigger policy, input parsing, orchestration |
src/llm-client.ts, src/llm-retry.ts, src/llm-provider.ts | LLM request shape, retries, provider detection |
src/repo-config.ts | .github/robin.yml parsing and input-vs-config resolvers |
src/agent-review.ts, src/review-tools.ts, src/repo-snapshot.ts | Multi-turn agent review and its read-only tools |
src/prompts/, src/review-parser.ts | Review prompts, JSON schema, response parsing |
action.yml, .github/workflows/review.yml | Action inputs and reusable-workflow schema (forwarded 1:1) |
docs/, README.md, llms.txt | User-facing setup, behavior, and troubleshooting |
Documentation ownership. This root AGENTS.md is the documentation contract for the whole
repository: the source, workflow, docs, and skill surfaces above share this single ownership
boundary, so there are no child AGENTS.md files. Add a child AGENTS.md only when a subtree
grows its own stable contract that the root index no longer covers cleanly. The index follows the
structure guidance of agent0ai/dox at pinned revision
765ae4ac
(MIT, Copyright 2026 Agent Zero).
Verification. Run the existing checks before pushing:
npm ci
npm test # Jest + ts-jest
npm run lint # eslint src/**/*.ts
npx --no-install tsc --noEmit
actionlint -shellcheck= -pyflakes= .github/workflows/*.yml testdata/consumer-workflows/*.yml
npm run build # tsc + ncc; commit the regenerated dist/index.jsKeep action inputs, reusable-workflow workflow_call inputs, the with: forwarding in
review.yml, the installer template, and the docs in sync — src/workflow.test.ts guards
that parity. Behavior changes that touch optional request parameters should not silently
drop a user-configured control; surface the provider error instead.
Maintainers: release-notes upkeep (automatic)
Whenever a release lands (release-please auto-merges
chore: release X.Y.Z and publishes the GitHub release), clean up its notes as part of
the same task — do it automatically, without asking.
- Inspect every release cut during the session:
gh release view <tag> --json body. - Enrich each
feat/fixentry with a one-line plain-language user impact, and credit external contributors (— thanks [@login](https://github.com/login)!). - Catch orphaned commits: a commit that lands on
mainbetween the release PR's snapshot and its merge appears in no changelog. Comparegit log <prev-tag>..<tag> --onelineagainst the notes and add missing entries under the matching section. - Edit only the GitHub release (
gh release edit <tag> --notes '…'). Never rewriteCHANGELOG.mdretroactively — a changelog commit itself triggers another release. - Keep the generated format (version heading with compare link,
### Features/### Bug Fixes/### Documentationsections). Never create tags or releases by hand, and never delete a published release.
Further reading
- README.md — human-friendly setup
- docs/ADVANCED.md — all inputs and patterns
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

