Blackbird

Managing context

The conversation the model sees is a working view built from data stored in your session, on your machine. Each request sends the current live view to the provider; Blackbird does not ask the provider to keep the conversation for it.

The view is a list of numbered blocks: instructions, exchanges with the model and its tools, and notes. You and the model can change which blocks are live without losing the original material.

Operations

Archive and summarize skip instruction blocks, pinned blocks, and tool exchanges that are still open.

By default an archive or summary is queued while the provider's prompt cache is warm, and applied when the cache goes cold, when you switch provider, when the context overflows, or at the end of the turn. Passing "apply": "now" applies it before the next request instead.

A summary is text written by whoever proposes it, usually the model. Blackbird does not check that a summary kept the facts that matter. That is why the originals stay available: if a summary turns out to be too lossy, restore what you need.

The model manages its own context

The model has three tools for this, available like any other tool:

Turn programs can do the same from Lua with blackbird.blocks(), blackbird.compact(args), blackbird.read_block(id) and blackbird.pin(ids).

Inspecting and changing context yourself

In the conversation view, /workbench opens an interactive context workbench. Blocks are listed on the left and the selected block's details on the right. F6 pins or unpins, F7 archives or restores, F8 applies pending changes now, and F9 shows or hides archived blocks. Ctrl-Left and Ctrl-Right page through a block's original content.

Sizes in these views are bytes. Blackbird doesn't estimate tokens; token counts come only from what the provider reports.