CreatmanCEO/claude-code-antiregression-setup

11 stars · Last commit 2026-03-05

Stop Claude Code from breaking your projects. Ready-to-use CLAUDE.md templates, subagents, hooks, and anti-regression configs.

README preview

# Claude Code Anti-Regression Setup

> Stop Claude Code from breaking your projects. Ready-to-use configs, agents, hooks, and templates.

## The Problem

Claude Code progressively breaks projects during long sessions due to **context window exhaustion** (~200K tokens). At 90% utilization, it forgets earlier decisions and introduces regressions. 80% of context gets consumed by file reads and tool results — not your conversation.

The community calls this **"context drift"** and it's the #1 source of AI-introduced regressions.

## The Solution

This repo provides a battle-tested anti-regression setup through four layers:

1. **CLAUDE.md** — Persistent project rules that survive context compaction
2. **Subagents** — Isolated AI specialists (planner, tester, reviewer) with separate context windows
3. **Hooks** — Automated test gates that block broken commits
4. **Rules** — Modular, glob-scoped coding standards

## What's Inside

View full repository on GitHub →