$ claude-code-worklog
MIT licensedv2.0.0CI passing

Turns your Claude Code sessions into a daily worklog, automatically

No LLM on the hot path, no cost added to your normal work. Every turn is captured silently, then quietly summarized into plain markdown you can search, list, or just ask about.

/plugin marketplace add kjungit/claude-code-worklog
/plugin install worklog@claude-code-worklog
or view the source on GitHub →
worklog:show

$ /worklog:show

## claude-code-worklog -- Added /worklog:list and shipped CI

- Added `/worklog:list [--all]` so dates don't have to be guessed

- Wired up GitHub Actions for tests, manifest validation, and tag releases

- Fixed a timezone bug where post-midnight work landed on the wrong day

_3 sessions, 12 turns, 1 project, ~4.2k input / ~1.1k output tokens._

By the time standup or a weekly report rolls around, it's easy to lose track of what you actually did in Claude Code. worklog captures it as you go and turns it into a plain markdown log you never had to write yourself.

What it does

Silent capture, zero cost

Every turn is captured through a Stop hook -- no LLM call, no added latency, nothing sitting on the hot path.

Background Map-Reduce summary

Once a day passes, the next session start summarizes that day's sessions in the background into notes/{date}.md.

/worklog:list at a glance

See which dates actually have a worklog -- most recent 14 by default, --all for the full history.

Search, or just ask

/worklog:search <keyword> hits a local SQLite FTS5 index. Or ask naturally -- a skill handles anything beyond a single day.

--now, on demand

Don't want to wait for the next session start? --now forces an immediate summary of today so far.

Obsidian-friendly

Point notes_path at your vault and every entry ships with dataview-queryable YAML frontmatter.

Capture

Every turn, captured silently

A Stop hook writes each turn to a per-session file the moment it happens -- no LLM call, no added latency, nothing sitting on your hot path. It's just an append to a local file.

no LLM call · $0
promptfix the login redirect bug
captured
file_changeEdit auth/callback.ts
captured
promptalso add a test for it
captured
file_changeWrite auth/callback.test.ts
captured
still listening
Rewinds

Abandoned attempts don't count as work

Session transcripts are a DAG, not a straight line -- rewind to try something else and the old attempt stays in the file forever. The parser walks back from the latest leaf to find what's actually live, and reports rewound branches separately instead of folding them into completed work.

abandonedlive
Summarize

Map per session, reduce per day

Once a day has passed, the next session start kicks off a background pass: each session is summarized on its own (Map), then that day's summaries are combined into one worklog body per project (Reduce) -- written out as plain markdown.

Session ASession BSession CMapReduce

notes/{date}.md

A few things worth knowing under the hood

Prompt-injection defenses

Summaries are generated from your own files and commit messages -- a real injection surface. Tools are disabled during summarization and raw material is passed as clearly-delimited data, never as instructions.

Reentry guard

Summarization runs claude -p in the background, which reloads this same plugin's hooks. A guard stops it from recursing into itself.

No delete path, anywhere

Archiving only ever compresses old raw logs into archive/*.tar.gz. There is no function in this plugin that removes your original data.

Install & configure

Everything below is optional -- every field can be left blank at install time.

/plugin marketplace add kjungit/claude-code-worklog
/plugin install worklog@claude-code-worklog
OptionDefaultEffect
notes_path${CLAUDE_PLUGIN_DATA}/notesWhere daily worklog .md files are written. Point at an Obsidian vault to keep them there.
archive_after_days180How old a day's raw logs need to be before /worklog:archive compresses them.
anthropic_api_key(unset)If set, switches summarization to isolated mode. Stored in your OS keychain.
summary_model(unset)Model used for the two claude -p summarization calls.

Commands

Namespaced as /<plugin-name>:<command>. Ask naturally too -- a skill handles anything beyond a single day.

/worklog:show [date] [--now]Show a day's worklog (today by default). --now forces an immediate summary instead of waiting for the next session start.
/worklog:list [--all]List worklog dates at a glance (most recent 14 by default; --all for full history).
/worklog:search <keyword>Full-text search across every past worklog entry.
/worklog:archive [days]Gzip-compress raw session logs older than N days into archive/. Never deletes anything.
/worklog:debugShow recent plugin errors.
/worklog:doctorCheck that the plugin is set up correctly: data directory, pending summaries, recent errors.