codetime-dev/dsh-codetime ↗★ 0

dsh-codetime

向 codetime.dev 上报会话与工具调用活跃数据 适合需要统计和分析智能体使用时长及开发效率的用户。

套件
dsh-codetime
相容性
待驗證
Harness 依賴範圍
*
Cordis 依賴範圍
*
版本
0.2.1
授權
MIT
最近更新
2026年10月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:codetime-dev/dsh-codetime

Configuration

KeyDefaultMeaning
modeDISABLED (the shipped patch sets FULL)FULL (capture every session live), FEEDBACK_ONLY (upload a session's log only after the human records /feedback), or DISABLED. An unknown value fails the boot instead of silently degrading.
apiUrlhttps://codetime.devAPI base URL.
flushIntervalMs60000Rollup flush cadence.
shutdownTimeoutMs5000Upper bound on the final drain at teardown.
token—Bearer token; overrides the environment and the shared config file.

Token resolution (first match wins): token config → CODETIME_TOKEN env → token field of ~/.codetime/config.json. If you already signed in with the codetime CLI or another editor extension, the shared ~/.codetime/config.json token is picked up automatically. The machine-id in ~/.codetime/machine-id identifies the machine on the dashboard (created on first use, shared with the CLI).

FEEDBACK_ONLY is an authorization boundary

In FEEDBACK_ONLY nothing leaves the process until a feedback/record event is appended to that session's own canonical log — ordinary activity is never batched out. The capture is then on demand with includeHistory, so the upload covers the whole canonical log, not just the events after the feedback. Feedback inherited from a fork parent authorizes nothing for the child, and feedback committed through the message-feedback Remote (feedback/committed, which never publishes a live session) is rebuilt from its committed inspection before capture. Mount your own session-telemetry/record rules to redact the export.