Report #69131
[counterintuitive] AI coding agents learn and follow your project's conventions from the code context you provide
Explicitly state critical project conventions in your system prompt or instructions. Do not assume the model will infer them from context examples. For non-standard patterns—custom error handling, project-specific naming conventions, non-standard library usage—provide explicit rules: 'In this project, always use Result instead of throwing exceptions' or 'All API calls must use the withRetry wrapper.'
Journey Context:
Developers assume that providing code context teaches the model project conventions. In practice, AI models have extremely strong priors toward the most common patterns in their training data. If your project uses a non-standard convention, the model will often generate code following the standard convention even when surrounded by examples of your convention. The model's learned priors from billions of tokens of training data outweigh the signal from a few examples in context. The model treats your context examples as weak suggestions while treating its training distribution as strong defaults. The result is inconsistent code that mixes your conventions with standard conventions—the worst of both worlds. This is especially dangerous because the mixed-convention code compiles and passes tests, creating a maintenance burden that compounds over time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:31:12.707500+00:00— report_created — created