Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

VTCode

> AI 编程
Open source

VT Code is a Rust coding agent with LLM-native code understanding, OS-native sandboxing, and multi-provider support.

783 stars0 likes0 views
WebsiteGitHub

About

VT Code is a Rust coding agent with LLM-native code understanding, OS-native sandboxing, and multi-provider support.

[!TIP] New here? Start with Installation, then Getting Started.

Contents

  • Overview
  • Why VT Code
  • Architecture
  • Quick start
    • 1. Install
    • 2. Configure
    • 3. Run
    • WebMCP browser bridge (opt-in)
  • What's inside
    • Commands
    • Everyday recipes
  • Documentation
  • Development
  • Contributing
    • Contributors
  • Support
    • Sponsorship
  • License

Overview

VT Code is an open-source terminal coding agent written in Rust: one static binary for quick interactive sessions and long-running autonomous work alike, no IDE required, no context left behind. It is a harness, not just an LLM wrapper: the model reasons; the runtime supplies everything else: tools, context, sandboxing, state, and verification: turning raw model output into safe, reviewable progress, entirely in your terminal.

The full documentation catalog lives in the docs overview.

[!NOTE] Status: Active development. Local inference and some automation flows are experimental and may change between releases.

Behind the build

  • Building VT Code, a year in covering harness design, evals, security, and lessons learned.
  • Podcast · Video

Why VT Code

VT Code is built for work that takes more than one prompt: the model reasons, and the harness supplies the context, tools, safeguards, state, and verification that turn reasoning into dependable, reviewable progress.

In practice, that means:

What can go wrong How VT Code responds
Long tasks lose focus Dynamic context assembly, project instructions, auto-compaction, and bounded tool output keep the active context useful while preserving recoverable work. Runtime guidance · Architecture
Generated commands can cause damage Policy checks and sandboxed, fail-closed execution limit what commands can do, with defenses against injection, path and symlink escape, and environment leakage. Security model
A session is interrupted Durable sessions can be resumed with vtcode continue; workspace snapshots make changes easy to inspect and restore with vtcode snapshots and vtcode revert. Commands
“Done” is asserted without proof Built-in evals verify the environment instead of trusting the agent’s report, using pass@k and pass^k for repeatable measurement. Eval guide
Big changes ship unreviewed The Planning Workflow keeps planning read-only: iterate on a /plan draft, approve it at a review gate, then hand off to build or auto for implementation. Planning workflow

You get a terminal-native workflow that is:

  • Inspectable: every run has a durable ThreadEvent record.
  • Resumable: continue where you left off, or fork a session for a new direction.
  • Parallelizable: run isolated loops in git worktrees with propose/verify sub-agents (Loop engineering).
  • Extensible: connect model providers and capabilities through MCP, Skills, Plugins, ACP, A2A, and WebMCP (MCP · Providers).
  • Keyboard-first: work comfortably in the TUI, with the terminal remaining the source of truth.

VT Code is not just a model producing a plausible next response. It is a runtime you can inspect, resume, extend, and verify.

Architecture

One binary, four layers. Everything the model touches goes through the harness; nothing bypasses it.

…
  • Entry points: the TUI, headless exec/ask, cron schedules, and editors over ACP all drive the same loop.
  • Harness: context assembly, policy checks, and sandboxing wrap every model turn; the ThreadEvent log records everything for replay and rollback.
  • Extensions and models: attach without patching the core; swap providers without touching your workflow.

For layer-by-layer details, extension seams, and internal composition rules, see the Architecture guide.

Quick start

1. Install

bash
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
# or: brew install vinhnx/tap/vtcode
# or: cargo install vtcode

2. Configure

bash
cd path/to/your/project
vtcode init         # scaffolds config + AGENTS.md; review before committing
vtcode secret add openai   # stores the API key in your OS keyring

/secret add inside the TUI does the same. vtcode login covers OAuth providers (ChatGPT, GitHub Copilot); plain env vars and workspace .env still work for CI. See Getting started for the credential resolution order.

[!CAUTION] Never commit API keys or put them in vtcode.toml.

3. Run

bash
vtcode                  # interactive TUI: the whole loop is install, init, run

See Commands for the complete CLI surface, including headless exec, one-shot ask, and session resume.

WebMCP browser bridge (opt-in)

Pair the TUI with a browser editor for authenticated, bounded workspace editing:

bash
/webmcp pair     # inside the TUI

See the WebMCP user guide for hosts and deployment.

What's inside

One static Rust binary: no runtime dependencies, no plugins to install, nothing to wire up. Everything below ships in the default build.

At a glance: durable sessions · sandboxed execution · every major model · MCP, Skills & plugins · terminal-native TUI · built-in evals

Commands

Bare vtcode opens the interactive TUI. Four subcommands cover most of the work:

bash
vtcode ask "explain Rc vs Arc"    # one-shot answer, no session, no tools
vtcode exec "refactor main.rs"    # headless task with the full tool loop
vtcode review                     # agent review of uncommitted changes
vtcode eval --suite suite.json    # verify behavior with pass@k metrics

The complete CLI surface, flags, and exit codes are documented in the command reference.

A second tier handles session lifecycle and day-to-day operations:

Command Purpose
vtcode continue Resume the last session, or fork it into a new one with --session-id
vtcode schedule Durable recurring prompts, by cron or one-shot; install-service survives restarts
vtcode secret Store provider API keys in your OS keyring, never in shell history or workspace files
vtcode models Inspect, test, and compare providers and models
vtcode snapshots / vtcode revert List and roll back to workspace snapshots
vtcode tool-policy Allow or deny specific tools per workspace
vtcode trajectory Pretty-print run logs for debugging and audits

vtcode analyze, vtcode check, vtcode schema tools, vtcode man, and vtcode update round out the operator surface. See vtcode --help for the full list.

Everyday recipes

bash
# Review only the uncommitted diff, then exit with a verdict
vtcode review

# Nightly dependency audit as a durable cron job
vtcode schedule create --cron "0 9 * * 1" --prompt "check for outdated deps and open an issue if any have CVEs"

# Resume yesterday's session and fork it for a new experiment
vtcode continue --session-id 

# See exactly what the agent did in the last run
vtcode trajectory

Headless exec usage is covered in the exec mode guide; durable cron schedules in the scheduled tasks guide.

Documentation

Layer Guides
Start Installation · Getting started · Wiki
Use TUI · CLI · WebMCP · Automation · Planning · Configuration
Extend Skills · Plugins · MCP · Editors (ACP)
Operate Safety · Protocols · Loop engineering · Architecture

The full catalog lives in the Documentation Index.

The WebMCP hosted app (fallback mirror) pairs with the TUI bridge; deployment details live in the WebMCP deployment reference.

Development

mermaid
graph LR
    types --> config --> core --> tools --> agent --> TUI

Rust stable, edition 2024, MSRV 1.93. Clone and run the fast gate:

bash
git clone https://github.com/vinhnx/vtcode.git
cd vtcode
./scripts/run-debug.sh     # build and launch a debug binary
./scripts/check-dev.sh     # fast gate: clippy, fmt, check (

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustagentcargoclicodingagent

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.