Recommendations for a minimal, lightweight CLI AI agent library?

Posted by AryanGosaliya@reddit | LocalLLaMA | View on Reddit | 13 comments

I'm building a personal project and need a very lightweight CLI coding agent that I can wrap and extend. Most current options (like OpenCode or Gemini-CLI) feel too heavy for my needs, often coming with complex dependency trees or features I don't use (like MCP servers). I'm looking for something that acts as a simple terminal helper without the bloat. Does anyone know of a minimal library for this, or does it make more sense to build a custom implementation on top of an LLM SDK?