* allow diagnostics context to be after the main prompt to improve caching * fix new lines * traits position * trim it