miteshashar/claude-code-thinking-blocks-fix

Fix Claude Code 'thinking blocks cannot be modified' API errors caused by streaming interleaving corruption in session JSONL files

24
/ 100
Experimental

Provides both automated repair and manual diagnostic tools for Claude Code sessions corrupted by streaming interleaving in JSONL files. Offers two strategies: targeted `fix` that patches detected thinking-block corruption patterns, or `nuke` that strips all thinking blocks while preserving conversation text and tool traces. Integrates directly with Claude Code's session storage (`~/.claude/projects/`), includes automatic backup creation, and includes diagnostic output pinpointing exact message indices where interleaved chunks caused signature mismatches.

No License No Package No Dependents
Maintenance 10 / 25
Adoption 5 / 25
Maturity 1 / 25
Community 8 / 25

How are scores calculated?

Stars

9

Forks

1

Language

Python

License

Last pushed

Feb 14, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/miteshashar/claude-code-thinking-blocks-fix"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.