ccactivity

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Last(now time.Time, quiet time.Duration) (time.Time, bool)

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

func LastWrite(configHome string, now time.Time) (time.Time, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL