Skip to main content
AI

jcode: A Rust Coding Agent for Multi-Agent Workflows

jcode by Jeremy Huang is a Rust coding-agent harness: under 10MB per session, sub-50ms startup, server-managed agent swarms. My take for production fleets.

Luca Berton

· The Production AI Expert

Published ·8 min read

For two years the interesting question in agentic coding was which model is best at writing code. In 2026 the model gap has narrowed enough that the question has shifted somewhere more unglamorous, and in my experience far more decisive: how do you run many agents at the same time, cheaply, on the hardware you actually have?

That is the problem jcode is built for. It is a high-performance coding-agent harness written in Rust, created by Jeremy Huang (1jehuang), and — as of this writing — one of the more interesting projects in the space: roughly 22,500 GitHub stars, MIT-licensed, YC-backed, and shipped with a genuinely serious multi-agent story baked into the core rather than bolted on. It is built for “heavy multi-agent dev workflows,” and for a Production AI operator that phrase is the whole pitch.

Why a Rust harness matters for multi-agent

Most coding agents run as one process per session. Scale to dozens of concurrent agents — a coordinator spawning workers, one per sub-task — and two costs dominate: memory and startup latency. Every agent process carries the weight of the host language runtime and, in several cases, an embedded browser or a full web stack.

Here is the comparison the project publishes for a single agent session:

ToolPer-session RAMTime to first input
jcode (Rust)~3–5 MB~19–34 ms
opencode~30–40 MB~50 ms
gemini-cli~100–150 MB~200–300 ms
cursor-agent~160 MB~300 ms
claude-code~220–318 MB~500 ms

(jcode’s own benchmark note that these are not independently verified. Treat them as directional, not gospel.)

The number that matters is not the absolute figure. It is the multiplication. On a machine with a fixed memory budget, per-session RAM is your headroom for parallelism. Roughly 25 MB per agent on the heaviest column is the difference between running a handful of agents and running a full swarm on the same box. Startup latency is the difference between an agent that feels responsive when you fan out 20 of them, and one that does not. For a fleet operator, density and cold-start time are the economics of the whole system — everything else is overhead.

The project is candid about a related trade-off: on a small single-shot task the per-message latency gap is small, because the first turn dominates. The Rust win shows up when you scale, which is exactly the regime that matters in production.

Swarms as a core primitive, not a plugin

The multi-agent layer is where jcode earns its reputation. It is server-managed: a lightweight server process owns a registry of agents, so a coordinator can spawn a team of workers — one per sub-task — without the coordinator process holding all the state in memory. A 20-agent swarm that would exhaust a single process instead distributes its state across processes.

A few details make this more than a novelty:

  • Messaging between agents — point-to-point (DM), broadcast, and repo-scoped, so a coordinator can hand a sub-task to a worker and get the result back.
  • Autonomous sub-swarms — a sub-team can spawn its own children, coordinated by a sub-coordinator, while the parent just receives the final result. This is how you build depth into a research or refactoring workflow.
  • Bounded recursion — agents cannot spawn other agents recursively, which prevents the unbounded fork-bomb that naive multi-agent designs produce.
  • Conflict detection — when multiple agents edit the same files, the system flags the conflict instead of silently clobbering one agent’s work.
  • Isolation — the default is a sandbox; you can opt into a per-agent git worktree when you want real filesystem isolation.

What I like most about the design is the restraint: it is a coordinator/worker topology with sane defaults, not a free-form agent graph where anything can talk to anything. For production that is the difference between something you can reason about and something you can only debug after it misbehaves.

Persistent semantic memory

Every coding agent has an amnesia problem: it forgets your project between sessions. jcode solves this with a semantic memory graph — a local, persistent, structured store of project knowledge, not a flat transcript.

The interesting bits for an operator:

  • Local embeddings (all-MiniLM-L6-v2 by default) — no cloud dependency, which matters for private code.
  • Structured types — insight, decision, gotcha, pattern, todo — so memory is queryable, not just a blob to re-read.
  • Sidecar validation — a secondary model checks candidate memories before they are written, which suppresses the low-value and false entries that plague naive memory systems.
  • Merge and consolidation — the graph collapses near-duplicates on a schedule, so memory does not grow unbounded over time.
  • Privacy filtering — an opt-out keeps sensitive content out of the store.

The failure mode most agents hit in week two is “memory is stale, contradictory, or full of noise.” The consolidation-and-validation design is exactly the part I would look for before trusting a memory system in a long-running production agent.

Self-dev mode: the agent edits itself

The most aggressive feature is self-dev mode. The agent can modify its own source, rebuild itself, and reload — a closed loop of self-modification. In this mode, memory is stored inside the source tree (not ~/.jcode), so it is committed, versioned, and diffable alongside the code.

I would not call this production-ready for shared infrastructure. But it is the most honest articulation of the endgame anyone has shipped so far: agents that can improve their own harness, with the changes subject to the same review (a diff) you already apply to code. That is the property that matters — the change is inspectable — even when the loop itself is not yet safe to leave unattended.

jcode-bench: an uncontaminatable benchmark

If you care about evaluating agents in production, this is the section that should make you sit up. jcode-bench is built on a git-based, fully-reproducible, uncontaminatable problem set.

The design is the point. Standard benchmarks are increasingly polluted — model training data leaks in, answers get memorized. jcode-bench avoids that by generating problems at runtime: a fresh problem is produced each run, so nothing can be pre-memorized. Problems are parameterized, scored with a mix of exact-match and LLM-as-judge, and support multi-agent runs with token/latency tracking and a 100% reproducibility goal (a seed-based RNG means the same run reproduces the same results).

That is a meaningfully more credible evaluation substrate than most of what is floating around, and it is the kind of rigor I expect to see in production agent pipelines. It is also a nice sign of the project’s maturity: the maintainers are thinking about how to measure the thing, not just build it.

Providers, routing, and interop

Under the hood jcode is deliberately provider-agnostic — 30+ providers including Claude, OpenAI Codex, OpenAI, Anthropic, Google, OpenRouter, Ollama, vLLM, and more, with automatic routing, retry, and an account router that falls back to another account of the same provider when one hits a limit. That last bit is quietly useful in production: a single rate-limited key no longer stops your fleet.

Two more production-relevant pieces:

  • OAuth for Claude and OpenAI Codex — login with an existing subscription instead of an API key.
  • MCP support — Model Context Protocol tools, so jcode composes with the same tool ecosystem the rest of the agent world is standardizing on.

For a deployment, “works with my existing provider keys and MCP servers” is a lower-friction entry than “re-platform onto one vendor.”

The terminal experience

Because this is a TUI first, a few quality-of-life items stand out. The terminal renders inline images (PNG, JPG, GIF, SVG, and many more) directly in the scrollback via the sixel and kitty protocols, with an ASCII fallback — so an agent that returns a screenshot or a chart shows it in place. Inline LaTeX renders math in chat. Diff visualization is on by default and reviewable in the same window. And a resume menu plus a 2-second idle timeout make long sessions cheap to pick back up.

None of this is a differentiator on its own, but the cumulative effect is an interface that does not fight you when an agent is doing real, multi-hour work.

My assessment

jcode is ambitious in a good way: it is not chasing the “best single chat window” race, it is chasing the “run a fleet of agents, cheaply and coherently” problem — which is the one that actually constrains production.

What is impressive:

  • Rust core that is measurable, not marketing — per-session memory in the single-digit MB range is a real density win for parallelism
  • Swarms as a first-class primitive — server-managed, bounded, with conflict detection and isolation defaults
  • Memory that validates and consolidates itself — the hard part most agents skip
  • An uncontaminatable benchmark — a serious signal that the project understands evaluation
  • Provider-agnostic with account fallback and MCP — low-friction entry for a production fleet

What gives me pause:

  • The benchmark numbers are self-reported — jcode itself flags that they are “not independently verified,” so take the headroom figures as directional and measure on your own hardware
  • This is very active — the project ships fast, so expect breaking changes; pin versions in a fleet
  • Self-dev mode is not production-safe yet — powerful, and inspectable via diff, but not something to leave unattended on shared infra
  • A Rust contribution barrier — great for performance, harder for the people who want to extend it
  • 22.5k stars is real momentum, but the project is young — the multi-agent and memory designs are more battle-tested in demos than in long-running production; your first task should be a controlled pilot, not a fleet

For teams already running — or planning to run — many coding agents in parallel, jcode is the most credible “what does multi-agent look like when it is engineered for density” reference I have seen. For everyone else, start with a single-session trial and watch the swarm story before you commit.


Related Resources:

Frequently Asked Questions

What is jcode?

jcode is a high-performance coding-agent harness written in Rust by Jeremy Huang. It runs coding agents (Claude, Codex, Ollama, and more) with very low per-session memory, and is built for heavy multi-agent workflows.

Is jcode free?

Yes. jcode is open source under the MIT license. Running it costs only your underlying LLM provider — or nothing, if you run a local model through Ollama.

Why Rust for a coding agent?

The Rust core keeps per-session memory to single-digit MB and cold-start under 50ms. That density is what lets you run many agents in parallel on the same machine — the constraint that matters most for multi-agent fleets.