minmaxflow/mini-kode

An educational AI coding agent CLI

What it solves

Mini-Kode bridges the gap between overly complex open-source coding agents and simplistic demos, offering a complete but manageable implementation (about 14,000 lines of production code) that helps developers understand and hack modern AI coding assistant systems. It provides all the core pieces—an agent loop, a unified tool system, MCP integration, and multi-LLM support—in an educational package.

How it works

Built on the OpenAI SDK, Mini-Kode supports multiple LLM backends including DeepSeek, GLM, MiniMax, and any OpenAI-compatible API, configured via environment variables. The heart is an agent loop that streams responses and includes a human-in-the-loop permission approval step. A complete tool system handles file operations, search, and command execution, while MCP integration extends functionality to external servers. The terminal interface is built with React and Ink, offering themes and both interactive and non-interactive modes. Project memory is implemented through an AGENTS.md file, giving the assistant context-aware, persistent awareness of your project.

Who it’s for

Developers who want to learn how AI coding agents are architected, or who want a hackable, educational codebase to experiment with and extend. It’s designed for people comfortable with TypeScript and the modern JavaScript ecosystem (Bun, pnpm), and who appreciate a clean, well-commented codebase.

Highlights

  • Education-first design with a clean architecture and comprehensive comments throughout.
  • Unified tool system covering file operations, search, and command execution.
  • MCP integration to plug in external servers for extended capabilities.
  • Multi-model support: DeepSeek, GLM, MiniMax, and any OpenAI-compatible endpoint.
  • Agent loop with streaming responses and human-in-the-loop permission approvals.
  • Modern Ink‑based terminal UI with theme support.
  • Project memory via AGENTS.md for context-aware assistance across sessions.
  • Future plans include session persistence, LLM built-in tools, image input, sub-agents, reasoning models, and more.

Related

  • Project
  • Project
  • Project
  • Project