Open source coding agent · Pure Go · MIT

Tiny but mighty.

bee is a coding agent harness in a single Go binary. It writes code, runs your tests and commits, on a 4k-context local model or a frontier API. Same workflow, your choice.

$ curl -fsSL https://raw.githubusercontent.com/elhenro/bee/main/install.sh | sh

macOS and Linux. Or go install github.com/elhenro/bee/cmd/bee@latest (Go 1.26+)

A real session on a local oMLX server with a 27B model. Not sped up.

Why bee

Three ideas, one binary.

Built for the small end of the model range, without giving up the big end.

4k

Tiny-context friendly

A token-budgeted system prompt, tool docs and tool output, with lazy top-k memory. There are no profiles: every model gets the same defaults, and lowering a few budgets in your config fits a 4k-context Ollama model. When the window fills, bee compacts the history.

>_

Skills are subcommands

Drop a markdown file in ~/.bee/skills and run it as bee <name>. One binary on your PATH, no shell shims, from any directory in any shell.

fn

Skills are agent endpoints

Skills come as a prompt, a command or a recipe. A command skill is also a tool the model can call mid-task. A recipe runs its shell and tool steps in Go, so only the steps that need a model spend tokens.

Plus loop detection, nudges for models that stall, and a sandbox with approval gates for risky commands.

The colony

More than one bee.

Roles, a hive and an overnight loop live in the same binary. None of it is required.

Three roles

worker does the job, scout researches read-only with web search, queen splits a big task over a hive. Cycle them with shift+tab.

A hive that stays aligned

Workers share a pheromone card (the goal, the plan and one status row per sibling) instead of chatting. A worker that dies leaves a death report, not a bare error.

Parallel agents

bee agents gives every task its own git worktree. Finished branches are rebased, run through your verify gate and fast-forwarded onto main.

Overnight loop

bee zzz makes one small change per iteration, then commits or rolls back. Wake up to a branch of small, revertable commits.

🌼 committed🍃 noop🥀 reset💥 failed

Procedure memory

When bee repeats the same read-only route, it crystallizes it into a runnable shortcut called a waggle. Fewer round trips, which matters most for small local models.

Review aids

bee explain lists what each request changed and why. bee quiz makes you guess the reason first. Learn the codebase while the agent works in it.

Screens

See it work.

Captures of the current terminal UI, from real sessions.

bee after fixing a failing test: a red test run, a one-line diff in green and red, a passing test run, the answer and a change summary
A task, start to finish. bee runs the tests, reads the code, patches one line, runs the tests again and lists what changed. Every call is a card, every edit is a diff.
bee mid-task with a one-line diff on screen and a spinner reading Foraging with live token counts
Watch it work. A live spinner with token counts. Press esc to interrupt at any moment.
The model picker listing local Qwen models served by oMLX
Any model on your machine. Press ctrl+p, pick a provider, then a model. bee asks your local server what it has.
The slash menu listing commands and skills together
Commands and skills in one list. Type / for commands. Skills are markdown files in ~/.bee/skills and also run as bee <name>.
The same task in a light terminal theme
Light terminals too. The palette adapts to your theme.
Quick start

Up and running in a minute.

  1. Install

    $ curl -fsSL https://raw.githubusercontent.com/elhenro/bee/main/install.sh | sh
  2. Pick a model

    Run bee, type /model, choose a runtime (oMLX, Ollama, LM Studio, OpenRouter) and a model. Local or hosted, your choice.

  3. Hand it a job

    Talk to it in the terminal UI, or run it headless. Everything else is a subcommand.

    $ bee criticize plan.md            # a skill is a subcommand
    $ bee run "lint cmd/"              # headless, pipeable
    $ bee swarm "migrate auth to jwt"  # queen plans, workers build
    $ bee fan "audit internal/"        # same prompt, many bees
    $ bee zzz "tighten error messages" # overnight loop
    $ bee agents                       # parallel agents, one worktree each
    $ bee remote-control               # drive bee from another device on your LAN
Local first

Made for local models.

bee works well with Ollama and oMLX, so you keep control. No API keys, no rate limits, your code stays on your machine.

On macOS, oMLX adds native Apple Silicon acceleration with prompt caching, which keeps things fast and memory-efficient. For models that only read text, bee can route images through a small local vision model.

My setup

MacBook M3 Max, 64 GB, serving through oMLX with multi-token prediction on. Qwen3.8-27B is the reference model. Sampling: temperature 1.0, top-p 0.95, top-k 20.

Models I runSize
Qwen3.8-27B-oQ4e-mtp17 GB
Ornith-1.5-35B-A3B-oQ4e-mtp21.6 GB
MiMo-V2.6-Distill-Qwen-9B-OptiQ-4bit7.1 GB
Qwen3.5-0.8B-MLX-4bit652 MB

FAQ

What is bee?

bee is a minimal coding agent harness written in Go. It is a single static binary that turns any LLM into an autonomous agent which writes code, runs tests, and commits changes. There is no runtime to install and no daemon, just one executable on your PATH.

How do I install bee?

Run curl -fsSL https://raw.githubusercontent.com/elhenro/bee/main/install.sh | sh, or go install github.com/elhenro/bee/cmd/bee@latest if you have Go. Then run bee, type /model, choose a runtime such as oMLX, Ollama, or OpenRouter, and pick a model.

Can bee run fully local and offline?

Yes. bee runs against local models through Ollama or oMLX, so there are no API keys, no rate limits, and your prompts and code stay on your machine. bee does check GitHub for updates once an hour, which you can switch off with update_check = "off". On macOS, oMLX adds native Apple Silicon acceleration with prompt caching for fast, memory-efficient inference.

What hardware do I need to run bee locally?

It scales to your machine. A MacBook M3 Max with 64 GB of RAM runs a 17 GB Qwen3.8-27B or a 22 GB 35B-A3B model with room to spare. Smaller models such as MiMo-V2.6 9B at 7 GB run on far less, so a modern laptop with 16 to 32 GB is enough to start.

Which models work well with bee?

bee works from tiny local models to frontier APIs. The reference model is Qwen3.8-27B (oQ4e, with multi-token prediction) on oMLX; Ornith-1.5-35B-A3B and MiMo-V2.6 9B also run well here. For models that only read text, bee can route images through a small local vision model.

What are bee skills?

Skills are extra capabilities exposed as subcommands. You invoke them as bee <name>, so one binary on your PATH covers many jobs instead of a directory of separate scripts. This keeps installation to a single file while letting bee grow new abilities.

Does bee work with hosted providers like OpenRouter?

Yes. Besides local Ollama, oMLX and LM Studio, bee talks to OpenRouter, OpenAI, Anthropic and Gemini, signs in to a ChatGPT account over OAuth, and works with any OpenAI-compatible endpoint through a few lines of config. Switch at any time with the /model command, so you can mix local and cloud models.

Can bee run many agents at once, or overnight?

Yes. bee agents starts each task in its own git worktree and merges finished branches back once the verify gate passes. bee swarm and bee fan spread one task over several bees, and bee zzz runs an overnight loop that makes one small change per iteration and commits or rolls back, so you wake up to small, revertable commits.

Does bee help me understand what it changed?

Yes. bee asks the model for a one-line reason with every file change and shows it under the edit. bee explain lists what each request changed and why, and bee quiz makes you guess the reason before it shows you.

Is bee free and open source?

Yes. bee is free and open source under the MIT license, with the full source, issues, and releases on GitHub at github.com/elhenro/bee. It is pure Go and ships as a single static binary for macOS and Linux (amd64 and arm64). Windows is untested.

Klein aber oho.

German for small but mighty. One binary, any model, your machine.