Did you get ChatGPT to help you write this and is one of your main use cases generating bash commands? (Code writing code, there’s a total feedback loop happening here) I did too but wrote mine in Python. A compiled language would be much faster and using their streaming function I’m yet to implement. Any other ways you can increase the speed?