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!