Skip to main content
Version: 0.4.1

The authoring brief

AGENTS.md, the authoring brief, is a file at your repository's root that tells an AI assistant how to write and change a Kanoniq model. Kanoniq assembles it, and its first line names the version it was assembled for. It is yours to keep or delete; nothing but an assistant reads it.

What it holds​

  1. The rules for every change: model only what runs, and ask where nothing tangible stands behind an element; state everything and infer nothing, asking where a choice could go two ways; write nothing into a .g.kq file and no Id, and rename or move an element with the editor's refactorings so its Id is kept; keep out what the language cannot say, and say so rather than force it in; validate a change before proposing it; and name every element an answer relies on by its path.
  2. The validate loop: kq validate --format sarif . after every change, until the model is clean or only questions for you remain, then kq build .. See The validate loop.
  3. How a model is written: one small model that builds, showing a declaration, a block, a kind, a reference by path, a connection, a realization, an open property and a description, and where the language reference is.
  4. Every element type, under its language area, with what it is.
  5. Every rule, by code, with its severity and its summary, each linking its page.
  6. Where to read more: llms.txt and llms-full.txt.

Add it to a repository​

  • kq init writes it in every repository it makes, with two pointer files: CLAUDE.md, holding @AGENTS.md, for Claude Code, and .github/copilot-instructions.md, linking it, for GitHub Copilot. kq init --no-agents leaves all three out. See kq init.
  • In VS Code, run Kanoniq: Add or Refresh the AI Authoring Brief from the Command Palette. It writes AGENTS.md at the root of the repository the active file is in, or else of the first workspace folder in one, and each pointer file where there is none.
  • Download it: AGENTS.md is this version's brief. Save it at your repository's root.

Refresh it​

Each version of Kanoniq assembles its own brief, with the rules and element types it knows. After an upgrade, run Kanoniq: Add or Refresh the AI Authoring Brief again: it replaces a brief of any version with the installed version's. A refresh replaces the whole file, so keep instructions of your own in another file. Where AGENTS.md is a file of your own, not the brief, the command asks before it replaces it, and it never touches a CLAUDE.md or a .github/copilot-instructions.md already there.

© 2026 Extenza Works. All rights reserved.