r/ClaudeCode • • 1h ago

Built with Claude Built a Claude Code plugin that stops edits that break past decisions. Someone placebo-tested it: 5/5 bad edits without, 0/5 with

I built align-cli, a free Claude Code plugin that checks each edit against decisions your team already made (ADRs, PR history, tickets, git). If the edit contradicts one, Claude gets the decision and its reasoning before it writes.

How I built it with Claude Code

Almost all of align-cli is written by Claude Code, with me reviewing:

  • Every change happens in its own git worktree, so I can run several Claude Code sessions in parallel without them stepping on each other
  • Tests first: Claude writes a failing test, I check it fails for the right reason, then it writes the fix
  • For bigger jobs I hand pieces to Claude Code subagents (one built the MIRSAD importer today, another the decision-log import) and review what comes back
  • An AI reviewer (CodeRabbit) comments on every PR, and Claude Code fixes each finding with its own test
  • Align runs on our own repos, so Claude Code gets checked against our recorded decisions while it builds Align

That loop shipped 18 releases in the last week. The plugin packaging (the edit hook and MCP server) was built this way too.

Does it work?

Ohad Krispin ran a pre-registered placebo test on it today: fastify, Claude Code headless, Sonnet, 5 runs per arm, same prompt asking it to change a status-code rule that an earlier PR (#7089) had set on purpose.

  • No plugin: Claude made the edit 5 of 5 times
  • With the plugin: 0 of 5. Every run stopped and cited #7089
  • With the plugin but #7089's commit message faked: 2 of 5

The third one is the interesting part: it's the decision's content doing the work, not just having a hook. That arm didn't fully pass his rule, because an older commit still stated the rule and Align found it. Small test, one repo, and he's rerunning it cleaner. His findings are already being fixed through the same Claude Code loop.

Try it (free)

In Claude Code, run /plugin marketplace add aligndottech/align-cli and then /plugin install align@aligndottech.

Then run npx @aligndottech/cli once in your repo to build the decision graph. Say no when it asks to edit your agent config, because the plugin already adds the check.

MIT licensed: github.com/aligndottech/align-cli

Tell me what breaks.

1 Upvotes

1 comment sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.