GuideKnowledge
Rules
Write the rules every agent run follows, for all repositories, for teams or for repository patterns, see the rules files your repositories already carry, and check the exact block a review or task gets.
Reviews, replies in review threads, agent tasks, chat, release notes and coding agents over MCP all read the same rules. They come from three places, strongest first: rules people write here, the repository’s own rules files, and learnings Holtkeeper picked up from review replies (see Learnings). Your policies are added as plain facts.
The design follows the conventions of AGENTS.md, GitHub Copilot instructions and Cursor rules: Markdown rules, scoped by paths, with the same activation modes. A team that already keeps those files gets them read as they are.
| Rule | Scope | Applies | Agents | Version | Last edit |
|---|---|---|---|---|---|
| Money is integers in minor units | All repositories | Always | all | 3 | Mira K. · 3 days ago |
| How Widgets reviews | Team Widgets | Always | review | 7 | Ivo P. · 1 week ago |
| Release notes for players | Team Widgets | Always | release | 2 | Mira K. · 1 month |
| Contract tests for API routes | acme/round/* |
src/routes/** | review, task | 1 | Ivo P. · 2 weeks ago |
| Migrating to @acme/widget-kit 5 | acme/*/web |
On request | task, chat | 4 | Sam L. · 5 days ago |
Repository rules files
Section titled “Repository rules files”Holtkeeper reads these files from the repository: from the review’s checkout, or from the default branch for chat, release notes and the effective prompt. They are read-only here; edit them in the repository.
| File | Applies |
|---|---|
REVIEW.md, AGENTS.md, CLAUDE.md (root) |
Always. |
.github/copilot-instructions.md |
Always. |
CONTRIBUTING.md |
Always. |
AGENTS.md, CLAUDE.md in a folder |
To files under that folder. |
.github/instructions/*.instructions.md |
applyTo globs; excludeAgent: code-review keeps it out of reviews, coding-agent out of tasks. |
.cursor/rules/*.mdc, .continue/rules/*.md |
alwaysApply, globs, or only a description (offered on request). |
.claude/rules/*.md |
paths globs, otherwise always. |
.windsurf/rules/*.md |
trigger: always_on, glob, model_decision (on request); manual is skipped. |
Files under node_modules, vendor, dist and build are ignored. Root files share at most 4,800 characters; a longer one is cut at a line break with a pointer to the file. REVIEW.md keeps its ## Paths and ## Ignore sections for reviews, see Reviews.
---applyTo: 'src/routes/**'---
- Every new route needs a contract test in `test/contract/`.- Return errors through `problem()`, never a bare `Response`.Write a rule
Section titled “Write a rule”New rule (with knowledge:write over the scope) opens the editor.
History
| Field | Meaning |
|---|---|
| Rule | Markdown. Write short imperative lines an agent can follow, and say why when it is not obvious. |
| Scope | All repositories, one or more teams (a team is its set of repositories, see Teams), or repository patterns such as acme/*/web. |
| Files | Optional path globs. The rule applies only when the task touches a matching file. |
| Agents | Optional. Limit the rule to Review, Agent task, Chat or Release notes; empty means all of them. |
| Description | Optional. A rule with only a description is not injected: agents see it listed and read it when it fits the task. Always apply keeps it injected. |
So a rule reaches a prompt in one of three ways, as in Cursor: always, when a touched file matches, or on request by its description.
History lists earlier versions with who saved them, each with Restore.
Policies
Section titled “Policies”Some facts are settings, not prose, and reach agents as plain lines next to the rules: a repository with no tests by design, the test id convention and the asset policy (reviews and tasks), and commit conventions (release notes, tasks and chat). Edit them in Settings › Policies.
Check the effective prompt
Section titled “Check the effective prompt”Effective prompt shows exactly what one run on a repository gets, block by block.
- Touched files
- src/routes/cart.ts · src/cart/total.ts
- Pick the repository, the run (Review, Agent task, Chat or Release notes) and, optionally, the touched files.
- Read Blocks, Full text (the block as sent) or Warnings (what was cut and why).
Blocks come in this order:
- Panel rules that always apply, broadest first: all repositories, teams, repository patterns.
- Root rules files.
- File-scoped panel rules, then nested and file-scoped rules files, that match the touched files. Without touched files, all of them, each titled with the paths it covers.
- Policies.
- Learned rules, under their own heading, best ranked first. Agents follow them unless a rule above says otherwise.
Everything shares 12,000 characters. Rules files get at most 4,800 together and are cut with a pointer; learned rules get at most 3,000 and are dropped whole, lowest ranked first. Each block shows its size and cut when the budget shortened it. Rules offered on request are listed separately under the blocks.
Agents cite what they followed: [rule:<id>] for a rule, [learn:<id>] for a learning. A review comment that cites a learning counts as a use of it.
Copy text copies the block as sent.
In a repository or team
Section titled “In a repository or team”The repository hub’s Knowledge tab shows the repository’s effective prompt and the rules and learnings that apply to it. The team page’s Knowledge tab lists the rules scoped to the team.
Related
Section titled “Related”- Learnings — rules Holtkeeper learns from review replies and merged merge requests.
- Reviews — the run that reads the most rules.
- Settings › Policies — test ids, asset policy and commit conventions.
- Rules and knowledge for agents —
repo_rulesandsearch_knowledgeover MCP. - Rules — how rules resolve, the budget and the rules file formats.