Keep interface constraints in code or agents will stomp all over them next session
zeeg · x · 2026-10-14
The author shares a hands-on lesson for AI coding agents: when modifying a codebase, the agent follows whatever patterns it already knows, even if those patterns are wrong for the tricky case at hand.
One fix is to annotate the wrong patterns in code as wrong, steering the agent toward the right approach. More broadly: if you have a constrained, well-articulated public interface—one you deliberately forced constraints onto—you need to encode that in the code itself (comments, deterministic rules, etc.). Otherwise the agent will stomp all over it in the next conversation, which matters increasingly for software reliability.
More from coding & agent
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29