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 适合需要统计和分析智能体使用时长及开发效率的用户。
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:codetime-dev/dsh-codetimeConfiguration
| Key | Default | Meaning |
|---|---|---|
mode | DISABLED (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. |
apiUrl | https://codetime.dev | API base URL. |
flushIntervalMs | 60000 | Rollup flush cadence. |
shutdownTimeoutMs | 5000 | Upper 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.