reflect. A self-correction harness for Claude Code.
- When
- Stack
- TypeScript, Claude Code hooks

Why
When a coding agent goes wrong, the same signs keep coming back: a revert, a deleted file, a "no" from me. I figured that if those signs were scored, and a correction went into the next turn whenever the score crossed a line, the agent could stop repeating the mistake.
How
reflect never blocks the work: it keeps score in the background, and once the line is crossed it asks a model why the work keeps being rejected, then steers the next turn.
Outcome
I built reflect for the hackathon, where I was one of 500 selected from 20,000+ applicants, and published it on npm under the MIT license.