Open-source coding agent with semantic code intelligence via Tree-sitter, supporting multiple LLM providers with automatic failover and efficient context management.
VT Code is an open-source semantic coding agent written in Rust (86.7%), developed by Senior iOS Engineer Nguyễn Xuân Vĩnh under MIT License.
Core Capabilities#
Tree-sitter Semantic Parsing: Code navigation for Rust, Python, JavaScript/TypeScript, Go, Java, Swift, Bash - including go-to-definition, find-references, hover, symbol search.
Multi-LLM Providers: OpenAI, Anthropic, Google Gemini, xAI (Grok), DeepSeek, OpenRouter, Z.AI, Moonshot AI, MiniMax, HuggingFace Inference, Ollama (local & cloud), LM Studio (local), with automatic failover.
Agent Protocols: ACP (Agent Client Protocol) with Zed IDE native integration; A2A (Agent2Agent) with Agent Discovery, Task Lifecycle, SSE Streaming, JSON-RPC 2.0; Anthropic API compatibility; Open Responses Specification.
Subagents: explore, plan, general, code-reviewer, debugger.
Security & Context#
Security Mechanisms: Multi-layer defense model, command whitelist + parameter validation, workspace isolation, OS-native sandboxing (macOS Seatbelt, Linux Landlock + seccomp), tool policies, three-tier Human-in-the-Loop approval, audit trail.
Context Management: Decision Ledger for persistent decision history, intelligent error recovery, conversation summarization, token budget tracking.
Installation#
# macOS & Linux
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
# Windows PowerShell
irm https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.ps1 | iex
# Cargo
cargo install vtcode
# Homebrew
brew install vinhnx/tap/vtcode
Architecture#
Modular multi-crate design: vtcode-core, vtcode-llm, vtcode-tools, vtcode-indexer, vtcode-file-search, vtcode-process-hardening, vtcode-acp-client, vtcode-bash-runner, vtcode-config, etc.
Tech Stack: Rust + Ratatui + Crossterm (TUI) + Tokio (async) + Tree-sitter + Ripgrep.
Editor Integration#
- VS Code Extension (native)
- Zed Extension (ACP protocol)
- Compatible with Cursor, Windsurf and other VS Code-compatible editors