Coding agents repeat the wrong precedent. Here is what stops them

Four pre-registered studies, 588 agent runs: agents copy the wrong precedent near a change, the project tests do not stop it, a test for the rule does, and one sentence at the old wrong code prevents most violations.

November 18, 2026 · 6 min · Hamidreza Mohaqeq

I built a context language for AI coding agents. Three experiments said they didn't need it

Three pre-registered experiments, about 130 agent runs: a formal context language didn’t make coding agents follow architecture rules better, because they already read the code.

November 10, 2026 · 7 min · Hamidreza Mohaqeq

Discovering a codebase's architecture instead of declaring it

An agent skill that finds the architectural patterns and anti-patterns a repository actually has, across 13 languages, and grades each one with file:line evidence.

May 24, 2026 · 3 min · Hamidreza Mohaqeq