Show HN: Batch Claude Code tool calls into one using chat history to save tokens
github.comHey HN! I usually create helper scripts for Claude to reuse and organize the file structure, allowing me to run multiple agents on the same codebase. I had around 150 conversations for a project, so I wanted to see if I could automate the process of analyzing my conversation history to see if I could build something valuable from it.
Apparently, conversation history is gold for spotting repetitive tool calls. I deleted a helper script that I had recently created from the repository and the conversation history, and Claude suggested that I make them when I ask it to suggest helper scripts.
I had to perform data cleaning & enrichment on the conversation history to make it worthwhile for CC, so I've turned it into an open-source plugin anybody can use. It's handy for both repetitive workflows and coding use-cases.
The script adds a `/agent-trace-ops:plan` slash command, and all data is processed locally via your Claude Code. Let me know if it's useful!