Skip to main content

Crate vtcode_battery_pack

Crate vtcode_battery_pack 

Source
Expand description

Battery Pack Rust Book Blog crates.io docs.rs

§vtcode-battery-pack

Curated battery pack of VT Code crates for building Rust coding agents with OS-native sandboxing, multi-provider LLM support, and extensible skills.

§What’s Included

FeatureCratesDescription
configvtcode-configConfig loader components shared across VT Code
commonsvtcode-commonsShared traits for paths, telemetry, and error reporting
macrosvtcode-macrosProcedural macros for VT Code
protocolsvtcode-acpACP bridge and client implementation for Zed
executionvtcode-bash-runner, vtcode-exec-eventsShell execution sandbox and execution telemetry
statevtcode-session-storeSession state, durable loop state, and progress tracking
toolsvtcode-utility-tool-specs, vtcode-indexerTool specs and code indexing/search
evalvtcode-evalAgent evaluation framework
authvtcode-authOAuth and credential storage

§Quick Start

cargo bp add vtcode-battery-pack

Or pick a subset:

cargo bp add vtcode-battery-pack --features config,commons,execution

Start a new project from the minimal template:

cargo bp new vtcode-battery-pack --template minimal

§Presets

  • default — execution + state + tools + auth
  • full — every crate in the pack

§Why not vtcode-core / vtcode-ui?

The currently published vtcode-core and vtcode-ui versions on crates.io have compilation issues with their rmcp dependency. They also depend on internal crates (vtcode-a2a, vtcode-mcp, vtcode-llm, vtcode-skills, vtcode-safety) that are not published separately. These will be added to the battery pack once they are available and stable on crates.io.

§Resources

  • Battery Pack — core tooling for creating and managing packs
  • Rust Book — guide to battery packs in the Rust ecosystem
  • Blog Post — announcing battery packs for Rust
  • VT Code — the full coding agent application these crates are extracted from

§License

Licensed under either of:

at your option.

§Categories

§Authentication

OAuth and credential storage

Pick mode: any

FeatureCrates

§Evaluation

Agent evaluation framework

Pick mode: any

FeatureCrates

§Execution

Shell execution, PTY management, and telemetry

Pick mode: any

FeatureCrates

§Infrastructure

Config loading, shared utilities, and procedural macros

Pick mode: any

FeatureCrates

§Agent Protocols

Open protocols: ACP (Zed)

Pick mode: any

FeatureCrates

§State & Memory

Session state, durable loop state, and progress tracking

Pick mode: any

FeatureCrates

Tool specs, code indexing, fuzzy search

Pick mode: any

FeatureCrates

§Features

FeatureDescriptionCrates
auth[vtcode-auth]
commons[vtcode-commons]
config[vtcode-config]
default[vtcode-auth, vtcode-bash-runner, vtcode-exec-events, vtcode-indexer, vtcode-session-store, vtcode-utility-tool-specs]
eval[vtcode-eval]
execution[vtcode-bash-runner, vtcode-exec-events]
full[rmcp, vtcode-acp, vtcode-auth, vtcode-bash-runner, vtcode-commons, vtcode-config, vtcode-eval, vtcode-exec-events, vtcode-indexer, vtcode-macros, vtcode-session-store, vtcode-utility-tool-specs]
macros[vtcode-macros]
protocols[rmcp, vtcode-acp]
state[vtcode-session-store]
tools[vtcode-indexer, vtcode-utility-tool-specs]

§Battery pack contents

§Authentication

OAuth and credential storage

NameDescription
authAuthentication and OAuth flows
vtcode-authAuthentication and OAuth flows shared across VT Code

§Evaluation

Agent evaluation framework

NameDescription
evalAgent evaluation framework: pass@k / pass^k metrics
vtcode-evalAgent evaluation framework for pass@k / pass^k metrics

§Execution

Shell execution, PTY management, and telemetry

NameDescription
executionShell execution sandbox and execution telemetry
Crates: vtcode-bash-runner, vtcode-exec-events
vtcode-bash-runnerCross-platform shell execution helpers
vtcode-exec-eventsStructured execution telemetry event schema

§Infrastructure

Config loading, shared utilities, and procedural macros

NameDescription
commonsShared traits for paths, telemetry, and error reporting
configConfig loader components shared across VT Code
macrosProcedural macros for VT Code
vtcode-commonsShared traits for paths, telemetry, and error reporting
vtcode-configConfig loader components shared across VT Code
vtcode-macrosProcedural macros for VT Code

§Agent Protocols

Open protocols: ACP (Zed)

NameDescription
protocolsACP protocol support for Zed ACP
Crates: rmcp, vtcode-acp
vtcode-acpACP bridge and client implementation for Zed

§State & Memory

Session state, durable loop state, and progress tracking

NameDescription
stateSession state, loop persistence, and progress tracking
vtcode-session-storeUnified per-session state store with ThreadEvent log

§Tools & Search

Tool specs, code indexing, fuzzy search

NameDescription
toolsTool specs, code indexing, and fuzzy search
Crates: vtcode-indexer, vtcode-utility-tool-specs
vtcode-indexerWorkspace file indexer, fuzzy search, and markdown-backed storage
vtcode-utility-tool-specsJSON schemas for utility, file, and collaboration tool surfaces

§Templates

NameDescription
fullFull-featured coding agent with all battery-pack features
minimalMinimal coding agent project scaffold