fork-detect
Search past Claude Code sessions with natural language queries to find and fork from relevant conversations.
Instructions
Search for relevant past Claude Code sessions to fork from
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "fork-detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language description of what you want to do | |
| project | No | Optional project name to filter results. Use 'current' to auto-detect from working directory, or specify a project name explicitly. | |
| scope | No | Search scope: 'all' searches all sessions (default), 'project' searches only current project | |
| time_range | No | Predefined time range (today, yesterday, this_week, last_week, this_month, last_month, this_year) or natural language ('last Tuesday', '2 weeks ago', '3d') | |
| start_date | No | Custom start date for filtering (ISO format: 2026-01-01 or natural language) | |
| end_date | No | Custom end date for filtering (ISO format: 2026-01-21 or natural language) | |
| tags | No | Optional comma-separated list of tags to filter results (e.g., 'bug-fix,urgent' or 'react'). Sessions must have at least one matching tag. | |
| include_archive | No | Whether to include archived sessions in search results (default: false) |