A Guth Labs publication ↗
Back to News

Trace2rules checks whether coding agents follow repository instructions

Developer Rakha Kanz Kautsar released trace2rules 0.2.3 on November 21, updating an open-source tool that checks whether coding assistants follow a repository’s written rules.

The command-line tool reads recorded sessions from tools including Claude Code, Codex, Pi and OpenCode, and compares them with instructions in files such as AGENTS.md and CLAUDE.md.

The new version audits all recorded sessions by default, rather than automatically limiting results to sessions after the latest instruction-file change. It also hides rules that it could not measure in the default output. Older sessions can reflect older instructions, so a team evaluating a newly added rule can still opt to set a cutoff.

The audit runs locally without calling a language model. It can also produce a report for a person or assistant to use when proposing rules for recurring mistakes. The package documentation warns that reports may contain commands, paths and repository names, and says the tool does not edit instruction files automatically. The distinction matters: a written instruction is not the same as an enforced rule, and a session log only shows what happened in the sessions the tool can read.

Sources and citations

Revision history

Published . No corrections recorded.

Related stories