agentleFS
antongulinantongulin/robin/AGENTS.md

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.

  • In this repository2 other files it gives its agents.

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
  1. Very specific:

    Use this file when adding Robin to another repository.

    line 3
  2. Distinctive:

    Verification: Run the existing checks before pushing:

    line 110
  3. Very specific:

    Keep action inputs, reusable-workflow workflow_call inputs, the with: forwarding in review.yml, the installer template, and the docs in …

    line 121
  4. Very specific:

    Keep the generated format (version heading with compare link, ### Features / ### Bug Fixes / ### Documentation sections).

    line 141

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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@main

Pinned release (preferred for stability):

uses: antongulin/robin/.github/workflows/review.yml@v2

For a direct action step: antongulin/robin@main or @v2.

Do not use

  • @v0, v0, or any v0 release tag — workflows fail or point at stale code.
  • pull_request_target — not supported; security risk with secrets.
  • synchronize on pull_request unless the user explicitly wants review on every push.

Required secrets (in the consumer repo)

SecretPurpose
LLM_API_KEYProvider API key
LLM_BASE_URLOpenAI-compatible base URL
LLM_MODELModel id

Free OpenRouter example:

  • LLM_BASE_URL: https://openrouter.ai/api/v1
  • LLM_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: write

actions/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.

PathOwns
src/main.tsEntry point: event/trigger policy, input parsing, orchestration
src/llm-client.ts, src/llm-retry.ts, src/llm-provider.tsLLM 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.tsMulti-turn agent review and its read-only tools
src/prompts/, src/review-parser.tsReview prompts, JSON schema, response parsing
action.yml, .github/workflows/review.ymlAction inputs and reusable-workflow schema (forwarded 1:1)
docs/, README.md, llms.txtUser-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.js

Keep 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.

  1. Inspect every release cut during the session: gh release view <tag> --json body.
  2. Enrich each feat/fix entry with a one-line plain-language user impact, and credit external contributors (— thanks [@login](https://github.com/login)!).
  3. Catch orphaned commits: a commit that lands on main between the release PR's snapshot and its merge appears in no changelog. Compare git log <prev-tag>..<tag> --oneline against the notes and add missing entries under the matching section.
  4. Edit only the GitHub release (gh release edit <tag> --notes '…'). Never rewrite CHANGELOG.md retroactively — a changelog commit itself triggers another release.
  5. Keep the generated format (version heading with compare link, ### Features / ### Bug Fixes / ### Documentation sections). 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.