{"slug": "show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions", "title": "Show HN: Csift – the missing tool to sift your Claude Code sessions", "summary": "Developer wdhwg001 released csift, an open-source Rust tool that recovers and analyzes Claude Code session files, addressing issues where Claude deleted project files and stalled during recovery. The tool performs byte-exact reconstruction, typed search over 25 record labels, and subagent topology mapping, achieving 94.9% test coverage. It is purely local, read-only, and requires no daemon.", "body_md": "I built csift to address all my complaints about Claude's handling of its own session files. Claude Code sessions are plain-text JSONL with everything, but they never document the structure anywhere. Every time, Claude has to craft an ad hoc tool to guess, and SKILL.md isn't enough to cover everything.\n\nThis is what happened in the night that made it a real tool: Claude deleted project files, froze, and said sorry at midnight. I didn't Ralph loop it, and I asked it to recover from its own JSONL and continue. I thought it would be easy, until it stopped again in the middle of rewriting them, since they're scattered across subagents, with its 5hr limit burnt out. This wasn't the first time after I used --dangerously-skip-permissions. And I created the tool that could put the file back together byte-exact.\n\nNow csift recovers deleted files and plans, reconstructs turns, matches plans to sessions, does typed search over 25 record labels, extracts pasted images, and maps the subagent topology tree.\n\nIt's purely local, read-only to sessions, and has no telemetry. And I decided to use pure regex, no embeddings, and it requires no daemon. It's done in Rust with mmap, a SIMD scan, and rayon, so it's fast.\n\nI'd rather not waste my time hand-writing a tool to pick up Claude's slack, so Claude Code wrote this project, and I reviewed it. It passed mutation tests and achieved 94.9% coverage, so I'm happy to share it. I intended it to lack human-readable documentation except for the README.md, so human engineers shouldn't spend time polishing it by hand. Let your Claude do the work.\n\n```\n    cargo install csift\n    npx skills add wdhwg001/csift\n```\n\nEnjoy and let me know what you think.Comments URL: [https://news.ycombinator.com/item?id=49356290](https://news.ycombinator.com/item?id=49356290)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions", "canonical_source": "https://github.com/wdhwg001/csift", "published_at": "2026-08-19 03:24:31+00:00", "updated_at": "2026-08-19 03:40:48.752837+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["csift", "Claude Code", "wdhwg001"], "alternates": {"html": "https://wpnews.pro/news/show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions", "markdown": "https://wpnews.pro/news/show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions.md", "text": "https://wpnews.pro/news/show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions.txt", "jsonld": "https://wpnews.pro/news/show-hn-csift-the-missing-tool-to-sift-your-claude-code-sessions.jsonld"}}