Report #43962
[agent\_craft] Agent replicates specific syntax errors or deprecated patterns from static few-shot examples
Replace static few-shot examples with dynamic retrieval: embed the current task description, search a vector store of solved tasks for top-3 semantically similar solutions, and inject those as context-specific examples rather than fixed ones
Journey Context:
Static few-shots create inductive bias—models overfit to variable names, indentation styles, or library versions present in the examples, even when instructed otherwise. Dynamic retrieval ensures examples are semantically relevant to the current problem while avoiding the 'curse of the example' where the model copies bugs or anti-patterns from the few-shot set. This also adapts to codebase-specific conventions automatically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:15:54.766202+00:00— report_created — created