cogload is a cognitive load monitoring tool for Claude Code users, designed to help developers stay clear-headed and avoid overfatigue. It runs entirely locally and does not send any data externally.
Purpose
cogload analyzes existing Claude Code session records (transcripts) on the local machine to assess the user's hourly work intensity and produce a cognitive load score from 0 to 100. Scores fall into four levels: calm (0–29), warming (30–59), heating (60–84), fried (85–100). The tool also provides a Claude Code plugin that displays the current load in real time and enforces breaks when necessary.
Main capabilities
- Hourly scoring: Calculates a load score for each hour based on factors such as the number of parallel sessions, prompt cadence, agent supervision, model output, continuous work length, and late-night work.
- Two-week overview card: A single command generates a visualization card for the last 14 days, showing the dominant load type, peak hours, the proportion of hours at each level, and up to three highlights. The card does not include dates or total hour counts, avoiding its use as a timesheet.
- Claude Code plugin: Displays the load level and break start time for the most recent hour above the prompt; enter
/cogloadto view load drivers. - Enforced breaks: When working continuously for 40 minutes without a 10-minute gap, or when at the fried level, the plugin pauses prompt submission for 10 minutes. Delayed prompts remain in the input box and are sent automatically after the break ends. Users can edit or delete them.
- Skipping breaks: Add
skip: <理由>(reason of at least three words) at the beginning or end of the prompt to skip a break. Up to 5 skips per calendar week (starting Monday 00:00 local time). - Multi-session warning: When the user has worked with 4 or more sessions (new or resumed) within 30 minutes, the plugin issues a warning suggesting finishing the current session first.
Usage
- Requirements: Requires Bun 1.4.2 or later. macOS uses WebKit to render the card; other platforms require an installed Chromium browser, or use
--out card.htmlto output an HTML file and open it in any browser. - Install Bun (if not installed):
curl -fsSL https://bun.sh/install | bash - Generate the two-week card: Run the corresponding command in the terminal (see the official documentation for the specific command), or paste the repository link directly into Claude Code to request installation of cogload.
- Install the plugin: Execute the officially provided command blocks in order (each command can be safely run repeatedly), then restart Claude Code to load the plugin. If using a Homebrew-installed Bun, you need to add
~/.bun/binto PATH yourself. - Try the CLI without installation:
bunx @drakulavich/cogload@latest .
Use Cases
- Users who develop with Claude Code and want to understand their daily cognitive load distribution.
- Developers who need reminders to take regular breaks and avoid prolonged continuous work.
- Users who care about privacy and do not want their work data to leave their local machine.
Limitations
- Only supports Claude Code session records; not applicable to other AI programming tools.
- Requires Bun 1.4.2 or later; generating cards on non-macOS platforms requires a Chromium browser or manual HTML output.
- The plugin's forced break mechanism may interrupt workflows, but this can be mitigated with the skip feature (limited to 5 times per week).
- Does not retain message text, prompt length, file paths, or session titles; only timestamps, session IDs, event types, and token counts are retained.
- For specific installation commands, exit codes, formula details, etc., please refer to the official documentation.