Repository navigation
Releases
games 0.3.0: Tetris, Breakout, Dino Run and Pong
Tetris, Breakout, Dino Run and Pong. (#16)
- Tetris: SRS rotation with wall kicks, a 7-bag, hold, a ghost piece and the guideline's gravity; half-height blocks in a terminal's short pane.
- Breakout: five brick layouts that come round faster, three lives, the paddle under the mouse.
- Dino Run: jump the cacti, duck the birds, night every 700.
- Pong: first to 7 against a bot on Easy, Normal or Hard, the paddle under the mouse.
- Every arcade game waits for its first key, launch or serve. The list of games drops its group headings when the terminal's strip is too short for them.
- A finished game's details now fit beside its buttons; they were dropped whole in Tetris.
- Preview images in the README.
- 83 milestones across thirteen games.
New setting, off by default: suggest a game during long turns. A minute into a turn with no game open, one line above the prompt offers /games dino, stacked over other mods' bands.
Known issue: once in the desktop app, h at a finished Tetris game didn't go back to the list; it couldn't be reproduced since. The h: hub button under the board always works.
Full changes: games-v0.2.0...games-v0.3.0
games 0.2.0: Lights Out, Memory, Connect Four, Tic-tac-toe and Hangman
Lights Out, Memory, Connect Four, Tic-tac-toe and Hangman. (#16)
- Lights Out: levels fixed by their number, par, undo, and
rfor the next level after a clear. - Memory: 4×4, or 6×4 where the pane is wide enough.
- Connect Four: against a bot on Easy, Normal or Hard; every level takes a win and blocks one.
- Tic-tac-toe: Easy, or Perfect, which never loses; who starts swaps every game.
- Hangman: 404 coding words in four categories, none repeated until all have come up.
- A finished game stays on screen, with the result and two buttons,
r: againandh: hub, on the line below, so the winning four or the last word can be read. Plainhandrnow work at the end of a Wordle or Hangman game too. - 58 milestones across nine games.
Full changes: games-v0.1.0...games-v0.2.0
games 0.1.0: Snake, 2048, Minesweeper and Wordle in a side pane
Snake, 2048, Minesweeper and Wordle in a side pane, with milestones and your progress saved. (#16)
/gamesopens a list of the games in a pane;/games <name>goes straight to one (mines,minesweeperand friends work too)./games milestones,/games closeand/games reset <game>do what they say, and a mistyped name gets a suggestion.- Four games. Snake; 2048, with smaller tiles in a terminal's short pane; Minesweeper (shift+click or
fto flag; Medium where it fits); Wordle, with a daily puzzle and its streak, unlimited practice, 2,011 answers written for this mod and every five-letter ENABLE word as a guess. - 29 milestones, toasted as they unlock, listed with dates and progress (
t,T). - Progress that stays. Stats, bests, streaks and a half-played game are kept between sessions, and parallel sessions add up rather than overwrite each other. Arcade games come back paused.
- Out of the way. Typing in the prompt, or a turn starting or ending, pauses Snake; a toast says when Claude finishes.
- Boards are drawn from colored
Boxcells, square on both the desktop app and the terminal.
New settings: tell me when Claude finishes, high contrast colors, Wordle hard mode.
Full changes: https://github.com/aseem-upadhyay/qol-mods/commits/games-v0.1.0/plugins/games
worklog 0.3.1: folders-to-repos moves to shared/ for repo-spend
Shares how it finds a folder's repo with repo-spend. (#13)
No change to what worklog shows.
The code that matches a folder to its repo by reading .git on disk, following a worktree to its main checkout, now lives in shared/repos.py. scripts/sync-shared.py copies it into worklog and repo-spend, the same way pricing.py is shared, so the two count a session toward the same repo.
Full changes: worklog-v0.3.0...worklog-v0.3.1
worklog 0.3.0: a shared minute goes mostly where you are
A shared minute goes mostly where you are. (#11)
When parallel sessions share a minute, the one you last prompted, answered or committed in by hand now gets three shares of it and each other one gets one: ¾ and ¼ for two, 60% and 20% each for three. A session left running a long task beside the one you're typing in no longer takes half of every minute.
- A day's total is unchanged, only how it's divided between branches.
- A setting, Parallel sessions share a minute (
parallelSplit):focus(the default) oreven, the old split. The pane's footnote says which is in use. - Days with a clock change are tested: 23 and 25 hours. With the default 04:00 day start, that's the day before the clocks change.
Full changes: worklog-v0.2.0...worklog-v0.3.0
worklog 0.2.0: git, GitHub, a week's timesheet, and days kept for good
Git, GitHub, a week's timesheet, and days kept for good. (#10)
- Git. Commits and branch switches are read from each repo's reflogs on disk; no git command runs. Work you did by hand, outside Claude, counts as your time. Commits a session made join that session's branch, including ones Claude made quietly or from a script. More folders with repos reads repos Claude was never opened in.
- GitHub. One read-only
gh api graphqlcall, cached for ten minutes, gives every PR its title and state, finds the PRs of branches Claude never linked, and lists the PRs you reviewed each day and your open ones. Withoutgh, or signed out, everything else works as before. - The week.
/standup week,/worklog week, andlast weekfor each: a row per branch, a column per day, rounded to 15 minutes so each day still adds up. Copy it as a Markdown table or CSV, or save the CSV to~/Documents/worklog/. - Days kept for good. Settled days are kept under
~/.local/share/claude-worklogand read back once Claude Code deletes their logs, so last month's timesheet still adds up.
New settings: week start, rounding, Read GitHub, more folders with repos, CSV folder.
Full changes: worklog-v0.1.0...worklog-v0.2.0
worklog 0.1.0: what you worked on, day by day, for standups and timesheets
The first release of worklog: what you worked on, day by day, built from the Claude Code transcripts already on your machine, across every repo. (#9)
/standup: since your last work day (Monday covers Friday and the weekend), and today so far. Each branch gets a headline and one line of counts./standup fulladds what you asked, the commits and where files changed;/standup copycopies it./worklog: one day in a pane. The day split by repo, then each branch on a timeline of the day. Press a branch for its details, p/n to move between days, c to copy.- By repo, then PR or branch. PRs come from the transcripts' own links, matched to the branch the work was actually on.
- Drawn for both surfaces: SVG bars and timelines in the desktop app (light and dark), block characters in the terminal.
How time is counted
- A stretch of work ends after a 15-minute gap.
- Claude working alone counts for 30 minutes after your last message. The rest is shown as "Claude alone" and isn't added to your day.
- Parallel sessions share the minutes they overlap, so a day adds up to wall-clock time.
All of these are settings, along with work days, the hour a day starts (04:00), folders to leave out, and turning off prompt quotes.
Shows only, and only when asked: nothing is posted or sent anywhere, no model is called, and everything is read from local files.
repo-spend 0.5.1: cost goes to the repo where the work was
Cost goes to the repo where the work was. (#13)
A session used to count, whole, toward the repo it was started in. Now each part of it counts toward the repo it worked in: start a session in app, have it fix a bug in lib, and the bar for each repo shows its share. The two add up to the session, and the total across all your repos doesn't change.
Why
- Sessions often reach into a second repo: fixing a dependency, updating docs, following a bug across a boundary. All of that counted toward wherever the session happened to start.
- A session started in a subfolder of a repo showed up on the bar while it ran, then dropped out of the repo's history once it ended.
How it decides
- A turn that edits files goes to the repos it edited. A turn is everything from your prompt to Claude's reply, so the reading and planning before the edit go with it. A turn that edits two repos is split by the number of edits in each. Edit, Write, MultiEdit and NotebookEdit count.
- Any other message goes to the repo its working folder was in, so a session that
cds into another repo counts there from then on. - Anything else (a scratch folder, your home folder) stays with the repo the session started in.
- Reads, searches and shell commands never move cost. They say little about where the work was.
- Folders are matched to repos by reading
.giton disk, so a worktree you've deleted, or a folder inside one, still counts toward its repo. A folder keeps its repo even after the repo itself is deleted. - Claude Code's own cost record is split between repos in proportion to the estimates. A session counts as one session in every repo it worked in.
On the bar
- The total, today and last 7d take only this repo's share of the live session, refreshed every 2 minutes.
- This session, the sparkline and the $/hr stay the whole session, the same figure
/costshows.
Under the hood
- Every scan reads every project folder, since a session started anywhere can have worked in this repo. The daily sweep of other repos is gone: every scan archives deleted sessions for every repo.
scan.py --sweepnow does nothing. - The cache is one file per project folder, rewritten only when its logs change, plus
roots.json, which records the repo for each folder. A warm scan of 600 MB of logs takes about 0.13 s; the first one takes a few seconds. - When Claude Code deletes a session's logs, each repo it worked in gets its share in that repo's weekly archive.
Upgrading from 0.4.0
- New files, in
v2/:~/.cache/claude-repo-spend/v2/and~/.local/share/claude-repo-spend/v2/. The first scan copies 0.4.0's archives there, along with any session only the old cache remembered, so no history is lost. - 0.4.0's files are never changed and aren't read again after that copy. Sessions still running 0.4.0 keep working until they restart. Once every session has restarted you can delete the old
<repo>.jsonfiles (notv2/); keep them if you might go back to 0.4.0. - Totals shift once. Sessions whose logs are still on disk are counted by the new rules. Archived weeks stay with the repo a session started in, since they hold weekly totals with nothing to split by.
- Session counts can go up, as a session counts in every repo it worked in.
- In the desktop app, start a new session to pick up the update. A session that's already open keeps its version, even after
/reload-plugins.
Full changes: repo-spend-v0.4.0...repo-spend-v0.5.1
repo-spend 0.4.0: archive deleted sessions by week, for every repo
Archive deleted sessions by week, for every repo. (#3)
Once Claude Code deletes every log of a session, repo-spend now moves that session into a durable weekly archive, one per repo, at ~/.local/share/claude-repo-spend/<repo>.json ($XDG_DATA_HOME is respected). A daily sweep does the same for every repo on the machine, not just the one that's open.
Why
- Past sessions were only remembered in the scan cache (
~/.cache/claude-repo-spend). That cache is thrown away whenever its version can't be migrated, and cleanup tools treat~/.cacheas disposable. Losing it meant losing history that can't be rebuilt. - Only the open repo was scanned, so a repo nobody opened within
cleanupPeriodDayslost its sessions before repo-spend ever saw them. - The cache kept one row per deleted session forever. The archive caps that at one row per week.
How it works
- Each archive entry is one week, keyed by its Monday: dollars, sessions, and tokens per model.
- A session moves to the archive only once all of its logs are gone. Its cost is split across weeks by message time, and scaled to the cost-state ledger where one exists.
- No double counting: the archive is written before the cache, and archived session ids are kept for 90 days. A lock stops concurrent scans of the same repo from colliding.
- The archive is never overwritten: an unreadable file is moved aside, and one written by a newer version is left alone.
- The sweep (
scan.py --sweep) runs at most once every 20 hours across all sessions. A sweep that gets cut off keeps the repos it finished. - v4 and v5 caches migrate: the sessions they had folded move into the archive.
Good to know
- Archived weeks count toward the total only, not toward today or last 7d. That makes no difference with the default 30-day cleanup. The README covers the case where
cleanupPeriodDaysis under 7.
Full changes: repo-spend-v0.3.2...repo-spend-v0.4.0
repo-spend 0.3.2: follow the session across /clear
Follow the session across /clear.
A /clear carries on under a new session id, with no new session start and wiped state. The band kept the id it read at startup, so after a /clear:
- the cleared session dropped out of the repo total, and
- the new one counted twice (in the history, and as the live figure).
The hide toggle and the burn samples were lost too.
Now the band follows the session. When a session ends with clear or resume, it picks up the new id, rescans so the cleared session joins the history, starts the new session's samples afresh, and puts the hide toggle back. A once-a-minute check catches a change that no event announced.
Fixes
scan.pyno longer fails before Claude Code has written any log. A first-ever session used to show "history unavailable" for two minutes.
Full changes: repo-spend-v0.3.1...repo-spend-v0.3.2