Agentic Loop

Iterative Debugging: Fixing Hallucinations in 9B Local Agents

Iterative Debugging: Fixing Hallucinations in 9B Local Agents

You hit enter. OpenCode spins up a 50-line component, the terminal goes quiet for a second, and then your dev server throws it back at you in red: ReferenceError: window is not defined. The agent just wrote perfectly confident, perfectly broken code — it reached for window.innerWidth like it was …