Report #56048
[agent\_craft] Agent generates deprecated code patterns \(e.g., React class components, old Python async syntax\) due to outdated few-shot examples
Audit few-shot examples monthly against current framework docs; prefer zero-shot with strong constraints for fast-moving ecosystems \(React, Tailwind, Prisma\), reserving few-shot only for stable domain-specific languages \(legacy SQL, internal DSLs\).
Journey Context:
Few-shot examples exert strong 'gravitational pull' on the output distribution. A single example using outdated syntax \(e.g., 'componentWillMount'\) biases the model away from modern patterns even if the system prompt asks for 'modern React'. For rapidly evolving libraries, zero-shot with explicit version constraints \(e.g., 'Use React 18 hooks'\) is more robust than stale examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:34:15.141696+00:00— report_created — created