NCode
A VS Code-inspired desktop code editor built with Tauri, React, and Rust — with a built-in AI assistant powered by local and cloud LLMs.

Overview
NCode is a cross-platform desktop IDE that combines a familiar editor experience with a deeply integrated AI coding assistant. It supports local models via Ollama and cloud providers (OpenAI, Anthropic, Groq, HuggingFace Inference API).
Stack:
- Frontend: React 18 + TypeScript + Monaco Editor
- Desktop shell: Tauri 2 (Rust)
- State: Zustand
- Styling: Tailwind CSS
Features
Editor
- Monaco Editor (same engine as VS Code)
- Multi-tab editing with unsaved change indicators
- File explorer with recursive directory tree
- Breadcrumb navigation
- Command palette (
Ctrl+Shift+P)
- Quick open (
Ctrl+P)
- Symbol search (
Ctrl+T)
- Search & replace panel (
Ctrl+H)
- Integrated terminal (xterm.js)
- Git panel
- Extensions panel
- Resizable panels (sidebar, editor, terminal, AI panel)
AI Assistant
- Chat mode — direct Q&A with your codebase
- Think mode — step-by-step reasoning before answering
- Agent mode — multi-step planning with file-level actions
- Bug Hunt mode — systematic bug, vulnerability, and edge-case detection
- Architect mode — architecture review and refactoring suggestions
@file / @folder / @errors context injection
- File suggestion apply/reject with diff preview
- Shell command suggestions with one-click terminal execution
- AI change history with rollback support
- Multi-session chat history with search and export
- RAG (Retrieval-Augmented Generation) over your codebase
- Streaming responses with live token display
- Prompt template library
AI Providers
| Provider |
Type |
Notes |
| Ollama |
Local |
Runs models on your machine |
| OpenAI |
Cloud API |
GPT-4, GPT-4o, etc. |
| Anthropic |
Cloud API |
Claude 3 family |
| Groq |
Cloud API |
Ultra-fast inference |
| AirLLM |
Local |
Split-model for low RAM |
| vLLM |
Local/Cloud |
High-throughput batched inference |
| HuggingFace Inference API |
Cloud API |
Any HF-hosted model |
Appearance
- 7 built-in color themes: One Dark Pro, One Light, High Contrast, Solarized Dark, Monokai, GitHub Dark, Dracula
- 3 icon themes
- Configurable editor and UI fonts
- Adjustable font size, tab size, word wrap, minimap, format-on-save, auto-save
Architecture
┌─────────────────────────────────────────────┐
│ NCode (React + Tauri) │
│ │
│ ┌──────────┐ ┌──────────┐ ┌────────────┐ │
│ │ Editor │ │ Sidebar │ │ AI Panel │ │
│ │ (Monaco) │ │ (Files, │ │ (Chat, │ │
│ │ │ │ Git, │ │ Agent) │ │
│ │ │ │ Search) │ │ │ │
│ └──────────┘ └──────────┘ └────────────┘ │
│ ┌────────────────────────────────────────┐ │
│ │ Rust (Tauri) Backend │ │
│ │ fs · process · terminal · ai │ │
│ └────────────────────────────────────────┘ │
└─────────────────────────────────────────────┘
│
▼
Direct HTTP
(Ollama / OpenAI / Anthropic / Groq /
HuggingFace Inference API)
Requirements
Core
For local AI (Ollama)
Installation
1. Clone the repo
git clone https://github.com/your-username/ncode.git
cd ncode
2. Install frontend dependencies
npm install
Running
Development
npm run tauri:dev
This starts the Vite dev server and the Tauri app together.
Production build
npm run tauri:build
Output bundles (.deb, .rpm, .dmg, .exe) are in src-tauri/target/release/bundle/.
Configuration
AI providers
Open Settings (Ctrl+,) → AI / LLM tab.
- Ollama: Set the base URL (default
http://localhost:11434), click Fetch to load installed models, then check the ones you want to use.
- Cloud APIs: Select a provider, enter your API key and model name, click Add Key, then check it to activate.
- HuggingFace Inference API: Enter your HF API token and model ID in the model selector dropdown.
Keyboard Shortcuts
| Shortcut |
Action |
Ctrl+P |
Quick open file |
Ctrl+Shift+P |
Command palette |
Ctrl+S |
Save file |
Ctrl+Shift+S |
Save all files |
Ctrl+W |
Close tab |
Ctrl+B |
Toggle sidebar |
Ctrl+`` `` |
Toggle terminal |
Ctrl+, |
Settings |
Ctrl+Shift+A |
Toggle AI panel |
Ctrl+Shift+E |
Explorer view |
Ctrl+Shift+F |
Search view |
Ctrl+Shift+G |
Git view |
Ctrl+Shift+X |
Extensions view |
Ctrl+T |
Symbol search |
Ctrl+H |
Search & replace |
Project Structure
ncode/
├── src/ # React frontend
│ ├── components/
│ │ ├── ai/ # AI panel, diff modal
│ │ ├── editor/ # Monaco editor, tabs, breadcrumbs, command palette
│ │ ├── sidebar/ # File explorer, git, search, symbols, tasks
│ │ ├── terminal/ # Integrated terminal
│ │ ├── settings/ # Settings panel
│ │ ├── statusbar/ # Status bar
│ │ └── titlebar/ # Title bar, menu bar
│ ├── store/ # Zustand stores (editor, AI, UI, terminal)
│ └── utils/ # Error parser, language runner, project scanner
└── src-tauri/ # Rust/Tauri backend
├── src/
│ ├── commands/ # fs, process, terminal Tauri commands
│ ├── ai/ # AI Tauri commands (chat, stream, RAG, agent)
│ └── lsp/ # LSP module
└── tauri.conf.json
Recommended Ollama Models
| Model |
RAM |
Notes |
qwen2.5-coder |
4 GB |
Lightweight, fast |
deepseek-coder |
4 GB |
Balanced quality |
codellama |
4 GB |
Best code quality |
mistral |
4 GB |
General purpose |
starcoder2 |
2 GB |
Good for completions |
Install a model:
ollama pull qwen2.5-coder
Troubleshooting
Ollama not detected
- Make sure
ollama serve is running
- Check the base URL in Settings matches your Ollama instance
- Click "Start Ollama" in the AI panel warning banner
Build fails (Rust)
Platform Setup Guides
Testing
# TypeScript / frontend tests
npm test
License
MIT License — Copyright (c) 2024 NCode Contributors
See LICENSE for the full text.