[RFE] Ability to append output to log file
Resolved 💬 7 comments Opened Aug 13, 2025 by cowwoc Closed Aug 18, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.77 (Claude Code)
- Operating System: Windows 11
- Terminal: WSL2 bash
Description
I want to let Claude Code run background tasks but I often find myself missing out on activity that scroll past the terminal buffer.
What I tried
wsl.exe -d Ubuntu bash -lc "script -a claude.log -c claude"retains an interactive console and logs to a file with colorswsl.exe -d Ubuntu bash -lc "fifo=\$(mktemp -u); mkfifo \"\$fifo\"; sed -r 's/\x1B\[[0-9;?]*[ -/]*[@-~]//g' < \"\$fifo\" >> claude.log & spid=\$!; script -qf \"\$fifo\" -c 'claude'; wait \$spid; rm -f \"\$fifo\""retains an interactive console and strips colors out before logging to a file
Both approach work, but unfortunately the animation gets logged which means that log file output is extremely verbose to a point of being useless.
Please provide a built-in feature for append the output to a file (with and without colors getting stripped out) in a way that does not log the animation but rather only the final result.
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗