Earlier quoted context omitted.
Why not just allow it to grep ~/.claude
Grep is more expensive from a token use standpoint and jsonl files seem to get recycled after 30 days. Grep is what I was using first.
You can increase the life of the JSONL files, if you add this to the settings.json for Claude Code, where you would configure your hooks:
"cleanupPeriodDays": 99999
That's maybe excessive, but I figure we'll have another solution to this in 273 years. But then, they thought that about the Y2K bug as well.Love your idea to actually index the conversations though!