If you searched for “jcode”, you have probably seen people say it is “Claude Code, but 20 times lighter”. That is roughly right, but it hides the part that matters for beginners: what jcode actually is, and how it is different from the coding agent you may already use.
This guide explains it in plain English. By the end you will know what jcode is, the problem it solves, why it is faster, how to install it, and how to use it on a real Java or Python project.
What is jcode?
jcode is a free, open-source AI coding agent that runs in your terminal, much like Claude Code, but built to use far less memory so you can run many agents at once.
It does not bring its own AI model. It is the program around a model you already use, such as Claude, GPT, Gemini or a free local model.
The short version:
- What it is: a terminal app that reads your code, edits files and runs commands for you.
- What makes it different: it is written in Rust and is very light. Its own benchmarks show it opening in milliseconds and using a fraction of Claude Code’s memory.
- Who it is for: developers who want to run several AI agents in parallel on one machine.
- Price: free, under the MIT license. You still pay for the AI model you plug in, unless you run a local one.
First: the brain and the body
If you are new to coding agents, read what is an AI coding agent first. The one idea you need from it is this:
- The model is the brain. Claude, GPT, Gemini, DeepSeek or a local model through Ollama does the thinking.
- The harness is the body. It is the program that gives the brain hands: it reads files, runs commands, keeps the conversation and draws the screen.
Claude Code, Codex CLI, OpenCode and jcode are all harnesses. When you compare them, you are mostly comparing bodies, not brains. Put the same model inside two harnesses and the thinking is the same. Speed, memory use, features and price are what change.
“jcode doesn’t make the AI smarter. It makes the body around the AI much lighter.”
How is jcode different from Claude Code?
jcode does the same job as Claude Code. The difference is how light it is, which models it can use, and that it is open source. Here are the four terminal agents beginners compare most often.
| jcode | Claude Code | Codex CLI | OpenCode | |
|---|---|---|---|---|
| Made by | Jeremy Huang (1jehuang), Y Combinator Summer 2026 | Anthropic | OpenAI | The SST / Anomaly team |
| Open source? | Yes, MIT | No, Anthropic’s commercial terms | Yes, Apache-2.0 | Yes, MIT |
| Written in | Rust | TypeScript | Rust | TypeScript |
| Which AI models? | Claude, OpenAI, Gemini, Copilot, Ollama, LM Studio, OpenRouter, DeepSeek and any OpenAI-compatible API | Anthropic’s Claude models | OpenAI models first; other OpenAI-compatible APIs with setup | 75+ providers |
| Speed and memory | Lightest of the group | Heavy per session | Light | Heavy per session |
| Standout idea | Many agents in parallel (swarm), semantic memory, can improve itself | Polished, deeply tuned for Claude | Sandboxing and approval policies | Huge provider choice, desktop app |
The three differences that matter for a beginner:
- Weight. Claude Code is a TypeScript app. jcode is a compiled Rust program, so each extra session costs megabytes instead of hundreds of megabytes.
- Freedom of model. Claude Code is built for Claude. jcode can log in to Claude, OpenAI, Gemini, GitHub Copilot, or a free local model through Ollama or LM Studio.
- Built for many agents. Claude Code is usually one agent per terminal. jcode is designed so 10 or 20 agents can work in one repo and tell each other what they changed.
What does not change: the intelligence. If you run the same Claude model inside jcode or inside Claude Code, the same model writes the code.
The problem jcode solves
Most coding agents are too heavy to run many at once, and jcode exists to fix that. Its homepage says it is built for demanding workflows “with many agents working in parallel”.
Here is the problem in plain terms:
- Working with one AI agent at a time is slow. While it fixes a bug, you wait.
- The obvious fix is to run several agents: one on the bug, one writing tests, one updating docs.
- In a heavy harness, each session takes hundreds of megabytes of memory and several seconds to start.
- Open 10 or 20 of them and an ordinary laptop slows down or runs out of memory. So most people give up on parallel work.
jcode attacks step 3. By the jcode team’s own measurements, an extra session costs about 10 MB instead of about 200 MB, and it is ready for input in under 50 milliseconds. That makes 20 agents on one laptop practical. The founder’s Y Combinator launch post shows exactly that: 20 agents running in parallel as his everyday workflow.
A second, smaller problem it solves is lock-in. Claude Code is built for Claude models. jcode lets you plug in the model you already pay for, or a free local one.
Why is jcode faster?
By the jcode team’s own numbers, an extra jcode session uses about 20 times less memory than Claude Code, and you can start typing about 72 times sooner.
In headless mode (no screen at all), the homepage lists 3.5 MB per extra jcode session, against 168.6 MB for Claude Code.
Where the speed comes from, in plain English:
- It is written in Rust. Rust compiles to a native program. Claude Code and OpenCode are TypeScript apps, which carry a JavaScript runtime that uses memory before any work starts.
- One server, many sessions. jcode can run as one background server (
jcode serve) that terminal windows attach to (jcode connect). The swarm features run through this server too, so extra agents are cheap. - Its own screen drawing. The README says the interface renders “at over a thousand fps”, and jcode ships its own diagram renderer instead of relying on a browser.
- Heavy parts are optional. The memory feature uses a small local embedding model. The README shows one session at 167.1 MB with it on and 27.8 MB with it off, against 386.6 MB for Claude Code.
jcode’s key features, explained simply
Besides speed, jcode adds a few features most beginners have not seen in other agents.
| Feature | What it does | Why you should care |
|---|---|---|
| Swarm | Several agents work in one repo through a shared server. An agent is told when a file it read was edited by another agent, and agents can send each other messages. | Split one job (backend, tests, docs) across agents without them overwriting each other blindly. Turn it on with /swarm. |
| Memory | Each turn is stored as a “semantic vector”, a numeric fingerprint of its meaning. Later, jcode finds related past turns by similarity and brings them back. | You re-explain your project less often. Turn it on with /memory. See what are embeddings for how this works. |
| Auto-poke | If the agent stops while items on its to-do list are unfinished, jcode nudges it to keep going. | Long tasks finish instead of stopping halfway. |
| Self-dev mode | The agent can edit jcode’s own source code, build it, test it and reload the new version. | Advanced. Interesting if you want to customise the tool itself. |
| Side panel | A panel beside the chat shows a file, a diff, or a diagram that updates live. | Watch a file change, or ask for an architecture diagram. Toggle it with Alt+M. |
| Many providers | Built-in login for Claude, OpenAI, Gemini, GitHub Copilot, Azure, Ollama, LM Studio and more. Any OpenAI-compatible API works too. | Use what you already pay for, or a free local model. |
jcode also supports AGENTS.md project instructions, skills, MCP servers, and resuming sessions you started in Codex, Claude Code, OpenCode or pi.
How to install jcode
Installing jcode takes one command, plus a login to the AI model you want to use. It runs on Linux, macOS (Apple Silicon and Intel), Windows 11 (native or WSL2), and Termux on Android.
Step 1: Install
macOS or Linux:
curl -fsSL https://jcode.sh/install | bash
Windows 11 (PowerShell 5.1 or newer):
irm https://jcode.sh/install.ps1 | iex
macOS with Homebrew:
brew tap 1jehuang/jcode
brew install jcode
From source (needs Rust and Cargo):
git clone https://github.com/1jehuang/jcode.git
cd jcode
cargo build --release
scripts/install_release.sh
Tip for beginners: curl ... | bash runs a script from the internet. If you want to check it first, open jcode.sh/install in your browser and read it.
Step 2: Log in to a model provider
Run jcode login to see every option, or pick one directly:
jcode login --provider claude # Claude
jcode login --provider openai # OpenAI / ChatGPT
jcode login --provider gemini # Google Gemini
jcode login --provider copilot # GitHub Copilot
jcode login --provider ollama # free local models via Ollama
On a server with no browser, add --no-browser. jcode then prints the login link instead of opening it. Then check that everything works:
jcode auth-test --all-configured
Step 3: Start it in your project
cd my-project
jcode
This opens the full-screen terminal interface. Type what you want in plain English and press Enter.
To uninstall (keeps your config, logins and sessions; add --purge to delete those too, or --dry-run to preview):
curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/uninstall.sh | bash -s -- --yes
How to work with jcode every day
You talk to jcode in plain English and steer it with a handful of slash commands and shortcuts.
| Command | What it does |
|---|---|
jcode |
Open the interactive interface in the current folder |
jcode run "..." |
Run one prompt without the interface, then exit |
jcode --resume fox |
Resume a past session by its memorable name |
jcode serve, then jcode connect |
Run a background server and attach terminal windows to it |
/model |
Switch the AI model (Ctrl+Tab cycles models too) |
/diff |
Change how code changes are shown |
/todos |
Show the agent’s to-do list |
/review, /test |
Ask for a code review, or run verified testing |
/commit |
Commit the changes to Git |
/compact, /clear, /rewind |
Shrink, clear or roll back the conversation |
/swarm, /memory |
Turn swarm or memory on or off |
/help |
The full list for your installed version |
Two keys worth learning on day one: Enter sends your message even while the agent is working, and Shift+Enter queues it until the agent finishes its turn.
Give your project an instructions file
Create AGENTS.md in the root of your repo. jcode reads it as standing instructions for that project. For example:
# Project notes for AI agents
- Java 21, Maven. Run tests with: mvn -q test
- Use records for DTOs. No Lombok.
- Never edit files under src/main/resources/db/migration.
Instructions for every project go in ~/AGENTS.md.
Five habits that make any coding agent work better
- Commit before you start. Then
git diffshows exactly what the agent changed, andgit restore .undoes it. - Ask for small, testable steps. “Add one endpoint and a test” beats “build the whole app”.
- Tell it how to check its work. “Run
mvn testand fix failures” gives it a goal it can verify. - Read the diff. The agent is fast, not always right.
- Keep secrets out. Don’t paste API keys into prompts or commit
.envfiles.
Hands-on: build your first app with jcode
In this tutorial you ask jcode to build a small command-line to-do app, then check its work. Pick your language with the tabs.
1. Make a project folder and commit it
mkdir todo-app && cd todo-app
git init
echo "# Todo app" > README.md
git add . && git commit -m "start"
2. Start jcode and give it the task
Run jcode, then type the prompt for your language.
Create a single-file Java 21 command-line to-do app called TodoApp.java.
Commands: add <task>, list, done <number>. Save tasks in tasks.txt.
Print friendly messages for a missing task, a bad number, or an unknown command.
No external libraries. Then run it with java TodoApp.java to show that each command works.Create a single-file Python 3.10+ command-line to-do app called todo.py.
Commands: add <task>, list, done <number>. Save tasks in tasks.txt.
Print friendly messages for a missing task, a bad number, or an unknown command.
Standard library only. Then run it with python todo.py to show that each command works.jcode writes the file, runs it, reads the output and fixes any mistakes it finds. Your code won’t match ours word for word, because AI output varies. Here is a reference version, written and tested for this article, so you can compare.
3. Compare with the reference
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class TodoApp {
private static final Path FILE = Path.of("tasks.txt");
public static void main(String[] args) throws IOException {
if (args.length == 0) {
printUsage();
return;
}
List<String> tasks = load();
switch (args[0]) {
case "add" -> {
if (args.length < 2) {
System.out.println("Please give a task, for example: add \"Buy milk\"");
return;
}
String task = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
tasks.add(task);
save(tasks);
System.out.println("Added: " + task);
}
case "list" -> {
if (tasks.isEmpty()) {
System.out.println("No tasks yet.");
}
for (int i = 0; i < tasks.size(); i++) {
System.out.printf("%d. %s%n", i + 1, tasks.get(i));
}
}
case "done" -> {
Integer index = parseIndex(args, tasks.size());
if (index == null) {
return;
}
String removed = tasks.remove((int) index);
save(tasks);
System.out.println("Done: " + removed);
}
default -> printUsage();
}
}
private static Integer parseIndex(String[] args, int size) {
if (args.length < 2) {
System.out.println("Please give a task number, for example: done 1");
return null;
}
try {
int number = Integer.parseInt(args[1]);
if (number < 1 || number > size) {
System.out.println("No task with number " + number);
return null;
}
return number - 1;
} catch (NumberFormatException e) {
System.out.println("'" + args[1] + "' is not a number");
return null;
}
}
private static List<String> load() throws IOException {
if (!Files.exists(FILE)) {
return new ArrayList<>();
}
return new ArrayList<>(Files.readAllLines(FILE));
}
private static void save(List<String> tasks) throws IOException {
Files.write(FILE, tasks);
}
private static void printUsage() {
System.out.println("Usage: java TodoApp.java add <task> | list | done <number>");
}
}import sys
from pathlib import Path
FILE = Path("tasks.txt")
def load() -> list[str]:
if not FILE.exists():
return []
return FILE.read_text(encoding="utf-8").splitlines()
def save(tasks: list[str]) -> None:
FILE.write_text("\n".join(tasks) + ("\n" if tasks else ""), encoding="utf-8")
def parse_index(args: list[str], size: int) -> int | None:
if len(args) < 2:
print("Please give a task number, for example: done 1")
return None
try:
number = int(args[1])
except ValueError:
print(f"'{args[1]}' is not a number")
return None
if number < 1 or number > size:
print(f"No task with number {number}")
return None
return number - 1
def main(args: list[str]) -> None:
if not args:
print("Usage: python todo.py add <task> | list | done <number>")
return
tasks = load()
command = args[0]
if command == "add":
if len(args) < 2:
print('Please give a task, for example: add "Buy milk"')
return
task = " ".join(args[1:])
tasks.append(task)
save(tasks)
print(f"Added: {task}")
elif command == "list":
if not tasks:
print("No tasks yet.")
for i, task in enumerate(tasks, start=1):
print(f"{i}. {task}")
elif command == "done":
index = parse_index(args, len(tasks))
if index is None:
return
removed = tasks.pop(index)
save(tasks)
print(f"Done: {removed}")
else:
print("Usage: python todo.py add <task> | list | done <number>")
if __name__ == "__main__":
main(sys.argv[1:])4. Try it yourself
# Java 11 and newer run a single source file directly, no build step
java TodoApp.java add Buy milk
java TodoApp.java list
java TodoApp.java done 1python todo.py add Buy milk
python todo.py list
python todo.py done 1After add and then list, you should see:
Added: Buy milk
1. Buy milk
5. Review and keep going
Run git diff to see every change jcode made. Then try a follow-up prompt such as “Add unit tests for add, list and done, and run them”. When you are happy, type /commit.
Bonus: run several jcode agents from your own code
jcode run "<prompt>" runs one prompt without the interface, so any program can start jcode agents, including several at once. This is the do-it-yourself version of what jcode is built for: many agents in parallel, each in its own folder.
The programs below start one agent per folder, run them all at the same time, and print what each one reported. The Java version uses Java 21 virtual threads. The Python version uses a thread pool.
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
public class JcodeRunner {
/** Runs one non-interactive jcode prompt inside projectDir and returns what it printed. */
public static String runJcode(Path projectDir, String prompt, long timeoutMinutes)
throws IOException, InterruptedException {
ProcessBuilder builder = new ProcessBuilder(List.of("jcode", "run", prompt));
builder.directory(projectDir.toFile()); // the agent works in this folder
builder.redirectErrorStream(true); // merge errors into normal output
Process process = builder.start();
// Read the output on another thread so a long run cannot block us.
CompletableFuture<String> output = CompletableFuture.supplyAsync(() -> readAll(process.getInputStream()));
if (!process.waitFor(timeoutMinutes, TimeUnit.MINUTES)) {
process.destroyForcibly();
throw new IllegalStateException("jcode did not finish within " + timeoutMinutes + " minutes");
}
if (process.exitValue() != 0) {
throw new IllegalStateException("jcode exited with code " + process.exitValue() + ":\n" + output.join());
}
return output.join();
}
private static String readAll(InputStream in) {
try (in) {
return new String(in.readAllBytes(), StandardCharsets.UTF_8);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public static void main(String[] args) throws Exception {
// One agent per folder, all running at the same time (Java 21 virtual threads).
List<Path> folders = List.of(Path.of("service-a"), Path.of("service-b"), Path.of("service-c"));
String prompt = "Run the tests. If any fail, fix them and run the tests again.";
try (ExecutorService pool = Executors.newVirtualThreadPerTaskExecutor()) {
List<Future<String>> results = folders.stream()
.map(dir -> pool.submit(() -> runJcode(dir, prompt, 15)))
.toList();
for (int i = 0; i < folders.size(); i++) {
System.out.println("=== " + folders.get(i) + " ===");
System.out.println(results.get(i).get());
}
}
}
}Run it with java JcodeRunner.java from the folder that holds service-a, service-b and service-c.
import subprocess
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
def run_jcode(project_dir: Path, prompt: str, timeout_minutes: int = 15) -> str:
"""Run one non-interactive jcode prompt inside project_dir and return what it printed."""
result = subprocess.run(
["jcode", "run", prompt],
cwd=project_dir, # the agent works in this folder
capture_output=True,
text=True,
timeout=timeout_minutes * 60, # raises subprocess.TimeoutExpired if it runs too long
)
if result.returncode != 0:
raise RuntimeError(f"jcode exited with code {result.returncode}:\n{result.stdout}{result.stderr}")
return result.stdout
if __name__ == "__main__":
# One agent per folder, all running at the same time.
folders = [Path("service-a"), Path("service-b"), Path("service-c")]
prompt = "Run the tests. If any fail, fix them and run the tests again."
with ThreadPoolExecutor(max_workers=len(folders)) as pool:
outputs = pool.map(lambda folder: run_jcode(folder, prompt), folders)
for folder, output in zip(folders, outputs):
print(f"=== {folder} ===")
print(output)Run it with python jcode_runner.py from the folder that holds service-a, service-b and service-c.
Good to know:
- Give each folder its own Git repo or Git worktree, so you can review each agent’s changes separately.
- The jcode docs don’t describe the output format or exit codes of
jcode run. These programs treat any non-zero exit code as a failure, which is the usual convention for command-line tools. - To use a saved provider profile, put the flag before
run, as the docs show:jcode --provider-profile my-api run 'hello'. - For deeper control there is an official TypeScript SDK (jcode.sh/sdk), installed with
npm install @1jehuang/jcode-sdkand needing Node 20 or newer. The SDK page mentions no Java or Python SDK, which is why these examples call the command line. - For many agents in one repo, use jcode’s built-in swarm (
/swarm) instead. It tells the agents when another agent has edited a file they read.
Should you use jcode?
Use jcode if you want to run several agents at once, work on a modest machine, or use a model other than Claude. If you only ever run one agent and already like Claude Code, you lose little by staying.
| You are… | Our suggestion |
|---|---|
| A complete beginner trying your first agent | Either works. jcode is free and light, but most tutorials online use Claude Code. |
| On an 8 GB laptop, or running agents on a small cloud server | jcode, because memory per session is its biggest win. |
| Running 5 to 20 agents in parallel | jcode. This is exactly what it was built for. |
| Using a local model (Ollama, LM Studio) or a mix of providers | jcode or OpenCode. |
| Wanting the most polished Claude-only experience | Claude Code. |
Some honest caveats:
- The speed numbers are the vendor’s. They come from jcode’s own benchmark pages and haven’t been independently verified.
- Speed is not intelligence. The model decides code quality. A lighter harness doesn’t make answers smarter.
- It is young and moving fast. It was first released in early 2026, and features and flags change often. Run
/helpand check jcode.sh/docs for your version. - Safety settings are not clearly documented. The docs don’t say whether jcode asks before running commands or editing files. Work on a committed Git branch and review the diff.
- You still pay for the model. jcode is free, but tokens from Claude, OpenAI and others are not, unless you run a local model.
jcode FAQ
What is jcode in AI? jcode is a free, open-source AI coding agent for the terminal, written in Rust. It reads your code, edits files and runs commands, using an AI model such as Claude, GPT or Gemini.
Is jcode the same as Claude Code? No. Both are coding agents, but Claude Code is Anthropic’s closed-source tool built for Claude models. jcode is an independent, MIT-licensed project that works with many providers and uses much less memory per session.
Is jcode free? The tool is free under the MIT license. You pay for the AI model you connect, unless you use a free local model through Ollama or LM Studio.
Does jcode have its own AI model? No. It is a harness, the program around the model. You bring the model.
Why is jcode faster than Claude Code? It is a compiled Rust program built for low memory use. jcode’s own benchmark lists about 10.4 MB per extra interactive session against about 212.7 MB for Claude Code, and 48.7 ms against 3,512.8 ms until you can type.
How do I install jcode?
On macOS or Linux run curl -fsSL https://jcode.sh/install | bash. On Windows 11 run irm https://jcode.sh/install.ps1 | iex. Then run jcode login and jcode.
Can I use jcode with Java or Python projects? Yes. jcode works with any language, because it edits files and runs your normal tools, such as Maven, Gradle, pip or pytest.
What is jcode swarm mode? Swarm lets several agents work in the same repository. A shared server tells each agent when another one edits a file it read, and agents can message each other.
Is jcode.sh the same as cnjack/jcode? No. jcode.sh is 1jehuang/jcode, a Rust project. cnjack/jcode is a separate Go project that shares the name.
Key takeaways
- jcode is a free, open-source AI coding agent harness, written in Rust. It works with Claude, OpenAI, Gemini, Copilot, local models and more.
- The model is the brain, jcode is the body. It doesn’t make the AI smarter; it makes the harness much lighter.
- It solves running many agents at once: by its own benchmark, an extra session costs about 10 MB and is ready in under 50 ms.
- Start with
curl -fsSL https://jcode.sh/install | bash, thenjcode loginandjcode. - Use
/swarmfor many agents in one repo,AGENTS.mdfor project rules, andjcode runto script it from Java or Python.
New to all this? Start with what is an AI coding agent, then compare with what is OpenCode, the other popular open-source option.
Comments