mirror of
https://github.com/tiennm99/try-claudekit.git
synced 2026-04-17 19:22:28 +00:00
Add agent definitions, slash commands, hooks, and settings for Claude Code project tooling.
1.2 KiB
1.2 KiB
description, category, allowed-tools
| description | category | allowed-tools |
|---|---|---|
| List all Claude Code checkpoints with time and description | workflow | Bash(git stash:*) |
List Claude Code checkpoints
Display all checkpoints created by Claude Code during this and previous sessions.
Task
List all Claude Code checkpoints. Steps:
-
Run
git stash listto get all stashes -
Filter for lines containing "claude-checkpoint:" using grep or by parsing the output
-
For each matching stash line (format:
stash@{n}: On branch: message):- Extract the stash number from
stash@{n} - Extract the branch name after "On "
- Extract the checkpoint description after "claude-checkpoint: "
- Use
git log -1 --format="%ai" stash@{n}to get the timestamp for each stash
- Extract the stash number from
-
Format and display as:
Claude Code Checkpoints: [n] YYYY-MM-DD HH:MM:SS - Description (branch)Where n is the stash index number
-
If
git stash list | grep "claude-checkpoint:"returns nothing, display: "No checkpoints found. Use /checkpoint [description] to create one."
Example: A stash line like stash@{2}: On main: claude-checkpoint: before auth refactor
Should display as: [2] 2025-01-15 10:30:45 - before auth refactor (main)