MicroCode is built and maintained by Dotmini Company Limited. If this project saves you time or inspires your work, consider supporting continued development.
| Bank | Krungthai Bank (ธนาคารกรุงไทย) |
| Account | 460-0-70494-0 |
| Name | นายถิรวัฒน์ นันตมาศ |
PromptPay QR available upon request.
If you prefer recurring support or wish to appear in the official sponsors list:
Every contribution directly funds engineering time, Apple Developer infrastructure, and GPU compute resources.
The Native AI-Powered IDE for macOS
Built from scratch. No Electron. No compromises.
Download Latest Release · Operational Modes · Features · Architecture · Getting Started
Every modern IDE is built on Electron — a web browser pretending to be a native app. MicroCode is different.
We built a fully native macOS IDE from scratch using SwiftUI, Rust, and Metal. The result is an editor that launches in under a second, uses a fraction of the memory, and feels like it belongs on your Mac.
| MicroCode | Electron IDEs | |
|---|---|---|
| Startup time | < 1s | 3-8s |
| Memory (idle) | ~80 MB | 400-800 MB |
| GPU rendering | Metal (native) | WebGL (emulated) |
| AI integration | 7 providers, native | Plugin-dependent |
| File indexing | Tree-sitter + Rust | JS-based |
MicroCode features a multi-modal workspace architecture where each mode is engineered from the ground up for a specific software engineering discipline. Unlike traditional IDEs and Electron-based wrappers, MicroCode executes every mode natively on Apple Silicon using Metal, Swift, and Rust.
| Operational Mode | Primary Functionality | MicroCode Architectural Implementation | Legacy Competitors (VS Code, Cursor, Windsurf, Xcode, JetBrains) |
|---|---|---|---|
| Code Editor | Primary editing & multi-language development | 100% native AppKit NSTextView backed by an Objective-C++ gap buffer and Metal GPU font rasterizer. Sub-second cold startup, <80 MB RAM. | Electron webviews (400–1200 MB RAM idle). Canvas-emulated font rendering prone to JavaScript garbage collection frame drops. |
| Autonomous AI Agent | Multi-file refactoring, planning & self-healing | Enforces formal Implementation Plans before touching code. Interactive ⌘↵ tool approval gate. 7 native Tier-1 LLM connections. | Unpredictable file overwrites, blind shell command execution, vendor lock-in with middleman token markups. |
| Embedded Device Dock | Mobile & desktop simulation directly in-editor | Low-latency WebSocket H.264 iOS stream (serve-sim) and ADB Android mirror (scrcpy-server) with 120 FPS Metal device shaders. | External detached emulator windows (Xcode/Android Studio) that cause desktop clutter; non-existent in VS Code/Cursor without laggy webview plugins. |
| Database Studio | SQL queries, schema explorer & tabular viewer | Native C and Rust database drivers for PostgreSQL, MySQL, and SQLite. Zero-latency pagination directly in-process. | Heavy Electron plugins (SQLTools) or separate memory-heavy Java applications (DataGrip/DBeaver) taking 1 GB+ RAM. |
| API Client Studio | REST & GraphQL request designer and inspector | Native Swift networking engine with environment presets, token injection, and instant formatted JSON/XML inspectors. | Developers must run separate heavy Electron applications (Postman/Insomnia) consuming 800 MB+ RAM. |
| Notebook & Cell Mode | Polyglot exploratory computing & step execution | Native multi-runtime engine (Swift, Rust, Python, Ardium) with sub-millisecond dispatch and direct stdio pipe capture. | Jupyter / VS Code Notebooks with fragile Python kernel connections, sluggish web widgets, and connection dropouts. |
| Playground Mode | In-memory scratchpad & instant REPL | Memory-backed scratchpad with live AST evaluation and execution profiling without creating disposable disk files. | Xcode Playgrounds frequently stall or crash; VS Code lacks native scratchpad without saving files to disk. |
| Remote Explorer (Remote X) | Headless cloud server & container development | Direct POSIX SSH/SFTP over secure Unix sockets with zero daemon installation required on remote target. | VS Code Remote installs a heavy proprietary Node.js server daemon (vscode-server) that triggers firewall and RAM issues. |
| Embed & IoT Studio | Hardware development & firmware flashing | Native serial port monitor, real-time baud switching, and direct hardware register observation for ESP32/STM32/Pico. | Fragmented between Arduino IDE, Java-based tools, or complex CLI command configurations. |
| Science Mode | Computational research & bioinformatics | Specialized pipelines for biological data visualization, structure models, and vector mathematics. | Requires switching across external web dashboards and disparate CLI scientific tools. |
| Extension Studio | Extension management & ecosystem customization | Native Open VSX registry integration with an isolated Node.js VS Code compatibility runner; zero Electron overhead. | VS Code proprietary marketplace vendor lock-in and heavy background runtime consumption. |
| Ardium Toolchain | Next-gen system programming with Ardium v2.3 | Official native compiler runner, Tree-sitter AST queries, RAII @owned ownership linting, and CoreUI live rendering. | Non-existent in third-party IDEs. MicroCode is the flagship workstation for the Ardium programming language. |
.code).aiAgent)⌘↵ Tool Approval Barrier until explicitly confirmed by the developer.EmbeddedDeviceDockView)serve-sim daemon, while physical Android devices and emulators mirror over ADB via scrcpy-server..database).apiClient).notebook).playground).remoteX).embedded).science).extensions)vscode-compat-host) without running Electron.@owned ownership analysis, and integrated compiler diagnostics.MicroCode combines low-level macOS engineering with modern autonomous AI architectures:
MicroCode is a fully autonomous AI workstation with human-in-the-loop safety controls:
⌘↵ Interactive Approval Gate: High-risk tool calls (writing files, executing shell scripts, running git commands) pause at an interactive safety barrier requiring explicit developer approval.research for codebase indexing, flutter_a11y_agent for accessibility audits, or isolated self workers)./goal (exhaustive execution), /schedule (timed background monitors), /browser (web scraping & docs), /grill-me (design interviews), and /boost (deep reasoning).A next-generation editing experience powered by speculative multi-token decoding:
⌥↵).Test mobile and desktop applications without leaving your code editor:
serve-sim capture daemon.scrcpy-server streaming pipeline with full touch, scroll, and keyboard forwarding.Extensibility without Electron's memory bloat:
vscode-compat-host) emulating VS Code extension APIs for syntax grammars, themes, and snippets.Everything you need to build, test, and ship in one unified native workspace:
Designed for modern distributed engineering teams:
Full first-class IDE support for the Ardium programming language:
@owned ownership tracking.ArdiumRunner.High-performance compute offloading when local hardware isn't enough:
flowchart TD
subgraph App["MicroCode.app (Native macOS)"]
direction TB
subgraph UIComponents["SwiftUI + AppKit UI"]
Tabs["Code Editor Tabs"]
Planning["AI Planning Workboard"]
Studios["Developer Studios (DB, API, CI/CD, Cell)"]
end
subgraph MetalEngine["Metal Shader Engine"]
DeviceDock["120 FPS Device Dock"]
GPUText["GPU Text Rendering"]
LiquidGlass["Liquid Glass UI"]
end
subgraph ObjCCore["Objective-C++ Core"]
TextBuffer["Text Buffer"]
TokenLayout["Token Layout"]
MemPrimitives["Memory Primitives"]
end
subgraph RustBackend["Rust Backend (Axum + Tokio)"]
AIProviders["AI Multi-Provider (Gemini, Claude, GPT)"]
AgentEngine["Autonomous Agent & Planning Engine"]
TreeSitter["Tree-sitter Indexer & RepoMap"]
MCPManager["MCP Client / Server Protocol Manager"]
CRDTSync["CRDT Realtime Sync Engine (P2P Collab)"]
CandleML["Candle ML RAG Vector Store"]
GitEngine["Git Engine & Sandbox Boundary"]
PTYTerminal["PTY Terminal Harness (ANSI TrueColor)"]
WasmtimeSandbox["Wasmtime Sandbox Extension Host"]
end
UIComponents -->|"C ABI / Unix Socket / HTTP"| RustBackend
MetalEngine -->|"C ABI / Unix Socket / HTTP"| RustBackend
ObjCCore -->|"C ABI / Unix Socket / HTTP"| RustBackend
end
subgraph External["External Subsystem Integration"]
DeviceStream["Embedded Device Stream (scrcpy ADB / serve-sim iOS)"]
OpenVSX["Open VSX & Node.js Extension Compat Host"]
ArdiumToolchain["Native Ardium v2.3 Compiler & Playground Runner"]
CloudGPU["Dotmini Cloud GPU Cluster Dispatch (A100/H100)"]
end
RustBackend --> External
| Subsystem | Technology | Responsibility |
|---|---|---|
| UI & Windowing | SwiftUI + AppKit | Declarative macOS UI, native windowing, trackpad gestures |
| GPU Rendering | Metal Shaders | 120 FPS device frame shaders, GPU-accelerated text & animations |
| Core Text Buffer | Objective-C++ & C ABI | Memory-efficient text gap buffer and high-performance primitives |
| Backend Core | Rust (Axum + Tokio) | Async microservices, multi-provider AI streaming, Git, process harness |
| Syntax & AST | Tree-sitter | Real-time AST parsing for 30+ languages, symbol indexing & RepoMap |
| Semantic Intelligence | Candle ML | On-device vector embeddings and local RAG code search |
| Extension Runtime | Open VSX + Node.js + Wasmtime | Marketplace registry, VS Code API compatibility, and WASM sandboxing |
| AI Tool Protocol | Model Context Protocol (MCP) | Client & server support for Anthropic MCP tools & resources |
| Device Simulation | ADB / scrcpy + serve-sim | Hardware-accelerated screen mirroring for Android & iOS Simulator |
| Realtime Sync | CRDT Engine | Decentralized, conflict-free collaborative editing and presence |
| Native Toolchains | Swift, Rust, Ardium v2.3 | Multi-language compilation, diagnostics, and interactive playground |
| Requirement | Version |
|---|---|
| macOS | 13.0 (Ventura) or later |
| Xcode | 15.0+ |
| Rust | 1.75+ |
| Node.js | 18+ (optional, for extension development) |
Download the latest .dmg or .pkg from Releases.
For detailed instructions and prerequisites, see BUILDING.md.
# Clone the repository
git clone https://github.com/Dotmini/microcode.git
cd microcode
# 1. Standard full build (Rust backend + Swift frontend -> MicroCode.app)
./build.sh
# 2. Fast development build with auto-deployment to ~/Applications
./build_dev.sh
# 3. Distribution release (universal binary + DMG + PKG)
./build_distribution.sh
build.sh)./build.sh --debug # Build with debug symbols
./build.sh --frontend-only # Recompile Swift app only (uses existing Rust libs)
./build.sh --backend-only # Recompile Rust backend and FFI only
./build.sh --clean # Clean build artifacts before compiling
./build.sh --external-ssd # Offload caches & artifacts to external SSD
microcode/
├── MicroCode/ # Swift sources (SwiftUI + AppKit)
│ ├── Views/ # UI components (Editor, AI Workboard, Studios, Device Dock, Git)
│ ├── Services/ # AI agent loop, SuperTab, CRDT, LSP bridge, Device streaming
│ ├── SyntaxEngine/ # Syntax highlighting and theme engine
│ └── Models/ # AppState, ImplementationPlan, tool approval gates, config
├── MicroCodeSupport/ # Objective-C++ core and text buffer bridge
├── MicroCodeKernel/ # Native AppKit/Metal text kernel
├── MicrocodeCoreSupport/ # Rust FFI headers and C ABI bridge
├── backend/ # Rust backend server (Axum + Tokio)
│ └── src/
│ ├── ai.rs # Multi-provider AI engine (Gemini, Claude, GPT, DeepSeek, etc.)
│ ├── agent.rs # Autonomous AI agent loop with tool approval gate
│ ├── indexer.rs # Tree-sitter file indexer & symbol search
│ └── main.rs # Axum HTTP API & WebSocket server
├── microcode_core/ # Rust shared core library (libmicrocode_core.a)
├── extension-host/ # Sandboxed WASM extension runtime
├── vscode-compat-host/ # VS Code extension compatibility layer
├── Vendor/ # Pre-compiled simulator & device capture utilities (serve-sim, scrcpy)
├── tools/ # Developer utilities, migration & scratch tests
└── .github/workflows/ # CI/CD (build, sign, release)
MicroCode takes security seriously:
MicroCode supports 7 AI providers out of the box. Configure via Settings → AI Providers:
| Provider | Models | API Key Env |
|---|---|---|
| Gemini | 3.1 Pro, 2.5 Pro, 2.5 Flash | GEMINI_API_KEY |
| OpenAI | GPT-5, GPT-4o, o3, o4-mini | OPENAI_API_KEY |
| Claude | 4.7 Opus, Sonnet 4, 3.5 Haiku | ANTHROPIC_API_KEY |
| DeepSeek | V4, Chat, Coder | DEEPSEEK_API_KEY |
| Grok | grok-3, grok-3-mini | GROK_API_KEY |
| Qwen | qwen-max, qwen-turbo | QWEN_API_KEY |
| GLM | glm-4-plus | GLM_API_KEY |
We welcome contributions! Please:
git checkout -b feature/amazing)./generate_checksums.sh)|
Tirawat Nantamas (ถิรวัฒน์ นันตมาศ) Founder & CEO Dotmini Company Limited (บริษัท ดอทมินิ จำกัด) |
ข้อกำหนดทางกฎหมายและสิทธิ์ในทรัพย์สินทางปัญญา (Legal Notice)
ซอฟต์แวร์ ซอร์สโค้ด สถาปัตยกรรม และองค์ประกอบทั้งหมดของ MicroCode เป็น ทรัพย์สินทางปัญญาของ บริษัท ดอทมินิ จำกัด (Dotmini Company Limited) แต่เพียงผู้เดียวเท่านั้น
โปรเจกต์นี้เปิดให้เข้าถึงซอร์สโค้ด (Source-Available) ภายใต้สัญญาอนุญาต Elastic License v2 (ELv2) และเงื่อนไข Business Source License (BSL) โดยมีข้อกำหนดห้ามอย่างเด็ดขาดดังต่อไปนี้:
ข้อกำหนดและสัญญาอนุญาตนี้อยู่ภายใต้บังคับแห่ง กฎหมายไทย (Thai Law):
ข้อพิพาทใดๆ ให้ระงับโดยศาลทรัพย์สินทางปัญญาและการค้าระหว่างประเทศกลาง ณ กรุงเทพมหานคร ประเทศไทย
Developed by Dotmini Company Limited
Copyright © 2024-2026 Tirawat Nantamas — Dotmini Company Limited (บริษัท ดอทมินิ จำกัด). All rights reserved.
327 commits
Swift
82.6%
Rust
11.5%
Python
1.3%
Shell
1.1%
TypeScript
1.1%
C
1.1%
MicroCode is built and maintained by Dotmini Company Limited. If this project saves you time or inspires your work, consider supporting continued development.
| Bank | Krungthai Bank (ธนาคารกรุงไทย) |
| Account | 460-0-70494-0 |
| Name | นายถิรวัฒน์ นันตมาศ |
PromptPay QR available upon request.
If you prefer recurring support or wish to appear in the official sponsors list:
Every contribution directly funds engineering time, Apple Developer infrastructure, and GPU compute resources.
The Native AI-Powered IDE for macOS
Built from scratch. No Electron. No compromises.
Download Latest Release · Operational Modes · Features · Architecture · Getting Started
Every modern IDE is built on Electron — a web browser pretending to be a native app. MicroCode is different.
We built a fully native macOS IDE from scratch using SwiftUI, Rust, and Metal. The result is an editor that launches in under a second, uses a fraction of the memory, and feels like it belongs on your Mac.
| MicroCode | Electron IDEs | |
|---|---|---|
| Startup time | < 1s | 3-8s |
| Memory (idle) | ~80 MB | 400-800 MB |
| GPU rendering | Metal (native) | WebGL (emulated) |
| AI integration | 7 providers, native | Plugin-dependent |
| File indexing | Tree-sitter + Rust | JS-based |
MicroCode features a multi-modal workspace architecture where each mode is engineered from the ground up for a specific software engineering discipline. Unlike traditional IDEs and Electron-based wrappers, MicroCode executes every mode natively on Apple Silicon using Metal, Swift, and Rust.
| Operational Mode | Primary Functionality | MicroCode Architectural Implementation | Legacy Competitors (VS Code, Cursor, Windsurf, Xcode, JetBrains) |
|---|---|---|---|
| Code Editor | Primary editing & multi-language development | 100% native AppKit NSTextView backed by an Objective-C++ gap buffer and Metal GPU font rasterizer. Sub-second cold startup, <80 MB RAM. | Electron webviews (400–1200 MB RAM idle). Canvas-emulated font rendering prone to JavaScript garbage collection frame drops. |
| Autonomous AI Agent | Multi-file refactoring, planning & self-healing | Enforces formal Implementation Plans before touching code. Interactive ⌘↵ tool approval gate. 7 native Tier-1 LLM connections. | Unpredictable file overwrites, blind shell command execution, vendor lock-in with middleman token markups. |
| Embedded Device Dock | Mobile & desktop simulation directly in-editor | Low-latency WebSocket H.264 iOS stream (serve-sim) and ADB Android mirror (scrcpy-server) with 120 FPS Metal device shaders. | External detached emulator windows (Xcode/Android Studio) that cause desktop clutter; non-existent in VS Code/Cursor without laggy webview plugins. |
| Database Studio | SQL queries, schema explorer & tabular viewer | Native C and Rust database drivers for PostgreSQL, MySQL, and SQLite. Zero-latency pagination directly in-process. | Heavy Electron plugins (SQLTools) or separate memory-heavy Java applications (DataGrip/DBeaver) taking 1 GB+ RAM. |
| API Client Studio | REST & GraphQL request designer and inspector | Native Swift networking engine with environment presets, token injection, and instant formatted JSON/XML inspectors. | Developers must run separate heavy Electron applications (Postman/Insomnia) consuming 800 MB+ RAM. |
| Notebook & Cell Mode | Polyglot exploratory computing & step execution | Native multi-runtime engine (Swift, Rust, Python, Ardium) with sub-millisecond dispatch and direct stdio pipe capture. | Jupyter / VS Code Notebooks with fragile Python kernel connections, sluggish web widgets, and connection dropouts. |
| Playground Mode | In-memory scratchpad & instant REPL | Memory-backed scratchpad with live AST evaluation and execution profiling without creating disposable disk files. | Xcode Playgrounds frequently stall or crash; VS Code lacks native scratchpad without saving files to disk. |
| Remote Explorer (Remote X) | Headless cloud server & container development | Direct POSIX SSH/SFTP over secure Unix sockets with zero daemon installation required on remote target. | VS Code Remote installs a heavy proprietary Node.js server daemon (vscode-server) that triggers firewall and RAM issues. |
| Embed & IoT Studio | Hardware development & firmware flashing | Native serial port monitor, real-time baud switching, and direct hardware register observation for ESP32/STM32/Pico. | Fragmented between Arduino IDE, Java-based tools, or complex CLI command configurations. |
| Science Mode | Computational research & bioinformatics | Specialized pipelines for biological data visualization, structure models, and vector mathematics. | Requires switching across external web dashboards and disparate CLI scientific tools. |
| Extension Studio | Extension management & ecosystem customization | Native Open VSX registry integration with an isolated Node.js VS Code compatibility runner; zero Electron overhead. | VS Code proprietary marketplace vendor lock-in and heavy background runtime consumption. |
| Ardium Toolchain | Next-gen system programming with Ardium v2.3 | Official native compiler runner, Tree-sitter AST queries, RAII @owned ownership linting, and CoreUI live rendering. | Non-existent in third-party IDEs. MicroCode is the flagship workstation for the Ardium programming language. |
.code).aiAgent)⌘↵ Tool Approval Barrier until explicitly confirmed by the developer.EmbeddedDeviceDockView)serve-sim daemon, while physical Android devices and emulators mirror over ADB via scrcpy-server..database).apiClient).notebook).playground).remoteX).embedded).science).extensions)vscode-compat-host) without running Electron.@owned ownership analysis, and integrated compiler diagnostics.MicroCode combines low-level macOS engineering with modern autonomous AI architectures:
MicroCode is a fully autonomous AI workstation with human-in-the-loop safety controls:
⌘↵ Interactive Approval Gate: High-risk tool calls (writing files, executing shell scripts, running git commands) pause at an interactive safety barrier requiring explicit developer approval.research for codebase indexing, flutter_a11y_agent for accessibility audits, or isolated self workers)./goal (exhaustive execution), /schedule (timed background monitors), /browser (web scraping & docs), /grill-me (design interviews), and /boost (deep reasoning).A next-generation editing experience powered by speculative multi-token decoding:
⌥↵).Test mobile and desktop applications without leaving your code editor:
serve-sim capture daemon.scrcpy-server streaming pipeline with full touch, scroll, and keyboard forwarding.Extensibility without Electron's memory bloat:
vscode-compat-host) emulating VS Code extension APIs for syntax grammars, themes, and snippets.Everything you need to build, test, and ship in one unified native workspace:
Designed for modern distributed engineering teams:
Full first-class IDE support for the Ardium programming language:
@owned ownership tracking.ArdiumRunner.High-performance compute offloading when local hardware isn't enough:
flowchart TD
subgraph App["MicroCode.app (Native macOS)"]
direction TB
subgraph UIComponents["SwiftUI + AppKit UI"]
Tabs["Code Editor Tabs"]
Planning["AI Planning Workboard"]
Studios["Developer Studios (DB, API, CI/CD, Cell)"]
end
subgraph MetalEngine["Metal Shader Engine"]
DeviceDock["120 FPS Device Dock"]
GPUText["GPU Text Rendering"]
LiquidGlass["Liquid Glass UI"]
end
subgraph ObjCCore["Objective-C++ Core"]
TextBuffer["Text Buffer"]
TokenLayout["Token Layout"]
MemPrimitives["Memory Primitives"]
end
subgraph RustBackend["Rust Backend (Axum + Tokio)"]
AIProviders["AI Multi-Provider (Gemini, Claude, GPT)"]
AgentEngine["Autonomous Agent & Planning Engine"]
TreeSitter["Tree-sitter Indexer & RepoMap"]
MCPManager["MCP Client / Server Protocol Manager"]
CRDTSync["CRDT Realtime Sync Engine (P2P Collab)"]
CandleML["Candle ML RAG Vector Store"]
GitEngine["Git Engine & Sandbox Boundary"]
PTYTerminal["PTY Terminal Harness (ANSI TrueColor)"]
WasmtimeSandbox["Wasmtime Sandbox Extension Host"]
end
UIComponents -->|"C ABI / Unix Socket / HTTP"| RustBackend
MetalEngine -->|"C ABI / Unix Socket / HTTP"| RustBackend
ObjCCore -->|"C ABI / Unix Socket / HTTP"| RustBackend
end
subgraph External["External Subsystem Integration"]
DeviceStream["Embedded Device Stream (scrcpy ADB / serve-sim iOS)"]
OpenVSX["Open VSX & Node.js Extension Compat Host"]
ArdiumToolchain["Native Ardium v2.3 Compiler & Playground Runner"]
CloudGPU["Dotmini Cloud GPU Cluster Dispatch (A100/H100)"]
end
RustBackend --> External
| Subsystem | Technology | Responsibility |
|---|---|---|
| UI & Windowing | SwiftUI + AppKit | Declarative macOS UI, native windowing, trackpad gestures |
| GPU Rendering | Metal Shaders | 120 FPS device frame shaders, GPU-accelerated text & animations |
| Core Text Buffer | Objective-C++ & C ABI | Memory-efficient text gap buffer and high-performance primitives |
| Backend Core | Rust (Axum + Tokio) | Async microservices, multi-provider AI streaming, Git, process harness |
| Syntax & AST | Tree-sitter | Real-time AST parsing for 30+ languages, symbol indexing & RepoMap |
| Semantic Intelligence | Candle ML | On-device vector embeddings and local RAG code search |
| Extension Runtime | Open VSX + Node.js + Wasmtime | Marketplace registry, VS Code API compatibility, and WASM sandboxing |
| AI Tool Protocol | Model Context Protocol (MCP) | Client & server support for Anthropic MCP tools & resources |
| Device Simulation | ADB / scrcpy + serve-sim | Hardware-accelerated screen mirroring for Android & iOS Simulator |
| Realtime Sync | CRDT Engine | Decentralized, conflict-free collaborative editing and presence |
| Native Toolchains | Swift, Rust, Ardium v2.3 | Multi-language compilation, diagnostics, and interactive playground |
| Requirement | Version |
|---|---|
| macOS | 13.0 (Ventura) or later |
| Xcode | 15.0+ |
| Rust | 1.75+ |
| Node.js | 18+ (optional, for extension development) |
Download the latest .dmg or .pkg from Releases.
For detailed instructions and prerequisites, see BUILDING.md.
# Clone the repository
git clone https://github.com/Dotmini/microcode.git
cd microcode
# 1. Standard full build (Rust backend + Swift frontend -> MicroCode.app)
./build.sh
# 2. Fast development build with auto-deployment to ~/Applications
./build_dev.sh
# 3. Distribution release (universal binary + DMG + PKG)
./build_distribution.sh
build.sh)./build.sh --debug # Build with debug symbols
./build.sh --frontend-only # Recompile Swift app only (uses existing Rust libs)
./build.sh --backend-only # Recompile Rust backend and FFI only
./build.sh --clean # Clean build artifacts before compiling
./build.sh --external-ssd # Offload caches & artifacts to external SSD
microcode/
├── MicroCode/ # Swift sources (SwiftUI + AppKit)
│ ├── Views/ # UI components (Editor, AI Workboard, Studios, Device Dock, Git)
│ ├── Services/ # AI agent loop, SuperTab, CRDT, LSP bridge, Device streaming
│ ├── SyntaxEngine/ # Syntax highlighting and theme engine
│ └── Models/ # AppState, ImplementationPlan, tool approval gates, config
├── MicroCodeSupport/ # Objective-C++ core and text buffer bridge
├── MicroCodeKernel/ # Native AppKit/Metal text kernel
├── MicrocodeCoreSupport/ # Rust FFI headers and C ABI bridge
├── backend/ # Rust backend server (Axum + Tokio)
│ └── src/
│ ├── ai.rs # Multi-provider AI engine (Gemini, Claude, GPT, DeepSeek, etc.)
│ ├── agent.rs # Autonomous AI agent loop with tool approval gate
│ ├── indexer.rs # Tree-sitter file indexer & symbol search
│ └── main.rs # Axum HTTP API & WebSocket server
├── microcode_core/ # Rust shared core library (libmicrocode_core.a)
├── extension-host/ # Sandboxed WASM extension runtime
├── vscode-compat-host/ # VS Code extension compatibility layer
├── Vendor/ # Pre-compiled simulator & device capture utilities (serve-sim, scrcpy)
├── tools/ # Developer utilities, migration & scratch tests
└── .github/workflows/ # CI/CD (build, sign, release)
MicroCode takes security seriously:
MicroCode supports 7 AI providers out of the box. Configure via Settings → AI Providers:
| Provider | Models | API Key Env |
|---|---|---|
| Gemini | 3.1 Pro, 2.5 Pro, 2.5 Flash | GEMINI_API_KEY |
| OpenAI | GPT-5, GPT-4o, o3, o4-mini | OPENAI_API_KEY |
| Claude | 4.7 Opus, Sonnet 4, 3.5 Haiku | ANTHROPIC_API_KEY |
| DeepSeek | V4, Chat, Coder | DEEPSEEK_API_KEY |
| Grok | grok-3, grok-3-mini | GROK_API_KEY |
| Qwen | qwen-max, qwen-turbo | QWEN_API_KEY |
| GLM | glm-4-plus | GLM_API_KEY |
We welcome contributions! Please:
git checkout -b feature/amazing)./generate_checksums.sh)|
Tirawat Nantamas (ถิรวัฒน์ นันตมาศ) Founder & CEO Dotmini Company Limited (บริษัท ดอทมินิ จำกัด) |
ข้อกำหนดทางกฎหมายและสิทธิ์ในทรัพย์สินทางปัญญา (Legal Notice)
ซอฟต์แวร์ ซอร์สโค้ด สถาปัตยกรรม และองค์ประกอบทั้งหมดของ MicroCode เป็น ทรัพย์สินทางปัญญาของ บริษัท ดอทมินิ จำกัด (Dotmini Company Limited) แต่เพียงผู้เดียวเท่านั้น
โปรเจกต์นี้เปิดให้เข้าถึงซอร์สโค้ด (Source-Available) ภายใต้สัญญาอนุญาต Elastic License v2 (ELv2) และเงื่อนไข Business Source License (BSL) โดยมีข้อกำหนดห้ามอย่างเด็ดขาดดังต่อไปนี้:
ข้อกำหนดและสัญญาอนุญาตนี้อยู่ภายใต้บังคับแห่ง กฎหมายไทย (Thai Law):
ข้อพิพาทใดๆ ให้ระงับโดยศาลทรัพย์สินทางปัญญาและการค้าระหว่างประเทศกลาง ณ กรุงเทพมหานคร ประเทศไทย
Developed by Dotmini Company Limited
Copyright © 2024-2026 Tirawat Nantamas — Dotmini Company Limited (บริษัท ดอทมินิ จำกัด). All rights reserved.
327 commits
Swift
82.6%
Rust
11.5%
Python
1.3%
Shell
1.1%
TypeScript
1.1%
C
1.1%