190 lines with comments included so close enough
Which is the actual agent? Everything else is just glue code to connect to different LLM providers, etc