**Describe the bug** Sometimes the file writing tool writes `\n` instead of actual newlines. **Version affected** cagent version v1.0.2 Build time: 2025-09-03T15:46:35Z Commit: a2c9336dbc62544523a35ffe1b7acf7c545f2b95 **How To Reproduce** Detailed steps to reproduce the behavior: 1. Run the golang_developer.yaml agent 2. Tell it to write some new documentation 3. It might include `\n`s **Expectation** All the `\n`s should be newlines. **Screenshots** <img width="3082" height="844" alt="Image" src="https://github.com/user-attachments/assets/6fe06a25-c4d9-4947-a309-4520a59a3662" /> **OS and Terminal type** Mac OS Warp **Additional context** Any other info you consider useful can be included here