Report #103507
[agent\_craft] Few-shot examples for code tasks don't improve output quality
Provide 1–3 examples where the assistant message exactly matches the desired output format, including indentation, comments, and stop boundaries. Match the target language and task shape; do not reuse generic Python examples for a shell-script task.
Journey Context:
Models learn the pattern from examples more than from descriptions. A common failure is describing the format in prose while the examples diverge in whitespace, naming, or style. The model then averages the noise and produces inconsistent output. Keep examples minimal but perfectly representative; if the desired output is a JSON patch, the example must be a JSON patch, not a description of one. Zero-shot is better than a mismatched few-shot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:31:19.723346+00:00— report_created — created