Document two hard-won patterns in CLAUDE.md's new Architectural
Insights section:
- ANSI Width Calculation: lipgloss.Width() must be used instead of
len() for styled strings, since ANSI escape codes add ~20 bytes per
color code. fmt.Sprintf padding is similarly affected.
- JSON Top-Level Type Detection: bytes.Contains matches nested strings
in JSONL with embedded JSON. Correct approach tracks brace depth and
skips quoted strings to find actual top-level fields.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>