← 开源

VT Code is an open-source agent harness.

ApplicationsCodingRust
增长势头
+024 小时新增 Star0.0%
926
Star
104
Fork
+6
本周
34
贡献者
创建于 2025-08-29 · 更新于 2026-12-05 · 今日第 15837 名
主要开发者
README

VT Code is an open-source coding agent for everyone.


Desktop app demo — see also the terminal TUI demo

Overview

VT Code is an open-source coding agent for the terminal TUI and native macOS app, sharing one runloop under MIT OR Apache-2.0 (see License).

The model surface stays lean: six default tools (apply_patch, exec_command, write_stdin, search_tools, record_decision, message_user; plus code_search in the advanced profile) backed by 33 builtin registrations. Skills, MCP servers, subagents, planning, and web research load on demand via search_tools. See Tool Specifications. Start with Quick start.

At a glance What you get
Ship faster Agent edits, tests, and reviewable diffs in your repo.
Stay safe Sandboxed runs under an auditable command policy.
Run long Resumable headless exec with snapshots and subagents.
Extend MCP servers, skills, and plugins on demand.
Pick models Per-task hosted or local providers.

Quick start

Three steps on macOS, Linux, or Windows/WSL. Full options: installation guide.

1. Install

# Review the installer script before running it: https://github.com/vinhnx/vtcode/blob/main/scripts/install.sh
curl -fsSL https://raw.githubusercontent.com/vinhnx/vtcode/main/scripts/install.sh | bash
vtcode --version

Alternatives: brew install vinhnx/tap/vtcode, cargo install vtcode, Desktop app, or the Windows install.ps1 script. If vtcode is not found, reopen your shell to refresh PATH.

2. Configure

In your project directory, scaffold config and authenticate:

cd path/to/your/project
vtcode init
vtcode secret add openai

init scaffolds vtcode.toml, .vtcode/, and AGENTS.md (review before committing). Replace openai with your provider; keys stay in secure storage. Subscription or SSO options: getting started, provider guides, OAuth.

Caution: Keep API keys out of Git and vtcode.toml, and never commit a workspace .env file.

3. Run

vtcode

Ask one focused question in the TUI, review the diff and test results, then commit.

Usage

Core commands (full list in command reference):

Goal Command
Start the TUI vtcode
Ask without tools vtcode ask "explain Rc vs Arc"
Run a task headlessly vtcode exec "refactor main.rs"
Review pending changes vtcode review
Resume the last session vtcode continue
Roll back a snapshot vtcode revert
Inspect a run log vtcode trajectory

Trust levels:

  • ask never runs tools.
  • review inspects uncommitted changes without the agent loop.
  • exec runs the full tool loop and needs workspace trust: approve the TTY prompt, or set VTCODE_TRUST_WORKSPACE=full-auto for non-TTY runs (deny refuses instead).

For larger tasks, start read-only and review the turn diff. See interactive mode, exec mode, and full automation.

Desktop app

Native macOS app (macOS 15+) sharing the CLI runloop, providers, tool policy, sandboxing, sessions, config, and credentials. Configure a provider first (Quick start).

brew install --cask vinhnx/tap/vtcode-desktop

Update with brew upgrade --cask vinhnx/tap/vtcode-desktop. Without Homebrew, use the latest release or vtcode desktop --install, then launch with vtcode desktop or from Finder. The cask ships Apple Silicon builds; Intel Macs install from source. See the installation guide.

Warning

First launch needs one-time approval for ad hoc-signed builds (Homebrew cask included): open the app from Applications, click Open Anyway in System Settings › Privacy & Security, then reopen it. Notarized releases skip this. See desktop workspace.

Documentation

Start from the canonical documentation index.

Start

Use

Automate

Extend

Develop

Development

27-crate workspace (full list in the architecture guide). The default build covers the root binary plus vtcode-core, vtcode-skills, vtcode-tui-runtime, and vtcode-ui. The sketch shows the core harness path, not every crate:

graph LR
    BIN["vtcode binary"] --> CORE["vtcode-core harness"]
    CORE --> LLM["vtcode-llm"]
    CORE --> SAFETY["vtcode-safety"]
    CORE --> EVENTS["vtcode-exec-events (crates/common)"]
    CORE --> MEMORY["vtcode-memory"]
    CORE --> SKILLS["vtcode-skills"]
    CORE --> TUI["vtcode-tui-runtime"]
    CORE --> UI["vtcode-ui"]
Loading

Build with Rust 1.100.1+ (edition 2024); CI pins dependencies with --locked:

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 (add --test for tests)
cargo nextest run          # tests via nextest (see testing guide)

Match CI warnings locally with RUSTFLAGS="-D warnings" cargo check --locked. See development and testing. Release binaries and notes live on GitHub releases.

Contributing

VT Code is open source and community-driven. Code, docs, evals, and fixes are welcome — include vtcode trajectory output in bug reports where possible. Before a PR, read contributing and pick a good first issue or help wanted item.

Security

Report vulnerabilities privately via GitHub private vulnerability reporting. See the security policy.

Community

The Code of Conduct keeps review constructive. Contact: vinhnguyen2308 [at] gmail [dot] com.

Thanks to our contributors

View all contributors (31)

Security Advisors

   

Main Contributor

 

Core Contributors

                 

Contributors

                                     

Support VT Code

Current sponsors: Codemod and CodeRabbit.

   

If you like VT Code, please star the repo and share it. Thank you for growing the community.

Star History

License

First-party code is MIT OR Apache-2.0, available under either LICENSE-MIT or LICENSE (Apache-2.0). Keep the license and copyright notices when you distribute copies. Third-party code keeps its original licenses, listed in THIRD-PARTY-NOTICES.

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载