gptme-activity-summary
Daily, weekly and monthly work reports ("what did I get done?") for AI agents and humans — built from journals, GitHub activity, agent session logs, posted tweets, sent email, and ActivityWatch time tracking, with an LLM writing the narrative.
Status: beta. Used daily to summarize an autonomous gptme agent's work; human mode is newer and less exercised.
Supersedes whatdidyougetdone — the human work-report use case lives here now, with ActivityWatch as the primary time-tracking source and GitHub as an optional overlay.
Two modes
- Agent mode (default) — reads an agent workspace's
journal/, plus GitHub activity, gptme and Claude Code session stats (via gptme-sessions, including per-model token/cost breakdowns), posted tweets and sent email. Summaries are saved as Markdown underknowledge/summaries/{daily,weekly,monthly}/in the workspace. - Human mode (
--mode human) — no agent workspace needed. Uses ActivityWatch as the primary source, with your GitHub activity as an optional overlay. If ActivityWatch isn't running, its data is skipped and GitHub-only reports still work.
Agent workspaces following the
gptme-agent-template layout work
out of the box. The tweet and email sources read tweets/posted/*.yml and
email/sent/*.md — the latter is where gptmail stores
sent mail. Missing sources are skipped.
Source formats (agent mode)
Files that do not match these shapes are skipped silently.
- Journal:
journal/YYYY-MM-DD/*.md(one directory per day). The older flat layout,journal/YYYY-MM-DD*.md, is still read bydaily. - Standup:
standupreads only thejournal/YYYY-MM-DD/directories and takes each entry's**Outcome**:line (a leadingproductive —-style status prefix is dropped).self-merges.mdis skipped. - Tweets:
tweets/posted/tweet_YYYYMMDD_*.ymlorreply_YYYYMMDD_*.yml. The date in the filename selects the day; the file needs non-emptytextand an ISOcreated_at.type,in_reply_toandcontext.original_tweet.{author,text}are optional. - Email:
email/sent/*.mdwith RFC 822 headers (Subject:,To:,Date:, optionalIn-Reply-To:), a blank line, then the body. A message without a parsableDate:header is skipped. - GitHub: needs an authenticated
gh(gh auth statusmust succeed); otherwise GitHub data is skipped.
Summaries build on each other: weekly reads the saved daily summaries for the week
and monthly reads the saved weekly summaries for each ISO week touching the month
(the .json file when present, else the .md). Generate the dailies first (smart
or backfill); weekly with no dailies saved exits with an error.
Install
The package depends on other gptme-contrib workspace packages
(gptme-sessions), so install it from a gptme-contrib checkout:
git clone https://github.com/gptme/gptme-contrib
cd gptme-contrib
uv sync --all-packages # whole workspace, or:
uv sync --package gptme-activity-summary
uv run gptme-activity-summary --help
The examples below assume the workspace venv is active (or prefix them with
uv run).
LLM summaries use the Claude Code CLI (claude -p), so claude must be
installed and logged in. Use --raw to skip the LLM in human mode. GitHub
data uses the gh CLI, which must be authenticated.
Usage
Agent mode (journal-based)
Run from the agent workspace (or set GPTME_WORKSPACE):
gptme-activity-summary daily --date yesterday
gptme-activity-summary weekly --week last
gptme-activity-summary monthly --month last
# Daily, plus weekly on Mondays and monthly on the 1st — good for a daily timer
gptme-activity-summary smart --date yesterday
# Regenerate a range of daily summaries
gptme-activity-summary backfill --from 2026-09-01 --to 2026-09-07
# Limit GitHub data to specific repos (repeatable)
gptme-activity-summary daily --repo gptme/gptme --repo gptme/gptme-contrib
Human mode (ActivityWatch + optional GitHub)
gptme-activity-summary daily --mode human --date yesterday
gptme-activity-summary daily --mode human --date yesterday --github-user your-github-username
gptme-activity-summary weekly --mode human --week last --github-user your-github-username
gptme-activity-summary monthly --mode human --month last --github-user your-github-username
# Select the machine when ActivityWatch has buckets from multiple hosts
gptme-activity-summary daily --mode human --aw-host my-laptop
# Print the source data without LLM summarization
gptme-activity-summary weekly --mode human --week last --github-user your-github-username --raw
ActivityWatch reports cover one host at a time. Without --aw-host, the sole
window-watcher host is selected automatically. If multiple window hosts exist,
the report lists them and asks you to choose; an unknown host also produces a
diagnostic instead of falling back to another machine. Window, AFK, and browser
buckets are matched to that same hostname. Host selection uses bucket metadata;
it does not combine machines into a single timeline.
Website totals derive domains from ordinary URL events with ActivityWatch's URL-splitting transform before grouping, with the selected host's AFK filtering when available.
Missing or ambiguous AFK data leaves window time unfiltered and explicitly labelled as such. Missing or ambiguous browser data omits website totals. Multiple buckets of the same watcher type on the selected host are skipped with a coverage warning rather than merged or chosen arbitrarily. Raw reports and model inputs include the selected hostname and coverage warnings. A report containing only coverage diagnostics, with no application or GitHub activity, skips the model.
Commands
| Command | Purpose | Key options |
|---|---|---|
daily |
One day | --date (YYYY-MM-DD, today, yesterday), --mode, --github-user, --aw-host, --raw, --repo |
weekly |
One ISO week | --week (YYYY-Www, current, last), same as above |
monthly |
One month | --month (YYYY-MM, current, last), same as above |
smart |
Daily + weekly/monthly when due | --date, --repo |
backfill |
Daily summaries for a date range | --from (required), --to, --force, --repo |
standup |
Standup context from recent journal outcomes | --since (24h, 3d, ISO time), --format json|text, --limit, --include-low-signal |
stats |
Journal entry and existing-summary counts | — |
Global options: -v/--verbose, --dry-run (print without saving).
--repo defaults to the workspace's own origin repository plus the gptme
project repos.
Configuration
| Environment variable | Effect |
|---|---|
GPTME_WORKSPACE |
Agent workspace root (default: gptme's workspace detection, then the git root) |
AW_SERVER |
ActivityWatch server URL (default http://localhost:5600) |
GPTME_CC_FALLBACK_CREDS |
Colon-separated Claude credential files to try when the active subscription hits a permanent quota/auth failure |
GPTME_CC_CMD_PREFIX |
Command prefix for invoking claude (e.g. a credential wrapper) |
GPTME_ACTIVITY_SUMMARY_GPTME_FALLBACK |
Set to 1 to fall back to gptme (via OpenRouter) when all Claude attempts fail (e.g. quota exhausted). Off by default because it sends journal content to an external model |
GPTME_ACTIVITY_SUMMARY_GPTME_MODEL |
Model for the gptme fallback |
AW_SERVER accepts an absolute http:// or https:// URL with a hostname and
an optional port. If omitted, the port defaults to 80 for HTTP and 443 for
HTTPS. An empty path or / is allowed. Paths, credentials, query strings,
fragments, malformed URLs, and invalid ports are rejected; ActivityWatch data
is then treated as unavailable.
Backend trace retention
Backend calls keep their traces; nothing is pruned automatically. The gptme
fallback stores each invocation under
$XDG_STATE_HOME/gptme-activity-summary/gptme-* (default
~/.local/state/gptme-activity-summary/), including the conversation plus
stdout.log and stderr.log (with partial output on timeout); the path is
logged before the child starts.
Claude calls require a CLI with --session-id support. Each attempt (retries
and alternate credential slots included) clears the parent session identity and
uses a fresh --session-id. Ordinary calls keep Claude's native project
trajectories; alternate credential slots run in private claude-slot-* state
directories, and only the temporary credential symlink is removed afterwards.
Traces may contain journal content and provider diagnostics — keep their
private permissions when archiving, and don't follow a conversation's
workspace symlink when copying them.
License
MIT