codetime-dev/dsh-codetime ↗★ 0

dsh-codetime

CodeTime backend for the DeepSeek Harness session-telemetry seam: reports session/turn/tool/file activity to codetime.dev via /v3/agent/ingest 适合需要统计和分析智能体使用时长及开发效率的用户。

パッケージ
dsh-codetime
互換性
未検証
Harness ピア範囲
*
Cordis ピア範囲
*
バージョン
0.2.1
ライセンス
MIT
最終更新
2026/10/01

インストール

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

ドキュメント

README 全文を読む ↗

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.