---
title: "Extensions"
description: "Turn team knowledge and existing Autohand capabilities into portable, versioned building blocks—or choose the Agent SDK when the extension belongs in your own application."
sidebar:
  label: "Overview"
seo:
  title: "Extensions Guides"
  description: "Guides for designing, composing, securing, and distributing Autohand Code extensions, including bare-mode workflows and the Agent SDK decision."
---

## 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](/tutorials/extensions).

**[Choose an extension model · Start here](/guides/extensions/choose-extension-model)**

Compare CLI extensions, the Code Agent SDK, meta-tools, external agents, skills, MCP, and hooks by ownership and runtime needs.

_Architecture guide_

**[Design an extension package](/guides/extensions/design-extension-package)**

Set a narrow capability boundary, choose declarative or trusted runtime contributions, and plan validation before writing files.

_Package design_

**[Barebone CLI + extensions · Composition](/guides/extensions/barebone-cli)**

Start Autohand with minimal ambient behavior and layer in only the project extensions your workflow needs.

_Minimal runtime guide_

**[Compose tools and agents](/guides/extensions/tools-and-agents)**

Design shell-backed tools, focused reviewers, tool allowlists, and evidence-oriented prompts that work together.

_Contribution design_

**[Adapt a Pi package · Migration](/guides/extensions/adapt-pi-package)**

Map Pi skills, tools, commands, UI, hooks, providers, and permission policy to Autohand's declarative and trusted runtime layers.

_Pi compatibility guide_

**[Scopes, security, and lifecycle](/guides/extensions/scopes-security-lifecycle)**

Choose user or project ownership, understand precedence, and operate installation and updates without bypassing authorization.

_Operations guide_

**[Distribute and maintain](/guides/extensions/distribute-and-maintain)**

Version packages, test copied installations, publish immutable source releases, and evolve the API safely.

_Release guide_

## What extensions add to existing CLI features

| Existing feature | Extension package benefit |
| --- | --- |
| Meta-tools | Bundle one or more tools with an id, version, scope, ownership, atomic installation, and diagnostics. |
| External agents | Ship focused agent prompts beside the tools they depend on and retain package provenance. |
| Permission manager and hooks | Reuse the same authorization and lifecycle path rather than inventing a second executor. |
| User and project configuration | Choose capabilities that follow a developer or stay owned by one repository. |
| Interactive, sub-agent, teammate, RPC, and ACP runtimes | Discover one deterministic extension snapshot across supported entrypoints. |
| Bare mode | Keep ambient startup integrations disabled while retaining explicitly installed declarative capabilities and reviewed runtime extensions. |
