ViteHub is still experimental. Expect bugs and breaking changes.

How ViteHub fits together

Follow the flow from package setup to runtime helpers and agent capabilities.

ViteHub connects portable declarations to runtime behavior through package-owned integrations. The same flow appears across primitives and Agents: configure the integration, declare named work when needed, inspect generated output, and call a stable Runtime Helper.

The flow

StepViteHub termWhat happens
1Vite IntegrationA package plugs into Vite build and dev behavior.
2DefinitionA file declares named work or state when the primitive needs it.
3Discovery IdentityThe discovered name comes from file location.
4Runtime RegistryGenerated runtime code maps discovered names to lazy-loaded Definitions.
5Provider OutputHost-specific files, bindings, routes, functions, or crons are emitted when needed.
6Runtime HelperApplication code uses the primitive through a stable import.
7CapabilityAgents receive selected model-facing abilities without gaining every primitive.

Package ownership

Package pages describe package-owned behavior. Concept pages describe the vocabulary that crosses packages.

For example, Workspace owns the Workspace File Tree and Sources. The Agent Package can compose visible Source Instructions into model-backed Agent Driver instructions, but it does not make Source retrieval an Agent-owned concept.

Agent composition

An Agent Definition selects one Agent Driver. It may attach Capabilities, define an Agent Invoker resolver, use Workspace context, and run through Agent Invocations.

Capabilities sit above the Agent Driver. They can contribute tools, instructions, trigger behavior, metadata, policy, requirements, and invocation context values, but they do not dynamically grant new Capabilities at runtime.

Inspect it

For one feature, trace the path from vite.config.ts, to the Definition file, to the Runtime Helper call. When a package emits .vitehub files, treat them as proof of generated behavior unless the package documents a stable #vitehub/... import.

Next steps

Copyright © 2026