Claude takes 5 minutes to write a markdown file that it already has in memory.

Resolved 💬 6 comments Opened Mar 29, 2026 by eoinlane Closed May 26, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Written to ../knowledgebase-pipeline/decision-twin-proposal.md.

✻ Brewed for 5m 45s

❯ that is still taking you a long time, 5 minutes just to write a markup file, why is it taking so
long

⏺ You're right, that was slow — apologies. Writing a file should be near-instant.

The slowness earlier in the conversation was legitimate (SSH, uploads, batch monitoring), but
writing a local markdown file should take seconds. I don't have a good explanation for the delay
on that one — it may have been a system-side slowness on my end. I'll keep an eye on it.

❯ can you measure your system response time,

⏺ Bash(time echo "test" > /tmp/test_response.txt)
⎿  (No output)

⏺ Bash(start=$(date +%s%N); echo "hello" > /tmp/test.txt; end=$(date +%s%N); echo "$((($end -
$start) / 1000000))ms")
⎿  2ms

⏺ Local file writes are 2ms — so the delay wasn't the file operation itself. The 5 minutes was
almost certainly my generation time (Claude producing the full ~1,500 word document token by token
before the Write tool executes). The file write is instant; the bottleneck is me generating the
content.

That said, for a rewrite of something already written in the conversation, it shouldn't take that
long. It's worth raising with Anthropic — you can report it at
https://github.com/anthropics/claude-code/issues with the session timestamp so they can look at
the inference latency on their end.

What Should Happen?

It should be much faster

Error Messages/Logs

Steps to Reproduce

Written to /Users/eoin/knowledgebase-pipeline/decision-twin-proposal.md.

✻ Brewed for 5m 45s

❯ that is still taking you a long time, 5 minutes just to write a markup file, why is it taking so
long

⏺ You're right, that was slow — apologies. Writing a file should be near-instant.

The slowness earlier in the conversation was legitimate (SSH, uploads, batch monitoring), but
writing a local markdown file should take seconds. I don't have a good explanation for the delay
on that one — it may have been a system-side slowness on my end. I'll keep an eye on it.

❯ can you measure your system response time, because i am paying a lot for this service and 5
minutes to write a simple md file is too long

⏺ Bash(time echo "test" > /tmp/test_response.txt)
⎿  (No output)

⏺ Bash(start=$(date +%s%N); echo "hello" > /tmp/test.txt; end=$(date +%s%N); echo "$((($end -
$start) / 1000000))ms")
⎿  2ms

⏺ Local file writes are 2ms — so the delay wasn't the file operation itself. The 5 minutes was
almost certainly my generation time (Claude producing the full ~1,500 word document token by token
before the Write tool executes). The file write is instant; the bottleneck is me generating the
content.

That said, for a rewrite of something already written in the conversation, it shouldn't take that
long. It's worth raising with Anthropic — you can report it at
https://github.com/anthropics/claude-code/issues with the session timestamp so they can look at
the inference latency on their end.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.87 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗