14 patterns

Agent rule patterns from real projects.

See how each pattern works in practice.

Jump to a pattern
01 / PATTERN49 of 100 projects

Hard prohibitions

Actions the agent must never take, stated without hedging.

  • OpenClaw
  • opencode
  • n8n
  • Firecrawl
  • Langflow
Read pattern & examples
02 / PATTERN14 of 100 projects

Good and bad pairs

The wrong version sits beside the right one.

  • Hermes Agent
  • opencode
  • n8n
  • Codex
  • Deno
Read pattern & examples
03 / PATTERN22 of 100 projects

Generated file guards

Names generated files and the command that rebuilds them.

  • opencode
  • Transformers
  • Codex
  • Supabase
  • Pi
Read pattern & examples
04 / PATTERN60 of 100 projects

Verification by change type

Matches each kind of change to the checks that cover it.

  • Hermes Agent
  • Ollama
  • Firecrawl
  • Langflow
  • Next.js
Read pattern & examples
05 / PATTERN10 of 100 projects

Nested instruction files

Per-package AGENTS.md files with a clear order of precedence.

  • OpenClaw
  • Supabase
  • Storybook
  • Mem0
  • Airflow
Read pattern & examples
06 / PATTERN36 of 100 projects

Pointing at the source of truth

Changing values stay in one authoritative place.

  • OpenClaw
  • Hermes Agent
  • Next.js
  • browser-use
  • Supabase
Read pattern & examples
07 / PATTERN34 of 100 projects

Router files

The entry file points each kind of work to a focused guide.

  • Hermes Agent
  • Ollama
  • Next.js
  • Electron
  • Supabase
Read pattern & examples
08 / PATTERN43 of 100 projects

Behavioral framing

Rules for approaching the work, not facts about the repository.

  • Hermes Agent
  • opencode
  • Firecrawl
  • Codex
  • Electron
Read pattern & examples
09 / PATTERN16 of 100 projects

House vocabulary

Defines the words a project does and does not use.

  • Deno
  • Bun
  • Paperclip
  • Astro
  • Airflow
Read pattern & examples
10 / PATTERN26 of 100 projects

Architecture as narrative

A written walkthrough of how the system works.

  • opencode
  • n8n
  • Transformers
  • Langflow
  • Electron
Read pattern & examples
11 / PATTERN5 of 100 projects

Ratchets

Baselines that may only shrink and lists that may only grow.

  • n8n
  • Supabase
  • Prisma ORM
  • herdr
  • hunk
Read pattern & examples
12 / PATTERN32 of 100 projects

Contribution etiquette

Limits what the agent may open, push, or post for the project.

  • Transformers
  • Next.js
  • Deno
  • Playwright
  • Zed
Read pattern & examples
13 / PATTERN7 of 100 projects

Scope layering

Different roles get different rules, with a test for which set applies.

  • Next.js
  • Electron
  • PyTorch
  • Bun
  • Ruff
Read pattern & examples
14 / PATTERN7 of 100 projects

Context budgeting

Limits on what enters the model context and how large it may be.

  • OpenClaw
  • Hermes Agent
  • n8n
  • Next.js
  • Codex
Read pattern & examples

Ordered roughly from easiest to adopt to more specialized patterns.