A ~200-line TS coding agent: cap tool output, compact at 90K, split long loops

TejasKumar_ · x · 2026-12-05

On the aiDotEngineer show (30K+ views), Tejas Kumar built a 200-line TypeScript coding-agent harness from a while(true) loop. Key lessons: cap tool output at 12K chars, compact context at 90K tokens before Haiku 5.5's 5x 100K cliff, and split 122-step loops (29% of runs) into retryable phases. Shared via a repost by LifanBuilds.

Original post →

More from coding & agent

coding & agent channel →