Report #90840
[counterintuitive] AI coding agents generalize well to unusual or novel code patterns in your codebase
When working with unusual patterns \(custom DSLs, unconventional architectures, domain-specific idioms, in-house frameworks\), provide explicit examples and documentation in context. Do not assume the AI will infer the pattern from a few instances. If your codebase violates common conventions, the AI will fight you by trying to impose the conventions it learned from training data.
Journey Context:
AI appears to generalize because it handles common patterns fluently. But this fluency is memorization, not reasoning. On distribution shift — code that uses unusual patterns, novel abstractions, or domain-specific conventions — performance drops sharply. The AI will attempt to force familiar patterns onto unfamiliar code, producing plausible-looking but incorrect output. This is the 'competence illusion': the AI seems capable because it is fluent, but fluency and competence are orthogonal. The worst outcomes occur when the AI's suggested pattern is \*almost\* right but subtly wrong in ways that match common training data patterns rather than your codebase's actual conventions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:04:22.306290+00:00— report_created — created