Skip to content
Open the dashboard
Start here

The full setup

Engineering leadsStandard ownersDevelopers12 min read

In a hurry? Start on GitHub or Start from a terminal gets you a first result in ten minutes. This page is the whole setup.

This guide takes you from no account to a working setup:

  • a rulebook that fits your stack;
  • one repository whose coding agents follow it;
  • a check that runs in CI.

Each step links to the page that covers it in full.

You need:

  • an email you can receive mail at, or an invitation to a workspace;
  • a repository on your computer, with git and Node.js 22 or later.

That’s all. The CLI runs with npx, so there’s nothing to install globally.

  1. Create your account.

    Go to app.groundrule.dev and choose Create an account. Enter your name, your work email and a password of at least 10 characters. Groundrule emails you a confirmation link. Open it and choose Confirm and continue.

    The sign-up form with name, work email and password.

    More: Create your account.

  2. Name your workspace.

    One screen: the workspace name and its URL name (for example acme-payments, which becomes app.groundrule.dev/acme-payments). Both are prefilled from your email address, so often there is nothing to type.

    Choose Create workspace. The Security baseline’s standards are already in your rulebook; add the packs for your stack under Packs any time.

    The next screen offers a first result: choose Choose a repository to scan one of your GitHub repositories without a terminal, or Skip for now to go to the dashboard. More: See what the rules find.

  3. Look at what is in effect.

    Open Rules. Every rule shows its severity, its stage, and whether it is agent guidance or a deterministic check. Open one to see why it exists, examples, and how it is rolled out. Nothing here can block anyone yet: rules at Teach only reach agent instructions.

    More: Rollout stages, Adopting rules.

  4. Write one rule of your own.

    Choose Describe a rule and say it the way you’d tell a new teammate. For example: “We never call Stripe directly; everything goes through src/payments/gateway.ts.” AI writes the full standard, with examples and a check it has tested against them. Review it, then Save as draft. Or write one yourself with New rule.

    More: Describe a rule, Write a standard.

  5. Invite your team.

    Settings → Members → Invite. Choose a role for each person. Standard owners write and accept rules; developers read the rulebook and connect the CLI.

    More: Members and roles.

  6. Connect a repository.

    In a terminal, inside your repository:

    Terminal window
    npx @groundrule/cli login
    npx @groundrule/cli init --org acme-payments
    npx @groundrule/cli sync

    login opens your browser to approve the CLI. init writes .groundrule/config.yaml, which links this repository to your workspace. sync writes your rules into AGENTS.md, CLAUDE.md and .cursor/rules/, keeping anything you already wrote there. Commit those files.

    More: CLI quickstart.

  7. Scan it, and bring in what it already says.

    Terminal window
    npx @groundrule/cli scan --upload

    The scan detects your stack, runs every catalog rule against the repository without enforcing anything, and finds the rules the repository already has: instructions in agent files, lint settings, CODEOWNERS. It uploads results and short snippets, not your source.

    More: Scan repositories.

  8. Review the inbox.

    Open Inbox. What the scan found waits here as proposals: instructions to turn into standards, tool settings to adopt, owners to assign. Accept, edit or reject each one. You can also Import a document, such as a handbook, a PDF, or a Notion page, and AI finds the rules in it.

    More: The review inbox, Import documents.

  9. Check changes in CI.

    Add two steps to your CI. In GitHub Actions:

    - run: npx @groundrule/cli sync --check
    - run: npx @groundrule/cli check --base origin/${{ github.base_ref }}

    The first fails if the agent files are out of date. The second checks only what the pull request changed, and fails on blockers at Enforce. CI uses a token from Settings → API tokens as GROUNDRULE_TOKEN.

    Optional: add --upload to the second step, with a token that has Upload scans and check results, and every pull request’s result appears on the Pull requests page.

    More: Run Groundrule in CI.

  10. Move rules forward with evidence.

    Run scan --upload regularly, for example nightly in CI. When a rule has been clean everywhere for long enough, the inbox suggests moving it to the next stage under Ready to move forward. Promote it, or hide the suggestion for a while.

    More: Evidence, Promotions.