Skip to main content

Overview

Rules let you customize AI behavior per space. They’re persistent instructions the AI follows every time it works in that space — like giving a colleague a standing brief.

What rules do

Rules set context and constraints:
  • Coding style — “Use TypeScript strict mode. Prefer functional components.”
  • Project context — “This is a Next.js app deployed on Vercel. The API is at /api/.”
  • Behavior — “Always ask before deleting files. Run tests after making changes.”
  • Knowledge — “The main database is PostgreSQL. Auth uses JWT tokens.”

Setting rules

Add rules in your space settings. They apply to every thread in that space. The AI reads them before starting any work.

Tips for effective rules

DoDon’t
Be specific and actionableWrite vague aspirations
State constraints the AI should always followRepeat instructions you’ll give per-thread
Include project-specific knowledgeWrite rules that are obvious or universal
Keep rules conciseWrite essays — the AI handles short, clear rules best

Example

This is a React + Express project. TypeScript strict mode.
- Frontend: React 19, Vite, styled-components
- Backend: Express, Drizzle ORM, PostgreSQL
- Always run `bun test` after making code changes
- Never commit directly to main — create a branch first