Work Log · Gantt Calendar (dsh-worklog-calendar)

Introduction

When building agents in DeepSeek Harness (DSH), task and work-hour records are often scattered across chats, files, and scattered notes. Reviewing “how this stretch of work actually went” lacks both a timeline and a summary.

What follows is an introduction to dsh-worklog-calendar, a DSH plugin that places work tasks on a Gantt-chart calendar, logs what was done each day, and shows a floating reminder in the bottom-right corner when a task is due. It is maintained by yeloooooooooo, categorized under Workflow, and currently has 0 stars.

What It Is

This is a DSH plugin for scheduling work tasks on a Gantt-chart calendar, recording daily work logs, and displaying a floating reminder in the bottom-right corner when a task becomes due. The plugin is a single self-contained package with no build step and no third-party runtime dependencies; both the browser-side and host-side code are provided in the repository. Data is stored in a single JSON file under the plugin directory and travels with that directory when the plugin is uninstalled or migrated.

Core Features

The plugin offers three views in the main panel, all sharing the same shell so the page does not jump when switching tabs:

  • Calendar view: A check-in table showing each day’s task count, completion status, and note traces.
  • Gantt view: Horizontal bars represent time spans; drag to reschedule or resize duration.
  • Summary view: Aggregates hours, blocked time, span, and check-in counts by task and by project.

A floating reminder panel in the bottom-right corner supports three states—expanded, icon, and closed—for due-date alerts and daily digests. A work-log feature is also included: quick notes can be jotted in the floating panel or recorded per-day in the sidebar notes area (“what I did today”), optionally with a duration and associated task.

Installation & Activation

The plugin follows the DSH plugin-package convention. There are three installation methods:

Install from GitHub

On DSH’s Plugins page, click Add Plugin, and enter the repository URL in the Package Name or URL field:

https://github.com/yeloooooooooo/dsh-worklog-calendar

You can also use the pnpm shorthand github:yeloooooooooo/dsh-worklog-calendar. Once confirmed, the plugin manager handles downloading, installing, and enabling. This method requires local access to GitHub and an installed Git client.

Install from a Local Directory

Clone or download the repository to any directory, then enter the absolute path of that directory in Add Plugin. The path must be absolute; relative paths are rejected.

Install via CLI

If the dsh CLI is configured, run:

dsh plugin install https://github.com/yeloooooooooo/dsh-worklog-calendar

After installation, it is recommended to restart DSH to ensure the browser-side module loads the new version. After the restart, a Work Log entry appears in the left sidebar, and the floating reminder panel appears in the bottom-right corner.

Data File Location

By default, the plugin writes data to data/worklog.json under its own directory. This path is resolved by the host side based on the module’s own location—no configuration is needed, and it does not depend on the current working directory. To place data elsewhere, provide an absolute path for stateFile in the plugin’s config to override the default:

- insert:
    - id: worklog-calendar
      name: 'dsh-worklog-calendar'
      config:
        stateFile: '/path/to/worklog.json'

The data/ directory is already excluded via .gitignore, so personal tasks and records will not enter version control.

Quick Start

  1. Open Work Log in the left sidebar.
  2. Click any day on the calendar, or click + New Task in the top-right corner of the board.
  3. Enter a task name and select a start date. The end date defaults to no deadline; set one only if needed.
  4. Task status, priority, progress, reminders, and notes are tucked under More Settings—expand as needed and press Enter to create.

The floating reminder panel will prompt for desktop-notification permission the first time it appears. This authorization is provided by the browser; denying it does not affect in-panel reminders.

Key Capabilities

Calendar View

The calendar is a 6×7 monthly grid with Monday as the start of the week. It is a completion check-in table, not a task list. Each cell displays only three types of information:

  • ✓N badge: the number of tasks completed that day.
  • Symbols: completion marks and note marks, colored by task color.
  • Background tint: a light tint for weekdays, a slightly darker grey for weekends, a pale red for statutory holidays, and a pale yellow for makeup workdays.

Full task names and note text appear in the right sidebar, switching with the date selected on the calendar. Month navigation is controlled by left/right arrows plus year and month dropdowns, allowing direct jumps across years. Date arithmetic is based on UTC integer-day conversions, so no whole-day shift occurs across daylight-saving transitions.

Gantt View

Bar length represents a task’s start-to-end interval. Drag the entire bar to reschedule; drag the ends to resize duration. Bars for tasks with no end date fade to the right, indicating the work is ongoing. Bar color is derived from the project tag; depth varies with completion percentage while maintaining a minimum visible depth.

For tasks that have project phases defined, an additional segmented color band appears along the bottom edge of the bar. Segments are positioned according to the task bar’s own date range; portions extending beyond the bar are clipped. Phases are rendered as thin, semi-transparent bands in the same hue, using opacity to distinguish completed, current, and overdue. A task still occupies a single row.

Summary View

The summary view aggregates along two dimensions—task and project:

  • Hours: Accumulated only while the task is In Progress; time spent blocked or already completed is not counted.
  • Blocked: Total time spent in a blocked state.
  • Span: Calendar days from first start to completion (or to today).
  • Check-ins: Total number of days the task was checked in on.

Four cards at the top display cumulative hours, blocked/paused time, completed tasks, and today’s check-ins. Below is a bar chart showing the hours proportion broken down by project.

Floating Reminder Panel

The floating panel has three states:

  • Expanded: A bottom-right panel showing overview, overdue section, today section, recent work logs, quick-add task, and quick notes.
  • Icon: A draggable circular button displaying today’s pending count.
  • Closed: Completely hidden.

The panel’s position is stored in browser local storage. On every render, coordinates are re-clamped to the current viewport, so the panel will not end up outside the visible area after the window is resized or the page regains visibility.

Check-ins & Task Status

The checkbox next to a task in the floating panel means “I worked on this today” and is independent of the task’s own completion status:

  • A three-week task can be checked in for fifteen consecutive days while still in progress.
  • A check-in promotes the task from Pending to In Progress.
  • A task marked Blocked can still be checked in (to record that the blocker was addressed that day), but it does not count toward hours.

The check-in list is independent per day. After midnight, the previous day’s checks are cleared. In addition to a periodic timer, the implementation listens for page-visibility changes and window-focus events to cover the “page left open overnight” and “computer went to sleep” scenarios that bypass the timer. The client explicitly includes a day parameter in every request, using the date as seen by the browser.

Task Status

  • Starting is automatic: Once the start date arrives, the task automatically shows as In Progress.
  • Completion must be marked manually: The system never decides on behalf of the user that work is finished.
  • “Blocked” must also be marked manually: Time during a blocked period is excluded from hours.

Holidays & Workdays

Holiday data comes from the annual vacation notices published by the General Office of the State Council. holidays.json contains built-in data for 2025, 2026, and 2027 (including makeup workdays), with a link to the corresponding announcement for each year. The data is derived from the holiday-cn repository, which is a machine-readable mirror of those announcements.

The settings panel provides a Refresh Holiday Data action that pulls the current and following year’s data from the upstream source. On network failure, the existing data is retained and the plugin remains usable.

New tasks default to workdays only; this behavior can be disabled in settings:

  • When a new task has no date specified, it is placed on the nearest workday.
  • Weekends and statutory holidays are skipped automatically, but makeup workdays are scheduled normally.
  • Manually specified dates are always respected and never overridden.

Groups & Projects

A project indicates which long-running workflow a task belongs to; a group indicates how you want to segment the board. The two are independent. A task’s classification label is resolved in the order project → group → Ungrouped (first non-empty value), and the summary table uses the same rule when aggregating by project.

A group can be marked as Long-term Follow-up. Such groups are hidden from day-to-day views, but their data is fully retained:

  • Floating panel check-in list: shown.
  • Calendar completion log: counted.
  • Board in-progress and overdue cards: shown.
  • Gantt view: shown.
  • Summary table: counted.

Long-running tasks that have already been checked in still appear in the floating panel, because this is a factual record and should not be hidden by display rules.

Bulk Management

Task bars in the Calendar and Gantt views have a checkbox on the left. After selecting one or more, a bulk-action bar appears at the top, allowing batch mark-complete or reopen, shift by one day (later or earlier), set high priority, assign to a project, or delete. Bulk operations are all-or-nothing: if any task ID does not exist, the entire batch fails with an error—no partial mutations.

Task Colors

Colors are assigned fully automatically: the label is resolved in the order project → group → ungrouped; the same label always maps to the same color, and different labels are guaranteed different colors. Color assignment follows the order in which labels first appear, without using a hash (which could cause different names to collide to the same color). Calendar color dots, Gantt bars, and the summary table all share the same palette. Colors can also be manually overridden in the task editor.

Reminder Mechanism

The floating panel is the sole reminder timer, checking every 20 seconds, so it fires regardless of which page you are currently on:

  • Due condition: now >= remindAt - remindLead, and no earlier than 6 hours before the reminder time, to avoid replaying days-old reminders on cold start.
  • Deduplication is stored in localStorage, keyed by “task ID + reminder time”; changing the reminder time re-arms it.
  • System notifications require browser authorization; if unauthorized, in-panel notifications still appear.
  • The daily digest is sent only once per day after the configured time.

Tool for Agent Use

The plugin registers a model tool named worklog that reads and writes the same data as the UI, enabling the model to assist with scheduling, logging, and querying.

Supported actions include:

  • snapshot: Get the current tasks and records snapshot.
  • task.create: Create a task.
  • task.update: Update a task.
  • task.move: Move a task (by days).
  • task.delete: Delete a task.
  • task.bulk: Bulk operations (complete, reopen, delete, move, set).
  • record.create: Create a work record.
  • checkin.toggle: Toggle check-in status.
  • checkin.set: Set check-in status.
  • summary: Get summary information.
  • group: Create, rename, delete, reorder groups, or set group focus state.
  • phase: Create, update, delete project phases.
  • config: Set configuration items (digestAt, defaultLead, dayWidth, sortBy, workdaysOnly).
  • holidays.refresh: Refresh holiday data.

Conventions and boundaries:

  • start and end are inclusive calendar days in YYYY-MM-DD format. end: null means no deadline—always considered “due today” and never counted as overdue.
  • task.move’s delta is an integer number of days. For tasks with no end date, only the start date is moved.
  • Deleting a task does not delete its work records; records are retained and detached from the task.
  • Deleting a group only unbinds tasks; it does not delete them. Renaming a group carries its tasks along.
  • The returned digest is split into today, overdue, and upcoming groups; stats includes a 30-day record-intensity metric.

The browser side reads and writes via HTTP endpoints, sharing the same logic as the tool: GET /api/worklog-calendar?action=snapshot, POST /api/worklog-calendar. The JSON request body matches the tool parameters. The request body limit is 256 KB.

Data Structure

data/worklog.json is the single source of truth. Writes use an atomic “write to temp file then rename” strategy, executed serially. If the file is corrupted, it is automatically backed up as *.corrupt-<timestamp> and a fresh empty database is started.

The data structure contains fields for schema, tasks, records, groups, phases, config, holidays, etc. The tasks field includes attributes such as id, title, project, group, start, end, status, priority, progress, milestone, remindAt. Both group and project can be null; when absent, the display label is Ungrouped.

Compatibility & Dependencies

The plugin is a single self-contained package with no build step and no third-party runtime dependencies. Both the browser-side and host-side code are provided in the repository. After installation, it is recommended to restart DSH to ensure the browser-side module loads the new version.

Known Limitations

  • The floating panel is the sole reminder timer, checking every 20 seconds.
  • System notifications require browser authorization; if unauthorized, in-panel notifications still appear.
  • The daily digest is sent only once per day after the configured time.
  • The floating panel’s position is stored in browser local storage, and coordinates are re-clamped to the current viewport on every render.

Use Cases & Caveats

This plugin is suitable for developers and agent authors who need to manage task timelines and daily logs uniformly within DSH. Before use, it is recommended to review the source code and license to confirm compatibility with your own workflow and permission model. The plugin runs with the current dsh process privileges; inspect the source code and license before installing.

In Short

Overall, dsh-worklog-calendar centralizes task timelines and daily records in a single data source through its calendar, Gantt, and summary views, and closes the loop with the floating panel and the Agent tool. For more information, visit the directory page and the GitHub repository:
- https://www.skillhub.cn/plugins/yeloooooooooo/dsh-worklog-calendar
- https://github.com/yeloooooooooo/dsh-worklog-calendar

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye