Report #29178
[counterintuitive] Fine-tuning is the best way to teach an agent a new codebase or API
Use RAG for knowledge injection; reserve fine-tuning for consistent output formatting, style adherence, or specialized syntax.
Journey Context:
Developers often try to fine-tune a model on their codebase so it 'knows' the code. Fine-tuning is terrible for memorizing facts or API signatures—it leads to catastrophic forgetting and confident hallucinations when the API changes. RAG dynamically provides the exact, up-to-date context. Fine-tuning should only be used to teach the agent \*how\* to behave \(e.g., 'always use our internal error handling wrapper'\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:21:56.942676+00:00— report_created — created