agentleFS
PostHogKnown publisherPostHog/hedge/AGENTS.md

hedge

AGENTS.md0 starsChanged 12 days agoMITView on GitHub

The public Hedge engine: the hedge CLI, get.sh, and the public packs. GLOSSARY.md holds the words to use. - Use Bun. Do not use npm or Yarn. - Keep owned code small and typed. Write no comments; let names explain the code. - Run bun run test and bun run typecheck after every change. Keep bun run test under 5 seconds, and never wait on real time. - The Hedge site is generated, with one HTML file for each route.…

The file

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

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Use Bun. Do not use npm or Yarn.

    line 6
  2. Distinctive:

    Keep owned code small and typed.

    line 7
  3. Very specific:

    Run bun run test and bun run typecheck after every change.

    line 8
  4. Very specific:

    Never draw, change, or generate one.

    line 19
  5. Distinctive:

    Write documentation in simplified technical English.

    line 27

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

Hedge engine

The public Hedge engine: the hedge CLI, get.sh, and the public packs. GLOSSARY.md holds the words to use.

  • Use Bun. Do not use npm or Yarn.
  • Keep owned code small and typed. Write no comments; let names explain the code.
  • Run bun run test and bun run typecheck after every change. Keep bun run test under 5 seconds, and never wait on real time.
  • The Hedge site is generated, with one HTML file for each route. No built file is in the repository. bun scripts/build-page.ts writes the site to site/, which git ignores, and the Pages workflow builds it on each push to main. After you change a pack.json, presets.json, or page/, build the site and look at each route in a browser. The lessons are left out unless you download the lessons release with gh release download lessons --dir lessons/media and add --lesson-media lessons/media.
  • The hedgehogs and the PostHog logo in page/art/ are PostHog's own files. Never draw, change, or generate one. page/art/README.md names the source of each file.
  • Tests that touch a home directory use a temporary HOME. Never run hedge apply or get.sh against a real home directory from an agent.
  • This repo will be public. Never commit private hostnames, Slack IDs, private repo names, email addresses, internal numbers, customer data, or secrets. The privacy CI job enforces this with gitleaks and a deny-list that lives outside this repo.
  • Write documentation in simplified technical English.

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.