personal-work-dashboard 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. personal_work_dashboard-1.0.1/LICENSE +21 -0
  2. personal_work_dashboard-1.0.1/PKG-INFO +184 -0
  3. personal_work_dashboard-1.0.1/README.md +156 -0
  4. personal_work_dashboard-1.0.1/pyproject.toml +47 -0
  5. personal_work_dashboard-1.0.1/setup.cfg +4 -0
  6. personal_work_dashboard-1.0.1/src/personal_tracker/__init__.py +6 -0
  7. personal_work_dashboard-1.0.1/src/personal_tracker/__main__.py +10 -0
  8. personal_work_dashboard-1.0.1/src/personal_tracker/agent_setup.py +555 -0
  9. personal_work_dashboard-1.0.1/src/personal_tracker/build.py +77 -0
  10. personal_work_dashboard-1.0.1/src/personal_tracker/cli.py +242 -0
  11. personal_work_dashboard-1.0.1/src/personal_tracker/config.py +47 -0
  12. personal_work_dashboard-1.0.1/src/personal_tracker/data/inks.json +14 -0
  13. personal_work_dashboard-1.0.1/src/personal_tracker/errors.py +6 -0
  14. personal_work_dashboard-1.0.1/src/personal_tracker/files.py +82 -0
  15. personal_work_dashboard-1.0.1/src/personal_tracker/inks.py +65 -0
  16. personal_work_dashboard-1.0.1/src/personal_tracker/links.py +138 -0
  17. personal_work_dashboard-1.0.1/src/personal_tracker/locate.py +54 -0
  18. personal_work_dashboard-1.0.1/src/personal_tracker/mcp_server.py +214 -0
  19. personal_work_dashboard-1.0.1/src/personal_tracker/paths.py +12 -0
  20. personal_work_dashboard-1.0.1/src/personal_tracker/procs.py +50 -0
  21. personal_work_dashboard-1.0.1/src/personal_tracker/scan.py +182 -0
  22. personal_work_dashboard-1.0.1/src/personal_tracker/schedule.py +119 -0
  23. personal_work_dashboard-1.0.1/src/personal_tracker/server.py +293 -0
  24. personal_work_dashboard-1.0.1/src/personal_tracker/setup.py +126 -0
  25. personal_work_dashboard-1.0.1/src/personal_tracker/summarise.py +268 -0
  26. personal_work_dashboard-1.0.1/src/personal_tracker/templates/dashboard.html +843 -0
  27. personal_work_dashboard-1.0.1/src/personal_tracker/templates/rules-cli.md +10 -0
  28. personal_work_dashboard-1.0.1/src/personal_tracker/templates/rules-mcp.md +9 -0
  29. personal_work_dashboard-1.0.1/src/personal_tracker/todo.py +226 -0
  30. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/PKG-INFO +184 -0
  31. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/SOURCES.txt +57 -0
  32. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/dependency_links.txt +1 -0
  33. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/entry_points.txt +2 -0
  34. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/requires.txt +6 -0
  35. personal_work_dashboard-1.0.1/src/personal_work_dashboard.egg-info/top_level.txt +1 -0
  36. personal_work_dashboard-1.0.1/tests/test_agent_setup.py +151 -0
  37. personal_work_dashboard-1.0.1/tests/test_agent_setup_files.py +151 -0
  38. personal_work_dashboard-1.0.1/tests/test_agent_setup_review.py +141 -0
  39. personal_work_dashboard-1.0.1/tests/test_agent_setup_summaries.py +137 -0
  40. personal_work_dashboard-1.0.1/tests/test_branch_recording.py +90 -0
  41. personal_work_dashboard-1.0.1/tests/test_branches.py +99 -0
  42. personal_work_dashboard-1.0.1/tests/test_build.py +113 -0
  43. personal_work_dashboard-1.0.1/tests/test_cli.py +86 -0
  44. personal_work_dashboard-1.0.1/tests/test_corrections.py +115 -0
  45. personal_work_dashboard-1.0.1/tests/test_files.py +76 -0
  46. personal_work_dashboard-1.0.1/tests/test_inks.py +42 -0
  47. personal_work_dashboard-1.0.1/tests/test_links.py +173 -0
  48. personal_work_dashboard-1.0.1/tests/test_locate.py +49 -0
  49. personal_work_dashboard-1.0.1/tests/test_mcp_server.py +134 -0
  50. personal_work_dashboard-1.0.1/tests/test_paths.py +17 -0
  51. personal_work_dashboard-1.0.1/tests/test_procs.py +6 -0
  52. personal_work_dashboard-1.0.1/tests/test_repo_hygiene.py +13 -0
  53. personal_work_dashboard-1.0.1/tests/test_review_fixes.py +95 -0
  54. personal_work_dashboard-1.0.1/tests/test_scan.py +40 -0
  55. personal_work_dashboard-1.0.1/tests/test_schedule.py +129 -0
  56. personal_work_dashboard-1.0.1/tests/test_server.py +290 -0
  57. personal_work_dashboard-1.0.1/tests/test_setup.py +209 -0
  58. personal_work_dashboard-1.0.1/tests/test_summarise.py +299 -0
  59. personal_work_dashboard-1.0.1/tests/test_todo.py +82 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aditya Nair
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.4
2
+ Name: personal-work-dashboard
3
+ Version: 1.0.1
4
+ Summary: A local day / week / month view of your own git commits, plus a current-tasks board your AI agent keeps in sync.
5
+ Author: Aditya Nair
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/TreeOck/personal-work-dashboard
8
+ Project-URL: Documentation, https://github.com/TreeOck/personal-work-dashboard/tree/main/docs
9
+ Project-URL: Changelog, https://github.com/TreeOck/personal-work-dashboard/blob/main/CHANGELOG.md
10
+ Project-URL: Issues, https://github.com/TreeOck/personal-work-dashboard/issues
11
+ Keywords: git,commits,dashboard,time tracking,mcp,ai agents
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Version Control :: Git
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: tzdata; sys_platform == "win32"
25
+ Provides-Extra: test
26
+ Requires-Dist: pytest; extra == "test"
27
+ Dynamic: license-file
28
+
29
+ # Personal Work Dashboard
30
+
31
+ A local day / week / month view of your own git commits across every repo in a folder. Commits are grouped into tasks with short written summaries, and there is a "Current" board for work in progress that you can edit from the page.
32
+
33
+ - The dashboard is one self-contained HTML file in your data folder. It works offline; opening it through `tracker` also lets you edit tasks.
34
+ - Summaries for new commits come from a command you choose (Claude Code's `claude -p` by default, with no tools enabled). Its JSON output is validated before it's saved, and with no summariser configured the commits just stay "unsummarised".
35
+ - Everything stays on your machine.
36
+ - Runs on macOS and Windows (CI also runs the tests on Linux). Python 3.11 or newer.
37
+
38
+ ## Install
39
+
40
+ You need Python 3.11+ and git. [pipx](https://pipx.pypa.io) keeps the tool in its own environment and puts `tracker` on your PATH.
41
+
42
+ **macOS**
43
+ ```bash
44
+ brew install pipx && pipx ensurepath
45
+ pipx install personal-work-dashboard
46
+ ```
47
+
48
+ **Windows** (PowerShell; install Python from python.org with "Add python.exe to PATH" ticked, and [Git for Windows](https://git-scm.com/download/win))
49
+ ```powershell
50
+ py -m pip install --user pipx
51
+ py -m pipx ensurepath # then open a new terminal
52
+ pipx install personal-work-dashboard
53
+ ```
54
+
55
+ **Linux**: `pipx install personal-work-dashboard`, then use `cron` for the daily refresh (below).
56
+
57
+ The latest unreleased code: `pipx install git+https://github.com/TreeOck/personal-work-dashboard`. For development: `git clone` the repo and `pipx install --editable .` (or `pip install -e ".[test]"` in a virtualenv).
58
+
59
+ ## First run
60
+
61
+ ```bash
62
+ tracker init # asks for the folder holding your repos and the email(s) you commit as
63
+ tracker scan --days 30 # first scan: choose how far back to go
64
+ tracker # opens the dashboard
65
+ tracker schedule on # optional: refresh every day at 17:00 (--at HH:MM to change)
66
+ ```
67
+
68
+ `tracker init` can also take everything as flags (`--root`, `--email` (repeatable), `--timezone`, `--summariser "<command>"` or `--no-summariser`), and refuses to overwrite an existing config without `--force`.
69
+
70
+ Daily refresh: `tracker schedule on|off|status` uses launchd on macOS (it runs on wake if the Mac was asleep, and can reach the Keychain where Claude Code keeps its login, which cron cannot) and Task Scheduler on Windows. On Linux it prints a crontab line to add with `crontab -e`.
71
+
72
+ Coming from the old script layout (`todo.py`, `refresh.sh`, data next to the code)? Run `tracker migrate`; see `docs/operations/install.md`.
73
+
74
+ ## Using it
75
+
76
+ ```bash
77
+ tracker # open the dashboard (editable: see below)
78
+ tracker refresh # rescan git, summarise, rebuild, open (--quiet: no output, no browser)
79
+ tracker add "Title" -p myproject -r my-repo [--plan path] # prints an id, e.g. t-0007
80
+ tracker add "Title" --path ~/code/myproject/my-repo # project and repo worked out from the folder
81
+ tracker start t-0007 | tracker done t-0007 | tracker drop t-0007
82
+ tracker pause t-0007 "waiting on review" # reason optional; `tracker start t-0007` resumes
83
+ tracker branch t-0007 feat/x | --none | --auto # correct which branch a task's commits come from
84
+ tracker move 1d8bb86 t-0007 [t-0008] | --none | --auto # correct which task(s) a commit belongs to
85
+ tracker note t-0007 "tests passing"
86
+ tracker todo [--all]
87
+ tracker --version
88
+ ```
89
+
90
+ Other commands: `scan [--days N] [--since DATE]`, `summarise [--backfill-threads]`, `build`, `serve` (edit server in the foreground), `desk`, `inks`, `init`, `migrate`, `schedule`.
91
+
92
+ - **Views:** Current (board), Day (one day), Week and Month. Use ◀ ▶ (or `←` `→`) to move between periods; the Day view skips days with no commits. The numbers cover the period on screen, show the change against the previous period, and follow the project filter and search.
93
+ - **Threads:** related tasks across days are grouped into threads (e.g. "Billing: invoice export"). The Week and Month views list threads, and the Month view adds the top 5 as Highlights. Threads are assigned automatically by the summariser.
94
+ - **To-do ↔ commits:** a to-do task is linked to the commits in its repo (or whole project if no repo) made between `tracker start` and `tracker done` **on its branch**. The scanner remembers which branch each commit was made on (from git's reflogs, even after the branch is merged and deleted), a task records the branch checked out when it is started (`tracker start <id> --path <folder>` for a worktree), and when two tasks overlap in one repo each gets its own branch's commits. Commits of unknown branch fall back to the dates. If it gets one wrong, fix it in the task's details panel: pick its branch, or "Move…" a commit to other task(s) (`tracker branch`, `tracker move` on the command line). `tracker done` rescans git first, so recent commits count.
95
+ - **Copy standup / Copy report:** standup text (Yesterday / Today / Blockers) or a Markdown report of the period on screen.
96
+ - **Current board:** In progress and To do at the top, then a Paused shelf (each card shows why it was paused), then finished tasks as one-line rows grouped by day (today and yesterday open, older days folded).
97
+ - **Pausing:** for work put aside after it started. A paused task stays on the board and in `tracker todo`, isn't listed in standup "Today", and commits made while it's paused aren't linked to it.
98
+ - **Editing from the page:** `tracker` opens the dashboard through a small local server (127.0.0.1 only), so you can type a new task in the box at the top of Current (`n` focuses it) and, in a task's details panel, start / pause (with a reason) / resume / mark done / drop / reopen it or add a note. Every change runs the `tracker` command, exactly like the CLI. Opened as a plain file, the page is read-only. Details: `docs/api/edit-server.md`.
99
+ - **Details panel:** click any card or row, on any view, to open a side panel with all of its notes, start/finish times, the plan, every commit and (for summarised tasks) the other tasks in its thread. `Esc` closes it.
100
+ - **Month heatmap:** hover over a day to see its tasks, then click to open it in the Day view (on touch screens, tap once to preview and again to open).
101
+ - **Keys:** `c` `d` `w` `m` switch views, `←` `→` change period, `/` search, `n` new task (when editable), `Esc` close / clear. Search matches task ids too: typing `t-0027` shows that card (from any view), and while searching the Done log covers every finished task, not just the last 7 days.
102
+ - A *project* is a top-level folder under `root`, and a *repo* is a git repo inside it, up to 3 levels deep.
103
+
104
+ ## Use it from your AI agent
105
+
106
+ One command connects an AI coding tool so it keeps the Current board in sync on its own (adds a task when work starts, notes milestones, pauses, marks it done):
107
+
108
+ ```
109
+ tracker setup claude-code # rules in ~/.claude/CLAUDE.md, `tracker` allowed without prompts
110
+ tracker setup cursor # MCP server in ~/.cursor/mcp.json; prints rules to paste into Customize → Rules
111
+ tracker setup antigravity # MCP server, rules in ~/.gemini/AGENTS.md, tools allowed without prompts (quit Antigravity first)
112
+ tracker setup # what's set up; add --remove to undo
113
+ ```
114
+
115
+ Setup also asks whether that tool should write your daily summaries (it uses your account's quota). Everything it changes is backed up and undone by `--remove`. Details, and what to expect per tool: [docs/operations/agent-setup.md](https://github.com/TreeOck/personal-work-dashboard/blob/main/docs/operations/agent-setup.md). Other agents can run `tracker mcp` ([docs/api/mcp.md](https://github.com/TreeOck/personal-work-dashboard/blob/main/docs/api/mcp.md)) or follow the rule text in `docs/operations/install.md`.
116
+
117
+ ## 3D desk (optional showpiece)
118
+
119
+ A photoreal desk view of the same data, built with three.js, where everything behaves like the real thing: in-progress tasks as clipped stacks of index cards on a leather mat, to-dos as sticky-note pads, this week's finished work as a stack in the done tray, one pen per project in its own ink, today's calendar, and a daily tally pad.
120
+
121
+ **Using it:** hover to see what things are; click a task, sticky note, the calendar or the notepad to bring it up close.
122
+ Clicking a task picks it up to read: the clip comes off and is left on the mat. `Space` or a click on the right half thumbs the top card under the stack (a click on the left half goes back, as does `Shift`+`Space`, bringing the bottom card back up), and one more `Space` after the last card restores the order. A sticky pad is picked up the same way, and its notes flip up over the glued edge. The tally pad stays on the desk and its pages flip over the binding. The calendar (`5`) shows today; `Space` flips back through the past week over its wire coil, `Shift`+`Space` comes forward, and clicking a page opens the Day binder at that date. The done tray (`3`) holds a typed sheet for each task finished this week, newest on top: lift it out and read it like the cards. Click a binder to read it: it slides out of the stack and opens at today, this week or this month; `←` `→` go between periods, `Space` turns single leaves, `Home` comes back to now, and it goes back on top of the stack. `←` `→` go to the neighbouring task; `Esc`, right-click or clicking the empty desk puts things back.
123
+
124
+ Performance: page textures are sized to your screen and loaded before anything moves; while something moves, big screens render at a lower internal resolution (back to full the moment it stops). Open `desk.html?bench` to measure: after about 15 seconds the tab title shows frame and texture timings, which is how Safari was profiled.
125
+ The notepad is a daily tally pad: today on top; `Space` flips back through the last 14 days.
126
+ Keys: `1` tasks · `2` sticky notes · `5` calendar · `6` notepad · `0` overview. More than 6 tasks (or 8 sticky notes) pile up; click the pile to fan it out. Respects "Reduce motion".
127
+
128
+ ```bash
129
+ cd desk && npm install && npm run assets && npm run build # once, and after desk code changes
130
+ tracker desk # open it (tracker desk refresh: rescan git first)
131
+ ```
132
+
133
+ `npm run build` writes `desk-template.html` into your data folder, and `tracker build` (run by every task change and by the daily refresh) writes `desk.html` next to `dashboard.html` whenever that template exists.
134
+ Project inks: `tracker inks list` / `tracker inks set <project> <ink-id>` (palette in `src/personal_tracker/data/inks.json`).
135
+ Assets are CC0 from Poly Haven, pinned with checksums in `desk/assets.lock.json`; fonts are Caveat (OFL) and Special Elite (Apache 2.0).
136
+ Desk tests: `cd desk && npx vitest run`. The desk isn't part of the pip/pipx install; it needs a clone of the repo and Node.
137
+
138
+ ## Settings and data
139
+
140
+ Everything lives in one folder: `$TRACKER_HOME`, else `~/.personal-tracker` (`%USERPROFILE%\.personal-tracker` on Windows).
141
+
142
+ | File | What |
143
+ |---|---|
144
+ | `config.json` | Your settings (below) |
145
+ | `todo.json` | Current tasks (fields in `docs/schema/todo-json.md`) |
146
+ | `tasks.json` | Summarised work, plain JSON: edit by hand, then `tracker build` |
147
+ | `commits.json` | Scanned commits; older history is kept |
148
+ | `inks.json` | Project → ink for the desk |
149
+ | `dashboard.html`, `desk.html` | Built pages |
150
+ | `server.json`, `*.log`, `*.lock` | Runtime files |
151
+
152
+ `config.json`:
153
+
154
+ ```json
155
+ {"root": "~/code", "author_emails": ["you@example.com"], "timezone": "Europe/London",
156
+ "summariser": ["claude", "-p", "--model", "sonnet", "--tools", "", "--no-session-persistence"]}
157
+ ```
158
+
159
+ - `root`: the folder with your repos. A *project* is a top-level folder under it, and a *repo* is a git repo inside it, up to 3 levels deep.
160
+ - `author_emails`: every email you commit as.
161
+ - `timezone`: IANA name used for day boundaries. Leave it out (or `null`) to use this computer's timezone.
162
+ - `summariser`: the command and its arguments. It receives the prompt on stdin and must print JSON (UTF-8). `null` turns summaries off.
163
+
164
+ ## How it works
165
+
166
+ | Module (`src/personal_tracker/`) | Role |
167
+ |---|---|
168
+ | `cli.py` | The `tracker` command |
169
+ | `scan.py` | Reads commits by your emails on local and remote branches (14-day lookback by default) and merges them into `commits.json`. |
170
+ | `summarise.py` | Sends commits that no task covers yet to your summariser and asks for JSON. It checks that every commit appears exactly once, with the right date and project, then appends to `tasks.json`. On failure nothing is written, and the commits show as "unsummarised". `--backfill-threads` gives a thread to any task without one. |
171
+ | `links.py` | Works out which commits belong to each to-do task (computed on every build). |
172
+ | `todo.py` | The current-tasks list. Each change takes a file lock, writes atomically and rebuilds the page. |
173
+ | `server.py` | Local edit server: serves the dashboard with a per-run token and turns its edits into `tracker` calls (`docs/api/edit-server.md`). |
174
+ | `build.py` | Inlines the JSON into `templates/dashboard.html` and writes `dashboard.html` (and `desk.html`). Builds are serialised so the page is never stale. |
175
+ | `files.py`, `paths.py` | UTF-8 JSON with atomic replace, one lock for every OS, the data folder. |
176
+ | `setup.py`, `schedule.py` | `init` / `migrate`, and the daily refresh. |
177
+
178
+ More: `docs/architecture/layout.md`.
179
+
180
+ Tests: `pip install -e ".[test]"` then `python -m pytest tests`. CI runs them on Windows, macOS and Linux (`.github/workflows/test.yml`).
181
+
182
+ ## Licence
183
+
184
+ MIT, see `LICENSE`.
@@ -0,0 +1,156 @@
1
+ # Personal Work Dashboard
2
+
3
+ A local day / week / month view of your own git commits across every repo in a folder. Commits are grouped into tasks with short written summaries, and there is a "Current" board for work in progress that you can edit from the page.
4
+
5
+ - The dashboard is one self-contained HTML file in your data folder. It works offline; opening it through `tracker` also lets you edit tasks.
6
+ - Summaries for new commits come from a command you choose (Claude Code's `claude -p` by default, with no tools enabled). Its JSON output is validated before it's saved, and with no summariser configured the commits just stay "unsummarised".
7
+ - Everything stays on your machine.
8
+ - Runs on macOS and Windows (CI also runs the tests on Linux). Python 3.11 or newer.
9
+
10
+ ## Install
11
+
12
+ You need Python 3.11+ and git. [pipx](https://pipx.pypa.io) keeps the tool in its own environment and puts `tracker` on your PATH.
13
+
14
+ **macOS**
15
+ ```bash
16
+ brew install pipx && pipx ensurepath
17
+ pipx install personal-work-dashboard
18
+ ```
19
+
20
+ **Windows** (PowerShell; install Python from python.org with "Add python.exe to PATH" ticked, and [Git for Windows](https://git-scm.com/download/win))
21
+ ```powershell
22
+ py -m pip install --user pipx
23
+ py -m pipx ensurepath # then open a new terminal
24
+ pipx install personal-work-dashboard
25
+ ```
26
+
27
+ **Linux**: `pipx install personal-work-dashboard`, then use `cron` for the daily refresh (below).
28
+
29
+ The latest unreleased code: `pipx install git+https://github.com/TreeOck/personal-work-dashboard`. For development: `git clone` the repo and `pipx install --editable .` (or `pip install -e ".[test]"` in a virtualenv).
30
+
31
+ ## First run
32
+
33
+ ```bash
34
+ tracker init # asks for the folder holding your repos and the email(s) you commit as
35
+ tracker scan --days 30 # first scan: choose how far back to go
36
+ tracker # opens the dashboard
37
+ tracker schedule on # optional: refresh every day at 17:00 (--at HH:MM to change)
38
+ ```
39
+
40
+ `tracker init` can also take everything as flags (`--root`, `--email` (repeatable), `--timezone`, `--summariser "<command>"` or `--no-summariser`), and refuses to overwrite an existing config without `--force`.
41
+
42
+ Daily refresh: `tracker schedule on|off|status` uses launchd on macOS (it runs on wake if the Mac was asleep, and can reach the Keychain where Claude Code keeps its login, which cron cannot) and Task Scheduler on Windows. On Linux it prints a crontab line to add with `crontab -e`.
43
+
44
+ Coming from the old script layout (`todo.py`, `refresh.sh`, data next to the code)? Run `tracker migrate`; see `docs/operations/install.md`.
45
+
46
+ ## Using it
47
+
48
+ ```bash
49
+ tracker # open the dashboard (editable: see below)
50
+ tracker refresh # rescan git, summarise, rebuild, open (--quiet: no output, no browser)
51
+ tracker add "Title" -p myproject -r my-repo [--plan path] # prints an id, e.g. t-0007
52
+ tracker add "Title" --path ~/code/myproject/my-repo # project and repo worked out from the folder
53
+ tracker start t-0007 | tracker done t-0007 | tracker drop t-0007
54
+ tracker pause t-0007 "waiting on review" # reason optional; `tracker start t-0007` resumes
55
+ tracker branch t-0007 feat/x | --none | --auto # correct which branch a task's commits come from
56
+ tracker move 1d8bb86 t-0007 [t-0008] | --none | --auto # correct which task(s) a commit belongs to
57
+ tracker note t-0007 "tests passing"
58
+ tracker todo [--all]
59
+ tracker --version
60
+ ```
61
+
62
+ Other commands: `scan [--days N] [--since DATE]`, `summarise [--backfill-threads]`, `build`, `serve` (edit server in the foreground), `desk`, `inks`, `init`, `migrate`, `schedule`.
63
+
64
+ - **Views:** Current (board), Day (one day), Week and Month. Use ◀ ▶ (or `←` `→`) to move between periods; the Day view skips days with no commits. The numbers cover the period on screen, show the change against the previous period, and follow the project filter and search.
65
+ - **Threads:** related tasks across days are grouped into threads (e.g. "Billing: invoice export"). The Week and Month views list threads, and the Month view adds the top 5 as Highlights. Threads are assigned automatically by the summariser.
66
+ - **To-do ↔ commits:** a to-do task is linked to the commits in its repo (or whole project if no repo) made between `tracker start` and `tracker done` **on its branch**. The scanner remembers which branch each commit was made on (from git's reflogs, even after the branch is merged and deleted), a task records the branch checked out when it is started (`tracker start <id> --path <folder>` for a worktree), and when two tasks overlap in one repo each gets its own branch's commits. Commits of unknown branch fall back to the dates. If it gets one wrong, fix it in the task's details panel: pick its branch, or "Move…" a commit to other task(s) (`tracker branch`, `tracker move` on the command line). `tracker done` rescans git first, so recent commits count.
67
+ - **Copy standup / Copy report:** standup text (Yesterday / Today / Blockers) or a Markdown report of the period on screen.
68
+ - **Current board:** In progress and To do at the top, then a Paused shelf (each card shows why it was paused), then finished tasks as one-line rows grouped by day (today and yesterday open, older days folded).
69
+ - **Pausing:** for work put aside after it started. A paused task stays on the board and in `tracker todo`, isn't listed in standup "Today", and commits made while it's paused aren't linked to it.
70
+ - **Editing from the page:** `tracker` opens the dashboard through a small local server (127.0.0.1 only), so you can type a new task in the box at the top of Current (`n` focuses it) and, in a task's details panel, start / pause (with a reason) / resume / mark done / drop / reopen it or add a note. Every change runs the `tracker` command, exactly like the CLI. Opened as a plain file, the page is read-only. Details: `docs/api/edit-server.md`.
71
+ - **Details panel:** click any card or row, on any view, to open a side panel with all of its notes, start/finish times, the plan, every commit and (for summarised tasks) the other tasks in its thread. `Esc` closes it.
72
+ - **Month heatmap:** hover over a day to see its tasks, then click to open it in the Day view (on touch screens, tap once to preview and again to open).
73
+ - **Keys:** `c` `d` `w` `m` switch views, `←` `→` change period, `/` search, `n` new task (when editable), `Esc` close / clear. Search matches task ids too: typing `t-0027` shows that card (from any view), and while searching the Done log covers every finished task, not just the last 7 days.
74
+ - A *project* is a top-level folder under `root`, and a *repo* is a git repo inside it, up to 3 levels deep.
75
+
76
+ ## Use it from your AI agent
77
+
78
+ One command connects an AI coding tool so it keeps the Current board in sync on its own (adds a task when work starts, notes milestones, pauses, marks it done):
79
+
80
+ ```
81
+ tracker setup claude-code # rules in ~/.claude/CLAUDE.md, `tracker` allowed without prompts
82
+ tracker setup cursor # MCP server in ~/.cursor/mcp.json; prints rules to paste into Customize → Rules
83
+ tracker setup antigravity # MCP server, rules in ~/.gemini/AGENTS.md, tools allowed without prompts (quit Antigravity first)
84
+ tracker setup # what's set up; add --remove to undo
85
+ ```
86
+
87
+ Setup also asks whether that tool should write your daily summaries (it uses your account's quota). Everything it changes is backed up and undone by `--remove`. Details, and what to expect per tool: [docs/operations/agent-setup.md](https://github.com/TreeOck/personal-work-dashboard/blob/main/docs/operations/agent-setup.md). Other agents can run `tracker mcp` ([docs/api/mcp.md](https://github.com/TreeOck/personal-work-dashboard/blob/main/docs/api/mcp.md)) or follow the rule text in `docs/operations/install.md`.
88
+
89
+ ## 3D desk (optional showpiece)
90
+
91
+ A photoreal desk view of the same data, built with three.js, where everything behaves like the real thing: in-progress tasks as clipped stacks of index cards on a leather mat, to-dos as sticky-note pads, this week's finished work as a stack in the done tray, one pen per project in its own ink, today's calendar, and a daily tally pad.
92
+
93
+ **Using it:** hover to see what things are; click a task, sticky note, the calendar or the notepad to bring it up close.
94
+ Clicking a task picks it up to read: the clip comes off and is left on the mat. `Space` or a click on the right half thumbs the top card under the stack (a click on the left half goes back, as does `Shift`+`Space`, bringing the bottom card back up), and one more `Space` after the last card restores the order. A sticky pad is picked up the same way, and its notes flip up over the glued edge. The tally pad stays on the desk and its pages flip over the binding. The calendar (`5`) shows today; `Space` flips back through the past week over its wire coil, `Shift`+`Space` comes forward, and clicking a page opens the Day binder at that date. The done tray (`3`) holds a typed sheet for each task finished this week, newest on top: lift it out and read it like the cards. Click a binder to read it: it slides out of the stack and opens at today, this week or this month; `←` `→` go between periods, `Space` turns single leaves, `Home` comes back to now, and it goes back on top of the stack. `←` `→` go to the neighbouring task; `Esc`, right-click or clicking the empty desk puts things back.
95
+
96
+ Performance: page textures are sized to your screen and loaded before anything moves; while something moves, big screens render at a lower internal resolution (back to full the moment it stops). Open `desk.html?bench` to measure: after about 15 seconds the tab title shows frame and texture timings, which is how Safari was profiled.
97
+ The notepad is a daily tally pad: today on top; `Space` flips back through the last 14 days.
98
+ Keys: `1` tasks · `2` sticky notes · `5` calendar · `6` notepad · `0` overview. More than 6 tasks (or 8 sticky notes) pile up; click the pile to fan it out. Respects "Reduce motion".
99
+
100
+ ```bash
101
+ cd desk && npm install && npm run assets && npm run build # once, and after desk code changes
102
+ tracker desk # open it (tracker desk refresh: rescan git first)
103
+ ```
104
+
105
+ `npm run build` writes `desk-template.html` into your data folder, and `tracker build` (run by every task change and by the daily refresh) writes `desk.html` next to `dashboard.html` whenever that template exists.
106
+ Project inks: `tracker inks list` / `tracker inks set <project> <ink-id>` (palette in `src/personal_tracker/data/inks.json`).
107
+ Assets are CC0 from Poly Haven, pinned with checksums in `desk/assets.lock.json`; fonts are Caveat (OFL) and Special Elite (Apache 2.0).
108
+ Desk tests: `cd desk && npx vitest run`. The desk isn't part of the pip/pipx install; it needs a clone of the repo and Node.
109
+
110
+ ## Settings and data
111
+
112
+ Everything lives in one folder: `$TRACKER_HOME`, else `~/.personal-tracker` (`%USERPROFILE%\.personal-tracker` on Windows).
113
+
114
+ | File | What |
115
+ |---|---|
116
+ | `config.json` | Your settings (below) |
117
+ | `todo.json` | Current tasks (fields in `docs/schema/todo-json.md`) |
118
+ | `tasks.json` | Summarised work, plain JSON: edit by hand, then `tracker build` |
119
+ | `commits.json` | Scanned commits; older history is kept |
120
+ | `inks.json` | Project → ink for the desk |
121
+ | `dashboard.html`, `desk.html` | Built pages |
122
+ | `server.json`, `*.log`, `*.lock` | Runtime files |
123
+
124
+ `config.json`:
125
+
126
+ ```json
127
+ {"root": "~/code", "author_emails": ["you@example.com"], "timezone": "Europe/London",
128
+ "summariser": ["claude", "-p", "--model", "sonnet", "--tools", "", "--no-session-persistence"]}
129
+ ```
130
+
131
+ - `root`: the folder with your repos. A *project* is a top-level folder under it, and a *repo* is a git repo inside it, up to 3 levels deep.
132
+ - `author_emails`: every email you commit as.
133
+ - `timezone`: IANA name used for day boundaries. Leave it out (or `null`) to use this computer's timezone.
134
+ - `summariser`: the command and its arguments. It receives the prompt on stdin and must print JSON (UTF-8). `null` turns summaries off.
135
+
136
+ ## How it works
137
+
138
+ | Module (`src/personal_tracker/`) | Role |
139
+ |---|---|
140
+ | `cli.py` | The `tracker` command |
141
+ | `scan.py` | Reads commits by your emails on local and remote branches (14-day lookback by default) and merges them into `commits.json`. |
142
+ | `summarise.py` | Sends commits that no task covers yet to your summariser and asks for JSON. It checks that every commit appears exactly once, with the right date and project, then appends to `tasks.json`. On failure nothing is written, and the commits show as "unsummarised". `--backfill-threads` gives a thread to any task without one. |
143
+ | `links.py` | Works out which commits belong to each to-do task (computed on every build). |
144
+ | `todo.py` | The current-tasks list. Each change takes a file lock, writes atomically and rebuilds the page. |
145
+ | `server.py` | Local edit server: serves the dashboard with a per-run token and turns its edits into `tracker` calls (`docs/api/edit-server.md`). |
146
+ | `build.py` | Inlines the JSON into `templates/dashboard.html` and writes `dashboard.html` (and `desk.html`). Builds are serialised so the page is never stale. |
147
+ | `files.py`, `paths.py` | UTF-8 JSON with atomic replace, one lock for every OS, the data folder. |
148
+ | `setup.py`, `schedule.py` | `init` / `migrate`, and the daily refresh. |
149
+
150
+ More: `docs/architecture/layout.md`.
151
+
152
+ Tests: `pip install -e ".[test]"` then `python -m pytest tests`. CI runs them on Windows, macOS and Linux (`.github/workflows/test.yml`).
153
+
154
+ ## Licence
155
+
156
+ MIT, see `LICENSE`.
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "personal-work-dashboard"
7
+ version = "1.0.1"
8
+ description = "A local day / week / month view of your own git commits, plus a current-tasks board your AI agent keeps in sync."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{name = "Aditya Nair"}]
14
+ keywords = ["git", "commits", "dashboard", "time tracking", "mcp", "ai agents"]
15
+ classifiers = [
16
+ "Development Status :: 5 - Production/Stable",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Topic :: Software Development :: Version Control :: Git",
25
+ ]
26
+ dependencies = ["tzdata; sys_platform == 'win32'"]
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/TreeOck/personal-work-dashboard"
30
+ Documentation = "https://github.com/TreeOck/personal-work-dashboard/tree/main/docs"
31
+ Changelog = "https://github.com/TreeOck/personal-work-dashboard/blob/main/CHANGELOG.md"
32
+ Issues = "https://github.com/TreeOck/personal-work-dashboard/issues"
33
+
34
+ [project.optional-dependencies]
35
+ test = ["pytest"]
36
+
37
+ [project.scripts]
38
+ tracker = "personal_tracker.cli:main"
39
+
40
+ [tool.setuptools.packages.find]
41
+ where = ["src"]
42
+
43
+ [tool.setuptools.package-data]
44
+ personal_tracker = ["templates/*.html", "templates/*.md", "data/*.json"]
45
+
46
+ [tool.pytest.ini_options]
47
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ from importlib.metadata import PackageNotFoundError, version
2
+
3
+ try:
4
+ __version__ = version("personal-work-dashboard")
5
+ except PackageNotFoundError: # running from a source tree that was never installed
6
+ __version__ = "0+unknown"
@@ -0,0 +1,10 @@
1
+ import sys
2
+
3
+
4
+ def _run() -> int:
5
+ from .cli import main # imported late so `python -m personal_tracker` fails readably until cli exists
6
+ return main()
7
+
8
+
9
+ if __name__ == "__main__":
10
+ sys.exit(_run())