30th November, 2026
Give an AI coding agent 256 MiB of memory and a single CPU. We did, with nine open-source agent harnesses on the same model and the same 13 coding tasks. Four of them could not finish a single task: the kernel killed every one of their runs for running out of memory.
Loop passed 97% of its runs at that limit, using a median of 103 MiB per task. Across all 2,340 runs in the benchmark, it was the only harness that never ran out of memory.
Loop is the open-source agent runtime we built at Soket AI. It's light enough to run many agents on modest hardware, and strict enough that every tool call an agent makes is checked against a policy and recorded before it runs.
Every AI agent runs the same loop: call the model, run the tools it asks for, add the results to the conversation, repeat. The program that runs this loop is the harness.
The harness sits between the model and your machine, so two things it does shape everything else:
Most harnesses today are written in TypeScript or Python and designed for one developer on one laptop. We built Loop in Rust for a different setting.
We compared Loop with eight open-source coding-agent harnesses: DeepSeek Harness, OMP, Goose, Pi, Cline, Kilo Code, Hermes and OpenCode.
Each harness ran with its defaults and with tool approvals switched off, so that no run waited on a human. For Loop, that means the permission gate was set to allow all tool calls and the sandbox was off. These are the numbers for the runtime itself, not for its safety features. We describe those features below.
The in-house benchmark ran on a pre-release build of Loop v0.7.0 (commit 1dc7ef4). The public benchmarks further down ran on the v0.7.0 release.
Loop's median peak memory was 103 MiB per task. The next lowest, Pi, used 166 MiB (1.6 times as much), and the other seven used 250 to 937 MiB (up to 9.1 times as much).
What that means in practice: on a machine with 16 GiB to spare, peak memory alone would allow about 159 Loop sessions, against about 43 for the median harness in our test. (This is illustrative arithmetic on peak memory; real capacity also depends on CPU, the model server and the tasks.)
It isn't just Rust. Goose is also written in Rust and used 2.4 times Loop's memory. Pi is written in TypeScript and used less memory than Goose. The language helps, but the design choices described under "What keeps Loop lean" matter more.
Three harnesses passed 97% of their runs at 256 MiB, but Loop's two failures there came from its turn loop, not from running out of memory. Cline, Kilo Code, Hermes and OpenCode passed 98–100% of their runs at 1024 and 2048 MiB, so their failures at 256 MiB come from the memory limit, not from the tasks.
| Harness | Passed (%) | Time (s) | CPU (s) | Peak memory (MiB) | Tokens (k) |
|---|---|---|---|---|---|
| Loop | 96.2 | 49 | 2.4 | 103 | 38 |
| DeepSeek Harness | 99.2 | 101 | 7.6 | 292 | 70 |
| OMP | 98.8 | 120 | 10.0 | 385 | 145 |
| Goose | 98.5 | 95 | 3.9 | 250 | 83* |
| Pi | 98.1 | 93 | 6.1 | 166 | 43 |
| Cline | 74.6 | 130 | 14.3 | 377 | 78 |
| Kilo Code | 73.1 | 76 | 23.7 | 750 | 202 |
| Hermes | 71.9 | 119 | 34.8 | 482 | 196 |
| OpenCode | 67.7 | 60 | 21.8 | 937 | 98 |
Passed is the share of all 260 runs. Time, CPU, memory and tokens are medians per passed task at 1024 and 2048 MiB. Time includes waiting for the model. *Goose doesn't report tokens, so we recovered them from its session database.
Loop doesn't get there by taking fewer steps. At the median, most of the other harnesses take the same number of turns and tool calls as Loop, or one to three fewer. Loop takes as many steps or slightly more; each step simply costs less.
Loop passed 96.2% of its runs (250 of 260). That is within three points of the four most accurate harnesses (DeepSeek Harness at 99.2%, OMP, Goose and Pi), and well above the four that could not run at 256 MiB (67.7–74.6%). We traced each of Loop's ten failures. None was a memory kill; all ten come from how the turn loop handles truncated model responses, unproductive loops and permission errors.
We also ran early tests of the v0.7.0 release on two public benchmarks, one run per harness, all with GLM 5.3:
On SWE-bench we know where the gap comes from. Tasks whose official fix touches two separate places failed 18.3% of the time, against 4.8% for one-place fixes, because Loop often fixed the first place and stopped. On these longer tasks Loop also took more steps (a median of 46 against 35 and 37) and used more tokens than the other two. Both point to the turn loop, and both are first on the list for the next version.
We haven't yet measured the effect of each of these on its own. The benchmark above shows the combined result.
No interpreter, no garbage collector. Loop is one native binary, compiled ahead of time with link-time optimisation. Rust's ownership model frees memory as soon as the last owner lets go, so peak memory depends on what a session is actually holding, not on when a collector decides to run. Features a deployment doesn't need, such as trace export, can be left out at compile time.
No thread per task. An agent spends most of its time waiting for the model, a web page or a command. Loop runs on Tokio, Rust's asynchronous runtime: each wait is a lightweight task that suspends until its event arrives, and many tasks share a few worker threads. Waiting costs almost nothing.
Bounded tool output, cut in the right place. One huge tool result makes every later model call more expensive, because it stays in the context. Loop caps built-in tool output at 50,000 bytes and truncates differently by tool: file reads keep the beginning; shell commands keep the end, where errors and summaries usually appear. Web downloads are capped at 2 MiB before they reach the model.
Streaming and reused connections. Model responses and tool output are passed on as they arrive, so you can interrupt a turn at any point, and consecutive model calls reuse pooled HTTP connections instead of opening new ones.
Speed matters, but an agent that reads a poisoned file or web page can be steered into doing harm. Loop treats the model as an untrusted party and constrains what it can cause.
One gate, no way around it. Tool calls from the terminal, the desktop app, print mode and MCP clients, plus permission requests from external agents, all pass the same permission gate. It checks every call in a fixed order:
read-only, ask, accept-edits, full-access, or plan (read-only until you approve the agent's plan)Out of the box, Loop runs in ask mode: reads and searches are allowed, and writes, edits and shell commands ask first.
Per-tool permissions and the sandbox are a few lines of settings.json. This project file keeps the default tool permissions and runs every tool inside a gVisor sandbox:
// .loop/settings.json
{
"toolPermissions": { "read": "allow", "write": "ask", "edit": "ask", "bash": "ask" },
"sandbox": { "mode": "local", "isolation": "full", "runtime": "runsc" }
}
Global settings live in ~/.loop/agent/settings.json. A project file only applies once you trust the project, and it can make the permission mode stricter, never looser. See the settings reference.
Fails closed. If a call needs approval and no one is there to give it, as in print mode or when Loop serves as an MCP server, the call is refused. A broken or slow hook blocks rather than allows. Permissions aren't part of a tool's definition, so a tool can't grant itself access.
A decision record for every call, written before it runs. Every allow, ask or deny names who acted, the session, the tool, the capability it needs, a short summary of its target, and a hash of its arguments, never the arguments themselves, so no secrets are stored. If the record can't be written, the call doesn't run.
A sandbox as a second layer. If a call is wrongly allowed, isolation still limits what it can reach. On Linux, tools run in a Podman container, and you choose the isolation level: runc or crun containers, gVisor, or a krun microVM, trading startup cost for strength of isolation. On macOS, shell commands run under the built-in Seatbelt sandbox: they can write only to the project and configured paths, have no network unless you enable it, and cannot reach stored credentials or the decision records.
Subagents never outrank their parent. A subagent inherits its parent's policy plus one extra layer of restriction, so it can never have more access than the agent that created it, and it acts for the same user.
External agents under the same rules. External agents such as Codex connect over the Agent Client Protocol (ACP), and their permission requests pass the same gate. One caveat: the gate can only decide the requests an external agent actually makes. Codex runs some commands without asking, and Loop sees those only after they've run. Native agents are governed more tightly than external ones today.
Soket AI builds AI for India's critical sectors, and Loop is the runtime for that work. In defence, cybersecurity, finance and government, agents have to:
Loop can also do security work itself: on CyberGym, it reproduced 9 of 10 real software vulnerabilities end to end.
orchestration feature to try it.curl -fsSL https://loop.soket.ai/install | bash
Loop is open source under Apache-2.0.