Dev ships Canon CLI to fix AI coding agents rehashing rejected approaches

letsrediit · reddit · 2026-08-15

A developer released Canon, a local-first CLI tool designed to prevent AI coding agents (like Claude Code and Cursor) from repeatedly proposing previously rejected approaches or inventing stale conventions.

The Problem

Agents often lose context between sessions, re-proposing rejected PRs, asking settled questions, or treating old comments as current truth. Maintaining static ADRs manually is costly and prone to staleness.

How Canon Works

Installation

bash

pip install git+https://github.com/Adarshk18/Canon.git

canon init

canon suggest

Currently supports Claude Code and Cursor auto-injection; ChatGPT requires manual attachment of .canon/injection.md.

Related event: Developer Open-Sources Canon, Giving AI Coding Agents a Decision Memory(2 posts)→

Original post →

More from coding & agent

coding & agent channel →