DEV Community

wangyuanliang
wangyuanliang

Posted on

Show HN: ctx-guard – Windows tray app that monitors Claude Cowork's real token usage and auto-writes handoff docs

I kept losing work mid-task when Claude Cowork hit the context limit. Built this to solve it.

It reads the API-reported token values from Cowork's local session logs (not file-size estimates), shows a floating widget that turns yellow/red as you approach your plan's limit, and auto-generates a handoff markdown doc — your recent messages, the file paths you were working with, task summary from the start of the session, and current context usage. Paste it into a fresh session and pick up where you left off.

The project itself was built across many sessions using its own handoff docs to bridge them.

Rust/Tauri, open source, ~zero idle CPU. Windows only for now.

https://github.com/wangyuanliang2009-max/ctx-guard

Top comments (0)