dingyi222666/dsh-wakatime

Tracks your AI coding activity — time, files and lines — with WakaTime, adapted from opencode-wakatime to DSH's plugin model: automatic wakatime-cli management, per-file operation tracking from the fs tools' durable result metadata, AI line-change metrics, per-project rate-limited heartbeats and session-lifecycle flushing.

@dingyi222666/dsh-wakatime tracks your AI coding activity — time, files and lines of code — with WakaTime, adapted from opencode-wakatime to DSH's plugin model. It manages wakatime-cli automatically (or uses a global install), tracks the file operations the agent performs (edit, write, read, read_image, and str_replace_editor view/create/str_replace/insert), and reads the fs tools' durable result metadata so resolved paths and exact diff hunks win over raw arguments. It sends --ai-line-changes for WakaTime's AI coding analytics computed from the diff hunks, fires live activity heartbeats as a long turn streams, rate-limits heartbeats to one per minute per project (persisted so parallel processes share the budget), flushes pending heartbeats on session disposal and plugin teardown, follows working-directory changes, batches multiple files in one wakatime-cli --extra-heartbeats call, and has zero runtime dependencies.

Usage & Billing ★ 2
View on GitHub ↗

Install

dsh plugin --profile web add @dingyi222666/dsh-wakatime

Copied verbatim from the README's Install block, whose comment notes it requires dsh >= 0.1.3-alpha.2 and follows the command with a restart of dsh web. The README also documents installing into other profiles (--profile headless add …), the Desktop app's bundled CLI path, and a from-source build.

Compatibility

Works in any profile that runs the agent loop — web, headless, acp, sdk and the Desktop app's desktop profile — and must be installed into each profile you use. The Desktop app exclusively owns its own profile and package state, so it must be installed with the CLI bundled inside the app (an npm-installed dsh cannot mutate the Desktop profile). All config fields are optional and validated by a schemastery schema at load.

Details

Alternatives

940842546/dsh-usage-billing · FengHuoLinShan/dsh-plugin-llm-balance · fuqiancheng/dsh-commandcode-quota

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins