A Claude Code plugin that automatically records each completed Claude interaction as a commit in Jujutsu version control.
Just like Lisa Simpson meticulously documents everything in her diary, this plugin keeps a detailed record of every change Claude makes to your codebase. Each time you finish working with Claude, the plugin automatically creates a Jujutsu commit using Claude's final response as the commit message—ensuring nothing gets lost or forgotten.
The plugin hooks into Claude's "Stop" event. When you end a Claude session:
- The plugin reads Claude's conversation transcript (a JSON Lines file)
- It parses each line looking for assistant messages
- It extracts the full text content from the last assistant message (combining all text blocks)
- It creates a Jujutsu commit using that complete message as the commit message
- All operations are logged to
/tmp/lisas-notes-debug.logfor troubleshooting
This means every interaction with Claude results in a discrete, well-documented commit in your version history.
- Jujutsu (jj) installed and available in PATH
- jq for JSON parsing
- Your project must be a Jujutsu repository
-
Clone this repository:
git clone <repository-url> lisas-notes
-
Register the marketplace with Claude using the path to
.claude-plugin/marketplace.json -
Enable the lisas-notes plugin from the marketplace
Once enabled, the plugin works automatically:
- Work with Claude in a Jujutsu-managed repository
- When you stop the Claude session (Ctrl+C or
/exit), the plugin triggers - Your changes are committed with Claude's final response as the message
No manual intervention needed—just work with Claude and let Lisa keep the records.
lisas-notes/
├── .claude-plugin/
│ └── marketplace.json # Marketplace configuration
├── plugins/
│ └── lisas-notes/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin metadata (v1.0.5)
│ ├── hooks/
│ │ └── hooks.json # Stop hook definition
│ └── scripts/
│ └── auto-commit.sh # The commit automation script
└── README.md
If commits aren't being created as expected, check the debug log:
tail -f /tmp/lisas-notes-debug.logThis log shows:
- When the hook starts and finishes
- The transcript path being read
- The extracted commit message
- Any errors from the
jj commitcommand
Ian Bull