Belay is a tool that analyzes Claude Code and Codex sessions saved on your machine, identifying repeated errors and failed patterns across coding runs. It groups problems like typecheck failures and infinite loops, then proposes fixes and rules for agents to review before implementation. The tool stores all data locally in an encrypted database without uploading anywhere, working offline with no account required.