the meter
Naive 0 tok
Real 0 tok
Saved 0 tok —
All demos

Algolia Agent Studio · context APIs unstable

Chat witha book

A conversation runs out of room long before it runs out of things to say. Two calls fix that: context/trim counts, context/compact folds. Take a book off the shelf and watch. A fold is not a shredder — every folded section opens back up.

0 tokens carried
0 folds so far
0 tokens reclaimed
Like it? Use the code in your project

1 · Load the context

Take a book off the shelf, or bring your own text. Every tile says what loading it will cost, before you click. Nothing leaves your browser except the calls in the wire log.

…or bring your own — paste, a file, or a URL


2 · Pick the engine

Hits per search


3 · Watch the fold

Context carried 0 / 8,000 tokens
0 70% · compaction 8,000

Room to spare


The ledger

One band per message, height proportional to its estimated tokens. Folded history keeps its crease.

The conversation

Nothing carried yet.

Take a book off the shelf, ingest a document of your own, or just ask a question — the meter starts moving from the first turn.

Wire log 0 calls

Every request this page makes, in order. Method, path, and the stats the API sent back.