█

AI/TLDR

Buy me a coffee
Buy me a coffee

little-coder

A terminal coding agent whose scaffolding is tuned so small local models can finish real coding tasks

Autonomous Coding AgentsOpen source
Language
TypeScript
License
Apache-2.0
IN SHORT

What is little-coder?

little-coder is a terminal coding agent whose scaffolding is tuned so small local models can finish real coding tasks. Its canonical setup is a local llama.cpp server hosting Qwen3.6-35B-A3B, but it also runs against Ollama, LM Studio, any OpenAI-compatible server and hosted providers such as Anthropic and OpenAI. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in TypeScript and licensed Apache-2.0.

Overview

little-coder is a terminal coding agent designed around one question: what does the scaffolding around a model need to look like when that model is small and running on your own laptop? Rather than assuming a frontier model that can recover from vague tools and a sprawling context, it changes the harness to fit the model — a lean cold-start context, strict rules on how files are written and edited, and short usage notes injected only when a turn needs them. Its canonical setup is a local llama.cpp server hosting Qwen3.6-35B-A3B, but it also runs against Ollama, LM Studio, any OpenAI-compatible server and hosted providers such as Anthropic and OpenAI.

Terminal-style diagram titled little-coder tool-use flow: for the prompt implement the fizzbuzz exercise, the agent runs Glob, Read on the instructions, Read on fizzbuzz.py, Edit on fizzbuzz.py and Bash running pytest, each with a check mark and output size, ending in All tests pass
A typical little-coder turn: find the files, read before editing, make a targeted edit, then run the tests.little-coder repository ↗

It is built on top of pi, the minimal coding-agent substrate, without forking it. pi supplies the agent loop, provider abstraction, TUI, sessions and extension model; little-coder adds around thirty TypeScript extensions, thirty skill markdown files and a Python benchmark harness. The launcher runs pi with `--no-extensions` and wires in exactly the bundled set, which the README says keeps the cold-start context around 7k tokens and makes behaviour predictable. You can still add your own extensions in `~/.config/little-coder/extensions/`.

The small-model adaptations are the point of the project. A write guard refuses to let `Write` overwrite an existing file, so the model has to read it and make a targeted `Edit` instead of regenerating the whole thing. A read guard trims reads that would overflow the context window. An output parser repairs malformed tool calls, a quality monitor catches empty, hallucinated or looping responses, a thinking-budget cap retries with thinking off, and a skill selector injects a short card for the tools a turn is likely to need. The README states that these small-model extensions switch themselves off for large or cloud models.

Around that core sit the day-to-day features: a Plan Mode that researches with read-only sub-coders, asks one to three clarifying questions and writes a plan before touching code; separate plan and action models, so you can plan on a bigger model and implement on a smaller one; a Deep Research mode that produces a cited markdown report; background jobs that wake the model on events such as a traceback rather than polling; and a shell-command whitelist that gates `bash`. The project's white paper, *Honey, I Shrunk the Coding Agent*, reports that the scaffold took Qwen3.5-9B from a 19.11% vanilla Aider baseline to 45.56% on Aider Polyglot.

What it does

  • Harness adaptations for small models: read-before-edit, a write guard that forbids rewriting existing files, tool-call repair, loop and hallucination detection, and a per-turn thinking budget
Terminal-style diagram titled little-coder Write guard and recovery: the model tries Write on an existing auth.py, the call is refused with a message to use Edit instead, and on its next turn the model runs Read and then Edit on the same file
The write guard in action: an attempt to overwrite an existing file is refused, and the model recovers by reading the file and editing it.little-coder repository ↗
  • Per-turn tool skill cards and algorithm cheat sheets injected only when relevant, keeping the cold-start context around 7k tokens
  • Local-first model support: llama.cpp, Ollama and LM Studio out of the box, any OpenAI-compatible server via a models.json override, plus hosted providers through pi
  • Plan Mode with read-only research sub-coders and clarifying questions, and separate plan and action models handed over with /implement
  • Background jobs via ShellStart that wake the model on exit, a matching log line or silence instead of polling
  • A shell permission gate with a safe-prefix whitelist, extendable with LITTLE_CODER_BASH_ALLOW or switched to manual approval

Getting started

little-coder is an npm package that needs Node.js 22.19 or newer. Install it globally, serve a local model (or set a cloud API key), and launch it from your project directory.

Install

The one-line installer and npm are equivalent; bun works for installing, but the launcher still runs on Node.

bashbash
curl -fsSL https://raw.githubusercontent.com/itayinbarr/little-coder/main/install.sh | bash

# or
npm install -g little-coder

Serve a local model

The simplest route is Ollama. The README's tuned setup is llama.cpp serving Qwen3.6-35B-A3B on port 8888, with MoE experts kept in system RAM so it fits an 8 GB GPU; LM Studio also works.

bashbash
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen3.5

Set the placeholder API key

pi expects some value in the provider's key variable even though local servers ignore it. For cloud models, set the usual `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` instead.

bashbash
export OLLAMA_API_KEY=noop
export LLAMACPP_API_KEY=noop

Launch it in your project

The directory you launch from is the agent's working directory. Bare `little-coder` starts the default model from models.json; `--list-models` shows everything registered.

bashbash
cd ~/your-project
little-coder --model ollama/qwen3.5
little-coder --model llamacpp/qwen3.6-35b-a3b
little-coder --list-models

Plan before you build

Press Ctrl+Q to toggle Plan Mode. little-coder researches, asks clarifying questions and writes a plan to `.pi/approved-plan.md`; `/implement` then starts a fresh session on the action model. The same flow works headless.

bashbash
little-coder -p --plan-mode "add rate limiting to the ingest endpoint"

Allow your build commands

Shell calls outside the built-in whitelist are blocked by default. Add the prefixes your project needs, or switch to manual approval.

bashbash
export LITTLE_CODER_BASH_ALLOW="make ,docker compose ps"
# or prompt before every shell command and edit
export LITTLE_CODER_PERMISSION_MODE=manual

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reach for it when you want a coding agent that works fully offline on a laptop GPU with an open-weight model
  • Reach for it when a general-purpose agent keeps derailing on your small local model — rewriting whole files, emitting broken tool calls or looping
  • Reach for it to plan on a larger model and implement on a smaller, faster one without switching models by hand
  • Reach for it to study how scaffold design changes small-model results, using its bundled extensions and benchmark harness as a starting point

How little-coder compares

little-coder alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
opencode★ 230kOpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app.
Claude Code★ 158kAnthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands.
Orca★ 147kOpen-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app.
OpenAI Codex★ 137kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Pi★ 125kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
Gemini CLI★ 109kAn open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web.
autoresearch★ 101kKarpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own.
little-coder★ 2.7kA terminal coding agent whose scaffolding is tuned so small local models can finish real coding tasks