---
title: Extensions
summary: What a SpaceMIX extension is, where to start building one as a person or as an AI agent, and the guide, reference and host API pages of the Extensions area.
audience: both
since: protocol 1
---

# Extensions

The apps in SpaceMIX's sidebar (Tasks, Notes, Files, Chat, Dashboards) are **extensions**: sandboxed packages anyone can build, publish and install. The assistant's chats, Projects, Widgets and Settings belong to SpaceMIX itself. These pages describe the contract between an extension and SpaceMIX, exactly as the code behaves today.

Build an extension when you need a place to work in, with data of its own, actions that change things or a connection to an outside service. For an at-a-glance view of data that installed extensions already have, a [widget](../widgets/index.md) is enough.

## What an extension is

An extension has two halves, and both are required:

- **A view** the user works in: a React component that runs in its own sandboxed frame.
- **Data the assistant can reach.** Anything an extension shows a person, the assistant must be able to reach too. You get this by declaring collections and actions in the manifest; the host turns them into assistant tools.

An extension is a package: a manifest, one JavaScript bundle and one CSS file. Its code reaches SpaceMIX only through `host` from `@spacemix/sdk`, and the host checks every call against the permissions in the manifest. Servers install packages from the registry in SpaceMIX Hub and keep them up to date.

## Where to start

**If you are a person building an extension:**

1. [Getting started](../guide/getting-started.md): the folder layout, a first extension, the development loop.
2. [Giving the assistant your data](../guide/giving-the-assistant-data.md): collections, actions and MCP servers.
3. [Self-contained](../guide/self-contained.md) and [Writing for the model](../guide/writing-for-the-model.md).
4. [Publishing](../guide/publishing.md) and the [Checklist](../guide/checklist.md).

Prefer to have the assistant write it? Use [the Studio](../guide/studio.md) inside SpaceMIX.

**If you are an AI agent building an extension:** read [For agents](../agents.md). It has the loop, how a chat gets its tools, the core's own tools, the rules that fail builds, and a link to `llms-full.txt`, every page in one file.

**If you depend on the contract** (a host builder, a reviewer, a tool author): start with [Contract](../contract.md), which says what is stable and how it changes, and the [Changelog](../changelog.md).

## The pages

| Section | Pages |
|---|---|
| Guide | [Getting started](../guide/getting-started.md), [Extensions in their own repository](../guide/outside-the-repo.md), [Self-contained](../guide/self-contained.md), [Giving the assistant your data](../guide/giving-the-assistant-data.md), [Writing for the model](../guide/writing-for-the-model.md), [Notifications and events](../guide/notifications-and-events.md), [Being found in Search](../guide/search.md), [The Studio](../guide/studio.md), [Publishing](../guide/publishing.md), [Checklist](../guide/checklist.md) |
| Reference | [Manifest](../reference/manifest.md), [Permissions](../reference/permissions.md), [Package format](../reference/package-format.md), [Protocol](../reference/protocol.md), [React hooks](../reference/react.md), [UI kit](../reference/ui.md), [Projects](../reference/projects.md), [Registry](../reference/registry.md) |
| Host API | [The host object](../reference/host/index.md) and one page per `host.*` namespace, from [Storage](../reference/host/storage.md) to [Environment and identity](../reference/host/env.md) |

An extension that shows the team's widgets in its own view (as Dashboards and Team Chat do) uses [Widgets API](../reference/host/widgets.md); the widget frame itself is in the [Widgets](../widgets/index.md) area.

## Stability labels

Reference pages carry a label:

- **stable**: won't break within protocol 1 and the SDK 0.x minor line, as [Contract](../contract.md) defines.
- **experimental**: may change; the page says why.
- **internal**: not for extensions.

The full meanings, and the list of experimental items with their reasons, are in [Stability labels](../contract.md#stability-labels).
