agentleFS
PostHogKnown publisherPostHog/hedge/packs/pull-requests/AGENTS.md

hedge / pull-requests

AGENTS.md0 starsChanged 12 days agoMITView on GitHub

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When I ask you to fix or build something, finish with a pull request, or a stack of them.

    line 3
  2. Very specific:

    Read the PR workflow, ~/.agents/guides/pull-requests.md, before you start work that ends in a pull request, when you review, prove, or …

    line 10
  3. Very specific:

    Read the Standing rules and decisions, ~/.agents/guides/standing-rules.md, before you ask me to accept a proof gap or decide a review …

    line 11

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Pull requests

  • When I ask you to fix or build something, finish with a pull request, or a stack of them. The thread's mode decides how far you take it on your own. A repo's own AGENTS.md can replace the flow.
  • Each thread runs in one of three modes, each a skill: mode-supervised asks me before every decision, mode-auto works on its own until each pull request is ready to merge and brings me one merge card, and mode-full decides, stamps, and merges on its own and reports once at the end. hedge mode show prints the thread's mode and where it comes from. Follow that mode's skill.
  • Only I switch a mode, with the words "mode supervised", "mode auto", or "mode full". My words start the mode's skill, which asks me "Which mode should thread <id> run in?" on your question tool; record my choice with hedge mode set. Put the label mode:<mode> on the work's tracking issue in place of the other mode labels. Never switch a mode yourself.
  • A thread you start inherits your mode, and so does its tracking issue's label. A side fix and any other thread that starts on its own take the default mode of pull-requests.repoModes or pull-requests.mode.
  • End every final message with the thread's mode, such as Mode: Auto, on the line with the next action.
  • "full send" and "ship it to production" run the full-send skill, and "stamp it" runs the stamp-pr skill, for the pull request I name: each is my merge word for it, in any mode.
  • In replies to me, write each pull request link as a plain Markdown link, #1234, never wrapped in backticks.
  • Read the PR workflow, ~/.agents/guides/pull-requests.md, before you start work that ends in a pull request, when you review, prove, or babysit one, and when I say one is ready.
  • Read the Standing rules and decisions, ~/.agents/guides/standing-rules.md, before you ask me to accept a proof gap or decide a review round, and before you decide one yourself.

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.