> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bastani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Reference

> Exact contracts: CLI, settings, environment variables, keybindings, tools, session format, provider, model, compaction, extension, SDK, RPC, and TUI references.

# Reference

Reference pages state exact contracts. They use stable command, flag, setting, type, event, method, and tool names as headings, and they do not carry a tutorial narrative. If you want to learn a capability rather than look one up, start at [Guides](/guides) or [Build with Atomic](/build).

## Everyday contracts

* [CLI reference](/reference/cli) — every command, flag, argument, and environment variable.
* [Settings](/settings) — every settings field, with defaults and constraints.
* [Environment variables](/environment-variables) — Atomic/Pi aliases, provider credentials, and bash session metadata.
* [Keybindings](/keybindings) — default shortcuts and custom keybinding actions.
* [Built-in tools](/tools) — the tools Atomic ships, and the [edit tool](/tools/edit) in detail.

## Domain contracts

* [Provider reference](/providers/reference) — stop reasons and credential resolution order.
* [Model configuration reference](/models/reference) — provider and model fields, overrides, variants, and API compatibility.
* [Compaction reference](/compaction/reference) — parameters, persistence, hooks, formats, settings, and historical formats.
* [Extension API reference](/extensions/api-reference) — `ExtensionContext`, `ExtensionCommandContext`, and `ExtensionAPI` methods.
* [Extension events](/extensions/events) — every event and its payload.
* [SDK API reference](/sdk/reference) — options, loaders, return values, run modes, and exports.
* [RPC protocol](/rpc/protocol) — commands, events, types, and errors.
* [TUI API reference](/tui/reference) — component, focusable, input, and rendering contracts.
* [Session format](/session-format) — the JSONL session file format, entry types, and `SessionManager` API.
* [Theme reference](/themes/reference) — theme file format, color tokens, and color values.
* [Skill reference](/skills/reference) — `SKILL.md` frontmatter and validation.
* [Subagent reference](/subagents/reference) — fallback models and reasoning levels.
* [Intercom reference](/intercom/reference) — the `intercom` tool contract and settings.
* [Package reference](/packages/reference) — filtering, scope, and deduplication.
* [Provider API reference](/custom-provider/api-reference) — provider config and model definition contracts.
* [Workflow API reference](/workflows/api-reference) — workflow, stage, and context contracts.

## Reference

* [Session format](/session-format) - JSONL session file format, entry types, and SessionManager API.

## Platform setup

* [Windows](/windows)
* [Termux on Android](/termux)
* [tmux](/tmux)
* [Terminal setup](/terminal-setup)
* [Shell aliases](/shell-aliases)

## Development

* [Development](/development) - local setup, project structure, and debugging.
