hanzo-editor

Hanzo Editor (hanzoai/code) is an open-source AI-native code editor -- a VS Code fork (originally "Void Editor") with LLM chat, autocomplete, inline diffs, and agent tool use built directly into the editor core.

Hanzo Editor - Open-Source AI Code Editor

Category: Hanzo Ecosystem Related Skills: hanzo/hanzo-code.md, hanzo/hanzo-extension.md, hanzo/hanzo-mcp.md

Overview

Hanzo Editor (hanzoai/code) is an open-source AI-native code editor -- a VS Code fork (originally "Void Editor") with LLM chat, autocomplete, inline diffs, and agent tool use built directly into the editor core. It is the open-source Cursor alternative. Ships as a standalone Electron desktop app.

Note: This skill documents the same repo as hanzo/hanzo-code.md. The repo is hanzoai/code, not hanzoai/editor (which does not exist). This file exists as a convenience alias.

What it actually is

Upstream references

When to use

Quick reference

| Item | Value | |------|-------| | Repo | github.com/hanzoai/code | | Branch | main | | License | Apache-2.0 (+ MIT for VS Code portions) | | Stack | TypeScript, Electron 34, React 19, Tailwind CSS 3 | | Node | 20.18.x (.nvmrc) | | Package Manager | npm (not pnpm -- VS Code convention) | | Custom Code | src/vs/workbench/contrib/void/ | | Data Folder | ~/.code-editor | | Bundle ID | com.hanzoai.code | | URL Protocol | code-editor:// | | Website | code.hanzo.ai |

Quickstart

git clone https://github.com/hanzoai/code.git
cd code
npm install

# Build React UI
npm run buildreact

# Watch-compile (wait for two checkmarks)
npm run watch

# Launch editor (separate terminal)
./scripts/code.sh # macOS/Linux
./scripts/code.bat # Windows

# Package for distribution
npm run gulp vscode-darwin-arm64 # macOS ARM
npm run gulp vscode-darwin-x64 # macOS Intel
npm run gulp vscode-win32-x64 # Windows
npm run gulp vscode-linux-x64 # Linux

Architecture

┌─────────────────────────────┐
│ Browser Process │
│ (React UI, Monaco editor) │
│ │
│ src/.../void/browser/ │
│ chatThreadService │
│ autocompleteService │
│ editCodeService │
│ toolsService │
└────────────┬────────────────┘
 │ IPC channels
┌────────────▼────────────────┐
│ Main Process │
│ (Node.js, LLM SDKs) │
│ │
│ sendLLMMessage │
│ Anthropic, OpenAI, Gemini │
│ Mistral, Groq, Ollama │
└─────────────────────────────┘

Directory structure

hanzoai/code/
 src/vs/workbench/contrib/void/browser/ # All custom AI features
 react/ # React UI (chat sidebar, settings)
 chatThreadService # Chat + agent orchestration
 editCodeService # Apply, Cmd+K, Edit tool
 autocompleteService # Inline completions
 inlineDiffsService # Diff visualization
 toolsService # Agent tool system
 extensions/ # Built-in VS Code extensions
 build/ # Gulp build scripts
 cli/ # CLI tool
 remote/ # Remote dev server
 test/ # Test infrastructure
 void_icons/ # Editor icons
 product.json # Editor identity/branding
 package.json # Dependencies
 .voidrules # AI assistant rules for this codebase

Development rules

From .voidrules:

Key services

| Service | Purpose | |---------|---------| | chatThreadService | Chat sidebar, streaming, agent mode | | editCodeService | Fast/Slow Apply, Cmd+K, Edit tool | | autocompleteService | Inline LLM completions | | inlineDiffsService | Red/green diff rendering | | toolsService | Agent tool registration and execution | | voidSettingsService | Provider/model configuration |

Related Skills


Last Updated: 2026-03-13 Category: Hanzo Ecosystem Related: editor, vscode, void, ai, cursor-alternative, code Prerequisites: Node.js 20, npm, platform build tools (XCode/VS/gcc)