r/ClaudeCode • u/Ok_Gur_9033 • 5d ago
Discussion I counted every big paste I made into Claude Code since 25 Oct. 72% of the text was flutter run logs, and 1.6% of those lines mentioned an error.
I went through my Claude Code logs and pulled every prompt where I pasted more than 20k characters. Since 25 Oct there were 117 of them, about 22 million characters in total.
87 of the 117 were raw flutter run output copied straight from the terminal. Those alone were 72% of everything I pasted. The biggest one was 1.86 million characters.
Then I looked at what was actually in them. Across 132,478 lines of flutter run output, 2,115 lines mentioned an exception, an error or a failure. That's 1.6% of the lines. The rest was hot restart output, device logs and similar noise.
A paste also doesn't get read just once. It stays in the context and rides along with every request after it until the session compacts. One 505k character paste was carried through 95 more requests.
Limits: this is one person, mostly Flutter on a physical Android phone, and my error filter is a plain keyword match, so it misses some useful lines and counts some junk.
Writing the run output to a file and letting the agent grep it seems like the obvious fix. For people doing mobile work with Claude Code, how do you get device logs to it?
•
u/AutoModerator 5d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/Far_Reindeer8428 5d ago
we stopped pasting logs too, the agent greps the file now. 72% for one command is about what we saw with browser console output
2
u/KingYF1 5d ago
Writing the log to a file and grepping it is the right fix, but I'd go one step further and never let the raw flutter run stream into the prompt at all.
What I do on mobile work:
The expensive part in your numbers isn't even the first paste. It's the 505k character blob riding along for 95 later turns. Even with prompt cache you still pay a fraction of that on every request until compact, and compact itself has to read it again.
I also added a one-liner to CLAUDE.md: if a command's stdout is large, write it to a file and search it; never echo the whole thing back into the conversation. That stops the agent from "helpfully" dumping the log after it runs the command itself.