jcode — RAM-Efficient AI Coding Agent for the Terminal
jcode: open-source AI coding agent for the terminal in Rust. Uses 27MB RAM vs 386MB for Claude Code, boots in 14ms, with durable memory and swarm.
jcode is an open-source AI coding agent for the terminal, written in Rust — with dramatically better RAM efficiency and boot speed than Claude Code, Cursor Agent, or GitHub Copilot CLI.
One command to install:
curl -fsSL https://jcode.sh/install | bashbashWhy jcode?#
RAM — 14x Lighter#
Benchmark with 1 active session:
| Tool | RAM used | vs jcode |
|---|---|---|
| jcode (local embedding off) | 27.8 MB | baseline |
| jcode (full) | 167.1 MB | 6.0× more |
| pi | 144.4 MB | 5.2× more |
| Codex CLI | 140.0 MB | 5.0× more |
| OpenCode | 371.5 MB | 13.4× more |
| GitHub Copilot CLI | 333.3 MB | 12.0× more |
| Cursor Agent | 214.9 MB | 7.7× more |
| Claude Code | 386.6 MB | 13.9× more |
| Antigravity CLI | 243.7 MB | 8.8× more |
At 10 concurrent sessions the gap widens — OpenCode uses 3.2GB (27.7×), Claude Code uses 2.3GB (19.7×), jcode stays at 260MB.
Speed — 14ms Boot#
Time to first frame (from command to visible UI):
| Tool | Time | Slower than jcode |
|---|---|---|
| jcode | 14.0 ms | baseline |
| Antigravity CLI | 383.5 ms | 27× |
| pi | 590.7 ms | 42× |
| Codex CLI | 882.8 ms | 63× |
| OpenCode | 1035.9 ms | 74× |
| GitHub Copilot CLI | 1518.6 ms | 109× |
| Cursor Agent | 1949.7 ms | 139× |
| Claude Code | 3436.9 ms | 245× |
Extra RAM Per Session#
| Tool | Extra PSS per added session | vs jcode |
|---|---|---|
| jcode (local embedding off) | ~9.9 MB | baseline |
| jcode | ~10.4 MB | 1.1× |
| pi | ~76.5 MB | 7.7× |
| OpenCode | ~318.4 MB | 32.2× |
| Claude Code | ~212.7 MB | 21.5× |
Features#
Durable Memory#
jcode goes beyond the context window with a graph-based memory system:
- Each turn/response is embedded as a semantic vector
- Queries the memory graph via cosine similarity to find relevant past context
- A memory sideagent verifies relevance before injecting into the conversation
- Memories are extracted automatically on semantic drift, after K turns, or at session end
- Auto-consolidation reorganizes, checks for staleness, and resolves conflicts
- Explicit memory tools let the agent search or store memories on demand
- Session search provides traditional RAG over past sessions
Swarm — Multiple Agents Collaborating#
Spawn 2+ agents in the same repo — the server manages them automatically:
- When agent A edits a file agent B is reading, B receives a notification
- Agent B can ignore it or check the diff
- Messaging: DM a single agent, broadcast to all, or scope to repo agents
- Agents can autonomously spawn their own swarms — the main agent becomes a coordinator, spawned agents become workers
- Supports both headless and headed modes
UI — Side Panel, Diagrams, Info Widgets#
- Side panel: load files for real-time viewing, diff viewer, or direct agent output
- Mermaid diagrams: rendered inline using mermaid-rs-renderer ↗ — 1800× faster than JS libraries
- Info widgets: use only negative screen space, never taking room from responses
-
1000 FPS rendering — zero flicker
- Custom scrollback — far beyond native terminal scrollback
- Handterm: a custom terminal (github.com/1jehuang/handterm ↗) built for smooth, partial-line scrolling
OAuth & Providers#
Broad provider support out of the box:
jcode login --provider claude
jcode login --provider openai
jcode login --provider gemini
jcode login --provider copilot
jcode login --provider azure
jcode login --provider ollama
jcode login --provider lmstudio
jcode login --provider fireworks
jcode login --provider minimaxbashPlus OpenAI-compatible endpoints: OpenRouter, DeepSeek, MoonshotAI, HuggingFace, Nebius, Scaleway, vLLM — even local servers without an API key. Self-hosted vLLM instances work with a single jcode provider add command.
Custom Mermaid Renderer#
jcode ships its own Rust-based Mermaid rendering library — no JavaScript, no browser dependency:
// mermaid-rs-renderer — renders diagrams 1800× faster
let diagram = mermaid_rs::render("graph TD; A-->B;");rustConfig & Customization#
- Hot-reloads
config.tomlchanges at runtime - Every color is configurable with palette harmony scoring
- Left-aligned by default; toggle centered mode with
Alt+Cor/alignment - Disable emoji globally with
emoji = falsein[display]config - Per-model context window config for endpoints that don’t advertise it
Installation#
macOS & Linux#
curl -fsSL https://jcode.sh/install | bashbashWindows 11 (PowerShell)#
irm https://jcode.sh/install.ps1 | iexpowershellHomebrew#
brew install jcodebashQuick Start#
# Run with Claude
jcode --provider claude run "explain the code in src/"
# Run with OpenAI
jcode --provider openai --model gpt-4o run "refactor this file"
# Run with local Ollama
jcode --provider ollama --model llama3.2 run "hello"
# Login to a provider
jcode login --provider claude
# Start interactive session
jcodebashComparison#
| jcode | Claude Code | Cursor Agent | GitHub Copilot CLI | |
|---|---|---|---|---|
| RAM (1 session) | 27.8 MB | 386.6 MB | 214.9 MB | 333.3 MB |
| Boot time | 14 ms | 3437 ms | 1950 ms | 1519 ms |
| Extra RAM/session | ~10 MB | ~213 MB | ~158 MB | ~158 MB |
| Open source | ✅ | ❌ | ❌ | ❌ |
| Written in Rust | ✅ | ❌ | ❌ | ❌ |
| Durable memory | ✅ | ❌ | ❌ | ❌ |
| Swarm mode | ✅ | ❌ | ❌ | ❌ |
| Mermaid inline | ✅ (1800× faster) | ❌ | ❌ | ❌ |
| Provider support | ✅ (10+) | Claude-only | OpenAI/Claude | GitHub Copilot |
Conclusion#
jcode is an AI coding agent engineered for performance — Rust, zero-cost abstractions, a graph-based memory system, and native swarm collaboration.
Its key advantages:
- Ultra-low RAM: 27.8 MB baseline — runs on low-end machines and scales to many concurrent sessions
- Instant boot: 14ms — no waiting
- Graph memory: persists context across sessions with automatic consolidation
- Swarm: multiple agents collaborating autonomously
Try it:
curl -fsSL https://jcode.sh/install | bash
jcode login --provider claude
jcodebash