Auto-capture Claude Code sessions as worklogs and learn from user steering patterns
npx claudepluginhub thumperl/claude-worktraceAuto-captures Claude Code sessions as narrative worklogs and detects user steering patterns
Share bugs, ideas, or general feedback.
Auto-captures your Claude Code sessions — what you did, what decisions you made, and how you corrected Claude — so nothing is lost when context compacts or sessions end.
Three skills, zero manual effort:
/clear, and session end. Sonnet reads your transcript and writes narrative summaries ("Fixed auth race condition" not "edited 3 files")How it works: You work normally. On compaction/clear/exit, a hook reads the transcript, Sonnet analyzes it in one API call, and writes both a worklog entry and any detected preferences. Everything syncs to ~/Documents/AI/ via iCloud and into Claude's native memory so it's active next session.
claude plugins marketplace add https://github.com/thumperL/claude-worktrace
claude plugins install claude-worktrace
The first command registers the repo as a plugin source. The second installs the plugin, which automatically registers hooks and loads skills.
.skill zip installIf you previously installed via .skill files, use the bundled migration script to safely remove old artifacts before installing the plugin.
Step 1: Preview what will be removed (dry run)
python3 scripts/migrate-from-skills.py --dry-run
Review the output carefully. The script identifies:
~/.claude/settings.json that reference worklog-logging/scripts/~/.claude/skills/{worklog-logging,self-improve,worklog-analysis}Only claude-worktrace artifacts are targeted — other hooks and skills are left untouched.
Step 2: Run the migration
python3 scripts/migrate-from-skills.py
The script backs up settings.json before modifying (saved as settings.backup-*.json).
Step 3: Install the plugin
claude plugins install claude-worktrace
Step 4: Verify in a new session
Start a fresh Claude Code session and confirm:
claude-worktrace:*)claude in PATH)~/Documents/AI/ directory (iCloud sync recommended)claude-worktrace/
├── .claude-plugin/
│ └── plugin.json
├── skills/
│ ├── worklog-logging/SKILL.md
│ ├── worklog-analysis/SKILL.md
│ └── self-improve/
│ ├── SKILL.md
│ └── references/pattern_categories.md
├── agents/
│ └── analyzer.md
├── hooks/
│ ├── hooks.json
│ └── scripts/
│ ├── pre_compact_hook.py
│ ├── pre_clear_hook.sh
│ └── session_end_wrapper.sh
├── scripts/
│ ├── write_worklog.py
│ ├── write_preferences.py
│ ├── analyze_worklog.py
│ └── migrate-from-skills.py
└── tests/test_python39_compat.py
~/Documents/AI/
├── worklog/ # Worklog entries (per-day, per-machine)
│ ├── 2026-03-17-macbook-pro.md
│ └── ...
└── self-improve/
├── MEMORY.md # Global preferences index
├── feedback_*.md # Individual global preferences
├── preferences-log.md # Audit trail (all steers with timestamps)
└── projects/
└── {project-name}/
├── MEMORY.md # Project preferences index
└── feedback_*.md # Individual project preferences
.claude-plugin/plugin.json and .claude-plugin/marketplace.jsonmain and add the release labelplugin.json