# jcode

> Rust terminal coding agent built for low memory, parallel swarms and passive semantic memory

- Category: AI Coding / Autonomous Coding Agents
- Language: Rust
- Licence: MIT
- Repository: https://github.com/1jehuang/jcode
- Website: https://jcode.sh
- Canonical page: https://ai-tldr.dev/tools/jcode/
- Updated: 2026-04-30

## In short

jcode is a coding agent harness written in Rust, run as a terminal UI, as a one-shot command, or as a persistent background server that several clients attach to. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Rust and licensed MIT.

## Overview

jcode is a coding agent harness written in Rust, run as a terminal UI, as a one-shot command, or as a persistent background server that several clients attach to. Its stated design goal is resource efficiency for multi-session work: the README publishes a per-session memory comparison against other agent CLIs, measuring 27.8 MB PSS with local embedding disabled and 167.1 MB with it on, against figures it reports in the hundreds of megabytes for the tools it compares.

Swarm mode is the headline feature. Two or more agents in the same repository are managed by the server, which tells agent B when agent A edits a file that B has already read, so the code does not shift silently under an in-flight session. Agents can direct-message each other, broadcast to the server or to the repository, and spawn their own sub-swarms — turning the first agent into a coordinator and the spawned ones into workers, headed or headless.

Memory is passive by default. Each turn is embedded as a semantic vector and queried against a memory graph by cosine similarity, so relevant history is recalled without the model spending tokens on explicit memory tool calls. Memories are extracted by a side agent on semantic drift, after K turns or at session end, and consolidated in the background; explicit memory tools and RAG-style search over past sessions are available when you want to drive it by hand.

A built-in `browser` tool drives Firefox through the Firefox Agent Bridge with a full action set — open, snapshot, click, type, fill_form, select, screenshot, scroll, upload, eval — and the provider architecture leaves room for other backends. Logins cover subscription-backed OAuth as well as direct API keys, so you can use plans you already pay for.

## What it does

- Interactive TUI, non-interactive `jcode run`, and a persistent `serve` / `connect` client-server mode
- Swarm mode: server-managed collaboration between agents in one repo, with file-conflict notifications, DMs and broadcasts, and agent-spawned sub-swarms
- Passive semantic memory — turns embedded into a memory graph, recalled by similarity, extracted and consolidated by a side agent
- Built-in Firefox browser tool with a 16-action surface, set up via `jcode browser setup`
- Built-in OAuth login flows for Claude, OpenAI/Codex, Gemini, GitHub Copilot, Azure, Alibaba, Fireworks, Novita, MiniMax, Meta Muse, LM Studio, Ollama and any OpenAI-compatible endpoint
- Self-updating with ancestry checks — `/update` in the TUI or `jcode update`, refusing to downgrade a dev build it cannot verify
- Voice input through `jcode dictate`, using your own speech-to-text command rather than a bundled stack

## Getting started

One install script, then the TUI. Binaries are published for Linux, macOS and Windows.

1. Install

   The install script is the quickest route; Homebrew and a source build are also supported.

```bash
# macOS & Linux
curl -fsSL https://jcode.sh/install | bash

# macOS with Homebrew
brew tap 1jehuang/jcode
brew install jcode

# Windows 11 (PowerShell 5.1+)
irm https://jcode.sh/install.ps1 | iex
```

2. Connect a provider

   Log in with a subscription you already have, or point it at a local server.

```bash
jcode login --provider claude
jcode login --provider openai
jcode login --provider ollama
```

3. Run it

   Launch the TUI, or drive it non-interactively; sessions get memorable names you can resume.

```bash
jcode                       # TUI
jcode run "say hello"       # one-shot
jcode --resume fox          # resume a session
jcode serve                 # background server
jcode connect               # attach a client
```

4. Enable the browser tool

   Check the backend, run setup once, and the model can then call the browser tool directly.

```bash
jcode browser status
jcode browser setup
```

5. Build from source

   A Rust toolchain is all you need.

```bash
git clone https://github.com/1jehuang/jcode.git
cd jcode
cargo build --release
scripts/install_release.sh
```

## When to use it

- Keep many agent sessions open in one repository without a machine's memory becoming the limit
- Split a large change across parallel agents and let the server reconcile who touched which file
- Carry context between sessions without paying for explicit memory tool calls on every turn
- Drive a coding agent from a script or another program through the non-interactive run mode and the TypeScript SDK

## Version history

- 2026-04-30 v0.11.6: Covered by AI/TLDR while trending on GitHub: this release added swarm mode for parallel agents, semantic-vector memory and a wide set of provider integrations.
