Back to home

zhengjy01

dsh-period-report

Free-interval session reports for DeepSeek Harness: AI-narrated daily/weekly digests over any date range + every-N-days scheduled reminders with system notifications

Stars
0
Language
JavaScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-period-report

Free-interval session reports for DeepSeek Harness: generate AI-narrated work reports (daily / weekly / monthly / any custom date range) from your session corpus, and schedule periodic reminders ("every N days at HH:MM, starting from an anchor date") that generate the report and pop a system notification.

Features

  • Any date range — pick a start and end date; the report covers exactly that window (a single day, 2 days, 7 days, a whole month, whatever you need).
  • AI narrative digest — the deployment's default model writes a natural-language summary (Today at a glance / Highlights / Review / Suggestions) that reads like a human-written daily report. Falls back to a template highlight list when AI is disabled or unavailable.
  • Full statistics — active/new sessions, user & assistant messages, tool calls, turns, steps, token usage (input/output/cache read/write/reasoning), turn results, top tools.
  • Per-session details — title, id, working directory, active window, message/tool/turn counts, first request.
  • Periodic reminders — free period length: intervalDays: 1 = daily, 7 = weekly, 2 = every other day… anchored at anchorDate, fired at hour:minute, once per period. range: previous reports the completed previous period (e.g. 09:00 digest of yesterday); range: current reports the period in progress.
  • System notifications — macOS Notification Center banner via osascript, Linux via notify-send. Full reports are also saved to ~/.dsh/dsh-period-report/reports/ so nothing is lost when the GUI is closed.
  • Bilingual — reports in Chinese (zh) or English (en).
  • Persistent config~/.dsh/dsh-period-report.json (mode 0600).

Install

dsh plugin --profile web add github:zhengjy01/dsh-period-report

Local development:

dsh plugin --profile web add link:/path/to/dsh-period-report

Tools

report_generate

Generate a report for an arbitrary date range.

ParameterTypeDescription
startDatestring (required)Start date, YYYY-MM-DD (inclusive)
endDatestring (required)End date, YYYY-MM-DD (inclusive)
includeSubagentsbooleanInclude subagent sessions (default false)
withUsagebooleanInclude token usage stats (default true; disable for speed)
languagestringzh or en (default zh)
narratebooleanAI narrative digest (default true; disable for a fast template digest)

Returns the full Markdown report.

report_config

View or update the reminder configuration (persisted in ~/.dsh/dsh-period-report.json).

ParameterTypeDescription
enabledbooleanEnable/disable the scheduled reminder
anchorDatestringAnchor date YYYY-MM-DD; periods count from this day
intervalDaysnumberRemind every N days (1–90; 7 = weekly)
hour / minutenumberReminder time of day
rangestringprevious (report the last period, default) or current
languagestringReport language zh / en
narratebooleanAI narrative toggle

Calling it with no arguments returns the current configuration.

Example

“Set a reminder every 2 days at 09:00 starting from 2026-06-01, in Chinese.”

report_config with { "enabled": true, "anchorDate": "2026-06-01", "intervalDays": 2, "hour": 9, "minute": 0, "range": "previous" }

Reminders fire on 06-01, 06-03, 06-05 … at 09:00, each reporting the previous 2-day period; a system notification shows the summary and the report file path.

License

MIT