# vtcode (binary)
## Modules
## Rules
- Thin binary — all runtime logic in `vtcode-core`. This crate wires CLI args to `Agent::run()`.
- Uses `mimalloc` as global allocator — do not change.
- `vtcode_tui::panic_hook` installs custom panic handler — must run before any output.
- `agent/runloop/` contains the single-agent runloop. Multi-agent is in `vtcode-core::subagents`.
## Gotchas
- `main_helpers` handles runtime relaunch context — do not duplicate init logic in `main.rs`.
- `load_dotenv()` must run before config load to pick up `.env` API keys.