vtcode (binary)
June 9, 2026 · View on GitHub
Root AGENTS.md | CLI entrypoint, session bootstrap, agent runloop wiring.
Modules
main.rs binary entry | agent/ runloop + subagent dispatch | cli/ CLI handlers | startup/ first-run + onboarding | updater/ self-update | codex_app_server/ app server bridge | main_helpers/ tracing + runtime init
Rules
- Thin binary — all runtime logic in
vtcode-core. This crate wires CLI args toAgent::run(). - Uses
mimallocas global allocator — do not change. vtcode_ui::tui::panic_hookinstalls custom panic handler — must run before any output.agent/runloop/contains the single-agent runloop. Multi-agent is invtcode-core::subagents.
Gotchas
main_helpershandles runtime relaunch context — do not duplicate init logic inmain.rs.load_dotenv()must run before config load to pick up.envAPI keys.