Documentation
¶
Overview ¶
Package ccactivity says when Claude Code last did anything on this machine.
Claude Code appends to a session's transcript, projects/<project>/<session>.jsonl under its config root, on every prompt, every reply and every tool result, so the newest write to any transcript is the last moment some session was working. Hover reads it for one decision only -- whether the work is resting (strategy.Options.LastActivity) -- and asks only when that decision would move the session, so the walk is rare.
Every doubt reads as activity, never as rest: a walk that could not see the whole tree finds nothing, and the engine never moves the session on nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Last ¶
Last is LastWrite on Claude Code's own config root. An answer that the work is active -- a write younger than quiet -- or that nothing was found is reused for cacheFor in this process; one that reads as rest is always walked again.
func LastWrite ¶
LastWrite is the newest modification time of any transcript under configHome as of now, and whether the walk saw the whole tree and found one. Symlinked directories are followed once each; any entry it cannot read makes the answer "nothing found", since a write it could not see is still a write.
Types ¶
This section is empty.