Report #16539
[agent\_craft] Agent generates verbose boilerplate for simple tasks or misses edge cases in novel algorithms
Use few-shot prompting \(2-3 examples\) only for repetitive, pattern-heavy tasks \(e.g., CRUD endpoints, React components\). For novel algorithmic logic or debugging, use zero-shot with explicit chain-of-thought instructions to avoid anchoring bias.
Journey Context:
Few-shot examples act as strong priors; in code, this causes overfitting to syntactic patterns in the examples, inserting unnecessary boilerplate or ignoring specific requirements that differ from the example. Conversely, zero-shot with CoT forces the model to reason through the logic, yielding more correct algorithmic solutions. The tradeoff is latency and token cost. The decision boundary is: if the output is structurally deterministic \(schema-heavy\), few-shot improves consistency; if it's logic-heavy, zero-shot with reasoning wins.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:53:13.937261+00:00— report_created — created