Skip to content

Rules

Do all your agents read the same instructions? Many projects keep a CLAUDE.md for Claude Code and an AGENTS.md for Codex and others, and over time the two disagree. Yardmaster finds every rule file, tells you which agents read each one, flags pairs that have drifted apart, and edits a file only after showing you a diff and taking a backup. It never edits a symlink or a file it cannot read back, and it never writes without your confirmation.

Open ConfigRules. Each row is a rule file with the agents that read it, its scope, an estimated token count, and its size. A drift mark appears beside a file whose AGENTS.md partner is different. The states are same, linked, imported, and different.

Config, Rules tab: rule files with reader icons, token estimates, and a drift mark on one CLAUDE.mdConfig, Rules tab: rule files with reader icons, token estimates, and a drift mark on one CLAUDE.md
Config, Rules.

A fix replaces the CLAUDE.md (or GEMINI.md) with one line that imports the AGENTS.md next to it, such as @AGENTS.md, so every agent loads the same text from then on. The diff shows what is dropped, and the old text stays in the backup.

In ConfigRules, click Fix drift… on the file. The preview shows the diff and a warning that lists how many lines will stop loading. Click apply to write it.

Config, Rules tab: Fix drift preview with the diff replacing CLAUDE.md by an import of AGENTS.mdConfig, Rules tab: Fix drift preview with the diff replacing CLAUDE.md by an import of AGENTS.md
The fix drift preview.

Gemini CLI imports only from its own folder, so a GEMINI.md is fixed only when the AGENTS.md is next to it.

In ConfigRules, click Edit… on a file. Change the text and click Preview changes. Nothing is written until you review the diff and save.

Config, Rules tab: the rule file editor with a text area, Cancel and Preview changes buttonsConfig, Rules tab: the rule file editor with a text area, Cancel and Preview changes buttons
The rule file editor.

Every change backs up the current text first, in Yardmaster’s rule-backups folder. Restoring is an ordinary edit: it shows a diff, backs up the text it replaces, writes atomically, and reads the file back.

In ConfigRules, click Backups on a file to list its backups with the lines each would add and remove. Pick one to preview putting it back. A backup identical to the file now cannot be picked.

Config, Rules tab: backups list under a rule file with date, size, and lines added and removedConfig, Rules tab: backups list under a rule file with date, size, and lines added and removed
Backups under a rule file.