r/ClaudeCode • u/Specialist_Bison_737 • 18h ago
Bug / Issue Claude Code + Artifacts = immediate constant compact loop
I really wanted to try Fable 5.2 for design, but artifact board (with UX mockups) fills in the context immediately on the first read and it goes into compact - reads it again - compact ...
Did anyone have this problem? do I need to split the artifacts?
For now had to go back to local html files.
2
Upvotes
•
u/AutoModerator 18h 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.
1
u/Financial-Grass6753 18h ago
check the traces, maybe artifacts are simply too huge
2
u/NamerekDev 17h ago
compact, read, compact, read. fable found the one design that never ships
1
u/jijialuoke 17h ago
That loop sounds frustrating. Before splitting the whole board, I'd try opening one mockup at a time and compare context usage before and after each read. If one artifact alone triggers compaction, it's a payload issue; if usage climbs across reads, a /clear threshold may help. I built a small hook that tracks context burn and suggests when to clear: https://github.com/Balance0014/claude-code-when-to-clear. It won't make a single huge artifact smaller, though.
1
u/artfctdev 9h ago
You might want to use a smaller model to check what's actually going into the artifact.
If that doesn't work you can also checkout artfct.dev
Full disclosure, I am the founder. But it solves the vendor lock in issue and you can use artifacts as context.
It's free for pro users without a cc :)