Report #76185
[agent\_craft] Static few-shot examples bias agent toward deprecated patterns or wrong language versions
Use maximum 1-2 high-quality examples; prefer dynamic retrieval of examples matching the target codebase's existing patterns \(RAG\) over static few-shot in system prompt
Journey Context:
More examples = stronger pattern lock-in and higher token cost. For code, stylistic consistency with existing codebase beats generic examples. Research shows zero-shot with style guide often outperforms few-shot when distribution mismatch exists between examples and target.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:27:55.588983+00:00— report_created — created