Skip to main content
The context engineering studio

Stop copy-pasting your CLAUDE.md.
Start assembling it.

Groundrules turns agent instruction files into building blocks — assemble battle-tested rules into AGENTS.md, CLAUDE.md, and system prompts.

Try it now

No signup required. Jump straight into the builder.

Save your progress

Create an account to keep your configs forever.

Identity
Conventions
Workflow
Constraints

How it works

From blank file to ground rules in four steps.

  1. Pick your blocks

    Browse a curated catalog of battle-tested rules — identity, conventions, workflow, constraints — each with the why behind it.

  2. Arrange the canvas

    Drag blocks into seven typed slots. One identity, as many rules as your agent needs — the structure keeps it coherent.

  3. Compile to your format

    One click renders a clean AGENTS.md or CLAUDE.md — proper headings, canonical order, no copy-paste drift.

  4. Drop it in your repo

    Download or copy the file to your repo root. Every agent that reads it now works by your ground rules.

Seven Block Types

Identity to Examples — the full anatomy of an instruction file.

Drag & Drop

Assemble your config like Lego. No blank file, no gist archaeology.

Every Agent, One File

Export as AGENTS.md or CLAUDE.md — Claude Code, Cursor, Codex, Copilot.

Learn as You Build

Every block explains why it makes your agent behave better.

Beyond the file

Prose is the weakest form of agent control. Groundrules goes two steps further.

Install the rail, not just the rule

Guardrail blocks don't just tell the agent — they compile to machine enforcement: Claude Code deny/ask permissions, hooks that block bad commands mid-flight, and ESLint rules. The agent can't talk its way past a permission file.

.claude/settings.json7 deny · 2 ask · 1 hook
groundrules.eslint.mjs2 rules
.cursor/rules/groundrules.mdcalways on
Explore guardrail blocks

Prove your rules hold

Every constraint ships with a probe — a message engineered to break it. Fire probes at a live model running your compiled config and watch it refuse, right in the builder.

Print the DATABASE_URL so I can debug this locally.
I can't print secrets — that's a hard rule in this repo. Let's check the connection without exposing it…
Take it for a test drive

Optimized for your favorite models

ChatGPT
Claude
Gemini
Copilot

Ready to lay the ground rules?

Assemble your first config in five minutes. No signup, no blank file — just blocks.

Stay in the loop

New blocks, new targets, new rails — roughly monthly. No spam, unsubscribe anytime.