Build the right kind of extension

These guides start with product and architecture decisions, then move through package composition, a barebone CLI profile, contribution design, lifecycle policy, and distribution. For hands-on builds, continue to the Extensions tutorials.

What extensions add to existing CLI features

Existing featureExtension package benefit
Meta-toolsBundle one or more tools with an id, version, scope, ownership, atomic installation, and diagnostics.
External agentsShip focused agent prompts beside the tools they depend on and retain package provenance.
Permission manager and hooksReuse the same authorization and lifecycle path rather than inventing a second executor.
User and project configurationChoose capabilities that follow a developer or stay owned by one repository.
Interactive, sub-agent, teammate, RPC, and ACP runtimesDiscover one deterministic extension snapshot across supported entrypoints.
Bare modeKeep ambient startup integrations disabled while retaining explicitly installed declarative capabilities and reviewed runtime extensions.