Open Source AI Agents for Coding: A Buyer's Guide
9 min de lectura
Key takeaways
- Score coding agents on state tracking, task decomposition, tool-call reliability, human-approval points, and cost per merge request before trusting one with a repo.
- Run a one-day bake-off on a real backlog ticket, logging wall-clock time, tokens, human interventions, and whether the merge request passed review.
- The model, not the orchestrator, is usually the bottleneck: pick the largest open-weight LLM your token budget survives and verify its tool-calling on your repos.
- Give every agent its own git worktree and serialize tasks that touch the same files to stop overwrites and duplication.
- The Ticksly team runs thirty parallel Claude Code and Codex sessions at roughly $8 per merge request, so the real cost is coordination, not tokens.
Open source AI agents for coding are worth adopting when your Cursor Cloud Agents bill and coordination overhead grow faster than your team, but the right choice depends on which agent stays on task across multi-step repo work and which open-source LLM can sustain it. This guide scores both, then maps each pairing to its concrete failure mode: context drift, tool-call loops, or overwrite conflicts.
Which open source AI agents for coding actually stay on task?
The agents worth evaluating are the ones that survive a multi-step run in a real repository, not a single-file demo. Your shortlist should include the open source coding agents you can self-host and drive in parallel, judged against closed options like Cursor Cloud Agents and Devin only on on-task behavior, not feature count.
What "stays on task" means in a multi-step repo run
An agent stays on task when it holds the acceptance criteria across steps, stops instead of guessing when blocked, and reports state you can act on. The failure mode is well documented by teams running fleets: one Ticksly founder runs up to thirty Claude Code and Codex sessions, pays roughly $8 per merge request at API prices, and still loses track of which agent is waiting and which has spent three hours fixing the wrong thing (Dev.to, Ticksly creator). The cost is not tokens. It is the human coordination tax of knowing, per agent, whether it is on target. That is the gap Aerunit targets: continuous per-agent feedback loops that surface drift before it burns an hour (instant feedback for coding agents).
How do you score an agent before trusting it with a repo?
The five criteria
Score every candidate agent on five things. State tracking: after an hour unattended, does the agent know what it already tried, or does it re-read the repo and redo work? Task decomposition: can it split a ticket into ordered steps against acceptance criteria, or does it charge into one giant edit? Tool-call reliability: how often does a git worktree, test runner, or CLI call fail and get retried badly? Human-approval points: can you require a check-in before destructive actions, or do approval prompts arrive only after the damage? Cost per merge request: tokens burned divided by merges that stuck, not tokens burned.
The last one matters most at fleet scale. Teams running thirty parallel sessions watch token budgets vanish on agents that argue with each other or fix the wrong thing.
How to run a one-day bake-off on your own codebase
Pick one real ticket from your backlog, mid-sized and multi-file. Run each agent on it in an isolated worktree with a fresh token counter. Log four numbers: wall-clock time, total tokens, number of human interventions, and whether the merge request passed review. Repeat on two more tickets if the day allows.
Then score the same way for the orchestrator layer, because a good agent under a bad task distributor still duplicates work. We built Aerunit around that split, thinking from doing, and we track our own scoring runs in the open on our blog. Run your candidates through the identical five criteria; if a tool fails your bake-off, no landing page should overrule that.
Which agents pass the framework, and where do they fail?
Score each agent on the same four criteria: state tracking across steps, task distribution without duplication, token budget discipline, and how it handles retries. No agent passes all four cleanly. The differences are in which failure mode you inherit.
Agent-by-agent failure modes
| Agent | Passes | Primary failure mode |
|---|---|---|
| Cursor Cloud Agents | Task distribution | Fleet state lives in Cursor's UI, not your repo |
| Devin (Cognition) | Multi-step state tracking | Slow, expensive retries on wrong paths |
| Vibe Kanban | Task distribution via kanban | Coordination only; agents still wander in big repos |
| GitHub Copilot coding agent | Retry handling | Weak visibility into what parallel agents are doing |
| Aerunit | State tracking, task distribution, retries | Newer tool, smaller community of battle reports |
The overwrite and duplication problem is the one that bites hardest. Teams running several agents in parallel report that "they overwrite each other's work, duplicate each other, and burn your token budget arguing about who is right" (Second Shift's writeup of running four coding agents at once). Aerunit attacks this directly: it assigns tasks, tracks state per agent, and retries against acceptance criteria instead of letting a drifted agent run for three hours on the wrong thing. The trade-off is honest: Devin has more proven multi-step endurance, and Cursor's distribution is more polished. Aerunit's edge is that the orchestration layer is yours, and the guides document the failure modes rather than hide them.
What is the best open-source LLM for agentic coding?
Context window and tool-calling are the real gates
An agent loop is mostly tool calls: read a file, edit it, run tests, read the failure, retry. A model that handles a single-shot edit fine can still fall apart here, because each step compounds. Two capabilities decide whether it stays on task: reliable structured tool-calling (no malformed JSON, no skipped arguments) and a context window large enough to hold the acceptance criteria, the diff history, and the test output at once. Models that fail either one start wandering: they re-read files they already changed, duplicate work, or drift to a neighboring repo.
Small models: the bottleneck is the model, not the orchestrator
Teams running swarms on local nodes often blame the orchestrator first. The bottleneck is usually the model. A small open-weight model loses the thread across multiple steps, and no amount of task distribution or retries fixes that. Pick the largest open-weight model your token budget survives, verify its tool-calling on your actual repos before scaling the fleet, and score the pairings the same way you score agents: by reviewing the merge requests they produce (how to review agent PRs).
Which agent and model pairings work, and what breaks each one?
Pairings and their failure modes
Pairing matters more than either choice alone. A capable orchestrator running a small local model drifts mid-task: it loses context across steps and starts editing the wrong files. One Reddit thread on orchestration tools for local models puts it plainly: "The real bottleneck isn't usually the orchestrator though - it's whether your small model can actually maintain context and make good decisions across multiple steps" (reddit.sentinel-team.org).
Three patterns to expect:
- Frontier hosted model + heavyweight agent. Strongest on-task performance, highest token burn. Failure mode: cost creep on retries when acceptance criteria are vague.
- Small local model + heavyweight agent. Cheap runs, but the agent's prompt structure can't compensate for context loss. Mitigation: shorter tasks, stricter acceptance criteria, one repo per agent.
- Small local model + lightweight agent. Fails fastest on multi-repo work; reserve it for single-file changes.
Whatever the pairing, you need fast signals when an agent wanders. That's the gap instant feedback for coding agents addresses: catch drift at the first wrong diff, not after three hours.
How do you run a fleet of parallel agents without losing track?
The practices that keep a fleet on target are the same whether you orchestrate two agents or thirty: isolate every run, distribute tasks by file ownership, track state outside the agents' heads, and gate merges behind acceptance criteria.
Git worktrees and isolation
Give each agent its own git worktree. Worktrees are cheap checkouts of the same repo, so every session works on its own branch and filesystem without stepping on the others. This is the baseline fix for agents overwriting each other's work and duplicating effort. On a multi-repo team, one worktree per task per repo, named after the task, is the whole system. When two tasks touch the same files, serialize them rather than hoping the agents coordinate.
Approval prompts and acceptance criteria
Split the thinking from the doing. You write the task, the acceptance criteria, and the boundaries; the agent executes inside them. Every task gets a written definition of done, checked before a merge request opens. Anything destructive or ambiguous routes through an approval prompt instead of auto-running. Without that gate, one agent left alone for an hour becomes a confident intern doing the wrong thing, and your token budget pays for the detour.
What does a parallel agent fleet actually cost?
Anchor the math on the Ticksly numbers: their three-person team runs up to thirty Claude Code and Codex sessions on their own servers, paying roughly $8 per merge request at API prices, with humans providing tasks and direction (their writeup). Ten merge requests a day is $80; a month of that rivals your Cursor Cloud Agents bill, except you keep the orchestration layer.
The lever is token budget per task, not per seat. Cap retries, scope each agent to one worktree, and reject runs that blow their allocation before they merge. Open-source agents like Vibe Kanban expose the run loop, so you can enforce those caps in your own daemon rather than trusting a vendor's defaults.
That cost control is the real argument for self-hosting, more than the per-token savings.
Open source agents or Cursor Cloud Agents and Devin: when does each win?
Hosted options win when your tasks are short, isolated, and one-repo at a time. Cursor Cloud Agents handle a single well-scoped merge request without you owning a daemon, worktrees, or retries. Devin suits work you can describe fully up front and review once.
Self-hosted open source agents win once you run a real fleet: multi-repo task distribution, state tracking across sessions, and a token budget you control instead of renting per-run. The Ticksly team's thirty parallel sessions at roughly $8 per merge request in API costs is the honest trade: you pay in orchestration overhead and save on coordination, not on tokens.
If your bottleneck is knowing which agent is waiting and which is wrong, hosted tools are the wrong layer. That is the gap Aerunit targets.
FAQ
What are the best AI agents for vibe coding on my own projects?
For solo projects, pick agents that survive multi-step runs in a real repo, not single-file demos. Vibe Kanban handles task distribution, while Aerunit tracks per-agent state and retries against acceptance criteria. Score candidates on state tracking, tool-call reliability, and cost per merge request by running a one-day bake-off on one of your actual backlog tickets before committing.
Can I run coding agents on a local or self-hosted LLM, and will it hold up?
Yes, but the model is usually the bottleneck, not the orchestrator. Small open-weight models lose the thread across multiple steps and start editing the wrong files, and no amount of task distribution fixes that. Pick the largest open-weight model your token budget survives, verify its structured tool-calling on your actual repos, then use shorter tasks with stricter acceptance criteria to compensate.
How many parallel coding agents can one developer realistically supervise?
The Ticksly founder runs up to thirty Claude Code and Codex sessions with a three-person team, paying roughly $8 per merge request at API prices. The limit is not tokens but the coordination tax: knowing which agent is waiting and which has spent three hours fixing the wrong thing. Continuous per-agent feedback loops are what make the upper end survivable.
How do I stop multiple agents from overwriting each other's work in the same repo?
Give every agent its own git worktree, so each session works on an isolated branch and filesystem. When two tasks touch the same files, serialize them rather than hoping the agents coordinate. Distribute tasks by file ownership, track state outside the agents' heads, and gate every merge behind written acceptance criteria checked before the merge request opens.