Check Traveller for New Conversations
Scan for new markdown conversation files exported from the Claude Traveller iOS app.
Switches
| Switch | Short | Description |
|---|---|---|
--all | -a | Scan all configured projects (instead of just current project) |
--review | -r | Mark selected conversations as reviewed (moves to reviewed/ subfolder) |
--delete | -d | Delete selected conversations (with confirmation) |
--clean | -c | Delete all reviewed conversations (clears reviewed/ folders) |
Instructions
When the user invokes /check-traveller, scan for new conversation markdown files.
Parse Arguments
Check $ARGUMENTS for switches:
- •If it contains
--allor-a: Scan all configured projects - •If it contains
--reviewor-r: Enable review mode - •If it contains
--deleteor-d: Enable delete mode - •If it contains
--cleanor-c: Enable clean mode - •Any remaining non-switch argument is treated as a path
Steps
- •
Determine the folder to scan
- •If a path argument is provided, use that path
- •If
--allor-aswitch is provided, scan all configured projects from~/.claude-traveller/config.json - •Otherwise (default), search the current project only:
- •Check if
./traveller/exists in the current working directory - if so, use it - •If not, check
~/.claude-traveller/config.jsonfor a project whose path contains the current directory - •If no match found, default to scanning the current directory for
.mdfiles
- •Check if
- •
Find recent conversation files
- •Use
Globto find*.mdfiles that look like traveller exports (typically named with timestamps like2024-01-23-*.md) - •Exclude files in
reviewed/subfolders (these have already been processed) - •Sort by modification time (newest first)
- •Show the 10 most recent files with their dates
- •Use
- •
Display summary
- •For each file, extract the first heading as the title
- •Show file path, date, and title
- •Indicate approximate size or message count if visible
- •
Handle mode-specific actions
Default mode (no switches):
- •Ask the user if they want to load any specific conversation into the current session
- •If yes, read the selected file(s) and summarize the key points
Review mode (
--review):- •Ask which conversations to mark as reviewed (can select multiple: "1,3,5" or "all")
- •For each selected file, move it to a
reviewed/subfolder in the same directory - •Create the
reviewed/folder if it doesn't exist - •Example:
traveller/2024-01-23-file.md→traveller/reviewed/2024-01-23-file.md
Delete mode (
--delete):- •Ask which conversations to delete (can select multiple: "1,3,5" or "all")
- •Show a confirmation prompt listing the files to be deleted
- •Only delete after explicit "yes" confirmation
- •Use
rmvia Bash to delete the files
Clean mode (
--clean):- •Find all files in
reviewed/subfolders across all project traveller directories - •Show count and total size of reviewed files
- •Ask for confirmation before deleting
- •Delete all files in
reviewed/folders
Example Output
code
Recent Traveller Conversations: 1. 2024-01-23-143052-A1B2C3D4.md (Today, 2:30 PM) "Debugging the authentication flow" 2. 2024-01-22-091523-E5F6G7H8.md (Yesterday, 9:15 AM) "API endpoint design discussion" Which conversation would you like to load? (Enter number, or 'skip')
Review mode example:
code
/check-traveller --review Recent Traveller Conversations: 1. 2024-01-23-143052-A1B2C3D4.md - "Debugging auth flow" 2. 2024-01-22-091523-E5F6G7H8.md - "API endpoint design" Which conversations to mark as reviewed? (e.g., "1,3" or "all" or "skip") > 1,2 Marked as reviewed: → traveller/reviewed/2024-01-23-143052-A1B2C3D4.md → traveller/reviewed/2024-01-22-091523-E5F6G7H8.md
Delete mode example:
code
/check-traveller --delete Recent Traveller Conversations: 1. 2024-01-23-143052-A1B2C3D4.md - "Debugging auth flow" Which conversations to delete? (e.g., "1,3" or "all" or "skip") > 1 ⚠️ About to DELETE: - traveller/2024-01-23-143052-A1B2C3D4.md Type 'yes' to confirm deletion:
Config Location
The Claude Traveller Listener config is at ~/.claude-traveller/config.json with structure:
json
{
"projects": [
{ "tag": "project-name", "path": "/path/to/traveller/folder" }
]
}