Kolega Code (kolega-code) is an open-source Python-based terminal coding agent developed by the Kolega AI team. It is built to assist software engineers with repository-level code inspection, refactoring, planning, and task execution directly from the command line. In daily operations, Kolega Code acts as an interactive CLI agent guided by dedicated planning routines and task management tools. It supports multiple LLM providers (including Anthropic Claude and DeepSeek models) and connects to external capabilities via the Model Context Protocol (MCP). The agent manages worktree environments, tracks goal lists, clarifies ambiguous tasks via interactive planning prompts, and executes structured changes against local files. A core differentiator of Kolega Code is its strict ToolExtension contract. Every native extension—including task lists, worktree controls, and custom skills—alongside external MCP servers must declare explicit model-visible descriptions and JSON schemas prior to execution, ensuring robust tool calling and preventing malformed tool invocations across different model backends. Kolega Code is distributed as open-source software on GitHub and includes built-in benchmarking harnesses and automated test suites to measure agent accuracy across tasks.
Tags: ai agent, cli, code assistant, coding agent, terminal
write_plan, task lists, goal controls) to organize multi-step implementations. - Custom Skills & Prompt Assets — Loads reusable prompt definitions and tool extensions to tailor agent behavior to specific repositories. - Multi-Model Routing & Benchmarking — Supports routing across multiple foundation model providers with integrated benchmarking scripts.Kolega Code is designed for software engineers and terminal-centric developers who want a scriptable, extensible CLI agent with structured planning and MCP integration. It is less suitable for users looking for non-technical GUI wrappers or turnkey IDE sidebars without terminal setup.
pip or pipx (Python 3.10+ required): bash git clone https://github.com/kolega-ai/kolega-code.git cd kolega-code pip install -e .bash export ANTHROPIC_API_KEY="your-anthropic-api-key" # Or configure DeepSeek / OpenAI keys depending on the chosen model export DEEPSEEK_API_KEY="your-deepseek-api-key"bash kolega-code "Add unit tests for the auth middleware and verify using pytest in a separate worktree"Part of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools