# 05 · Managing Context

> Canonical HTML: https://multiplayer.tech/blackbird/context/
> Manual Index: https://multiplayer.tech/blackbird/index.md

Conversation context lives locally on your machine (`store=false` on provider requests). The live view is a sequence of numbered blocks that you or the model can trim without losing originals.

## Operations on Blocks
- **Summarize:** Swaps a run of blocks for one short note; originals move intact to the archive.
- **Drop:** Removes blocks from the live view into the archive.
- **Restore:** Brings archived blocks back into the live view byte-for-byte.
- **Pin / Unpin:** Protects a block from being dropped or summarized.

Drop and summarize always leave instructions, pinned blocks, and open tool calls untouched. Compactions wait while prompt caches are warm and apply when cache goes cold, on provider switch, on overflow, or at turn end (pass `"apply": "now"` to apply immediately).

## Model Tools & Lua API
- **Model tools:** `context_list`, `context_compact`, `context_read` (up to 65,536 bytes per read).
- **Lua API:** `blackbird.blocks()`, `blackbird.compact(args)`, `blackbird.read_block(id)`, `blackbird.pin(ids)`.

## Manual Commands & Context Workbench
- `/context` — List live blocks (JSON in plain mode).
- `/originals` — List live and archived blocks.
- `/inspect {"id": 12}` — View original content of a live or archived block.
- `/compact JSON` — Run compaction directly, e.g. `/compact {"op": "drop", "ids": [12, 13]}`.
- `/restore ID` — Restore an archived block by ID.
- `/stats` — Exact context byte sizes (Blackbird never guesses token counts; token numbers come only from providers).
- `/workbench` — Split pane inside TUI (`F6` pin/unpin, `F7` drop/restore, `F8` apply now, `F9` toggle archived, `Ctrl-Left`/`Ctrl-Right` page).
