Skip to content

.rules: what Zed reads, and where it goes

This page says two things: what Zed reads, according to its official documentation (linked below), and what the stationhold command writes to the repository.

The command that writes it
npx @stationhold/cli@latest add verify --harness=zed

What Zed reads

  • .rules, at the repository root: it heads the list of convention files Zed goes through.
  • Zed takes the first file of that list it finds.

What it does not read

  • The files further down the list (.cursorrules, .clinerules, AGENTS.md) as soon as a file placed before them exists: Zed does not merge them.

Where the file goes

It writes .rules. Inserted between markers: the rest of the file is untouched, and reinstalling only updates that block.

Dry run by default: the command shows what it would write, and writes nothing without --write.

Source: Zed’s official documentation

The file other tools read