Follow up to #4516. In dogfooding, we noticed the new "context preamble" made Claude too cautious to answer general coding questions when other context was provided. This PR refines the prompt to strike a better balance between grounding answers in context, while still responding to general questions.
Example: "how do slices in go work?", Claude 3 Sonnet with codebase context
Before: "Unfortunately the provided codebase context does not contain any information about how slices in Go work... I would need access to Go language documentation."
Follow up to #4516. In dogfooding, we noticed the new "context preamble" made Claude too cautious to answer general coding questions when other context was provided. This PR refines the prompt to strike a better balance between grounding answers in context, while still responding to general questions.
Example: "how do slices in go work?", Claude 3 Sonnet with codebase context
Test plan
Added several more "Chat quality" unit tests