Add aw-watcher-claude to Other Watchers#6
Open
CoKeFish wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a one-line entry under Other Watchers for aw-watcher-claude, a new community watcher that tracks active Claude Code (Anthropic's CLI) sessions per project.
What it does: polls
~/.claude/sessions/*.jsonevery few seconds and emits one heartbeat per active session to a per-project bucket (aw-watcher-claude_<host>_<project>). Data emitted:cwd,project,status(busy/idle),version,sessionId,entrypoint,kind. Sessions left idle past a configurable threshold (default 180 s) are dropped so they don't inflate tracked hours.Privacy: the watcher reads only
~/.claude/sessions/*.json, neverhistory.jsonl,projects/*.jsonl, or any other file that could contain prompts or responses. This is enforced by a unit test (tests/test_privacy.py) that monkeypatchesPath.read_textand asserts no.jsonlis ever opened.Status: v0.1, Windows-verified, smoke-tested end-to-end against
aw-server --testing. Cross-platform viapsutilfor PID liveness, but only Windows tested so far.Repo: https://github.com/CoKeFish/aw-watcher-claude
License: MPL-2.0