Features¶
The interactive notebook surface: Python, R, SQL, prompt, widget and loop cells, each producing artifacts that flow through an auto-built DAG.
For an agent¶
- a scratchpad that lasts: a Claude Code plugin points an agent at a cached notebook cell instead of a
/tmpscript, so the snippet it ran ten turns ago is still there - any MCP client: a warm notebook session is exposed at
/mcp, and you can watch the agent work in the browser or the terminal while it does - built to be scripted:
stratainspects, runs and authors a notebook with JSON output and stable exit codes, offline or against a live session - one command to start:
strata agent ./nbstands up the server, the session, the config and the viewer together - you can tell who did what: every cell records whether a person or an agent wrote it
Why nothing runs twice¶
- results are keyed by what made them: a cell's source, its inputs and its environment decide its identity, so identical work is a cache hit and no result ever needs invalidating
- only what changed re-runs: edit one cell and Strata re-runs the cells below it and nothing else
- no wiring: Strata reads each cell to find what it uses and what it defines, so there are no decorators and no edges to maintain by hand
- readable in git: a notebook is one plain-text file per cell (
.py,.sql,.md, ...) plus a TOML manifest, so a diff shows the code that changed - the graph is visible: the dependency graph renders beside the cells, and clicking a node highlights everything upstream and downstream of it and jumps to its source
Cell types¶
- prompt cells: LLM calls as DAG nodes,
{{ variable }}interpolation from upstream, cached by template + inputs + model config - SQL cells: named connections and bind-parameter templating, with drivers for DuckDB, SQLite, Postgres, Snowflake and BigQuery
- R cells: Python and R share one DAG, exchanging Arrow, so a
pandas.DataFrameis adata.framefor the next cell - loop cells:
# @loop max_iter=N carry=stateiterates with an explicit carry, each step its own artifact - variant sweeps: run every variant of a group and hand the downstream cell a
{name: value}dict, or fan out with# @per_variantso adding a variant only runs the new one - widget cells: declarative controls that downstream cells consume as inputs; with Live on, dragging one recomputes what depends on it
- cell unit tests: a Tests panel runs real pytest against a cell's defs and upstream inputs, doubling as a health badge
Compute and data¶
- distributed:
# @worker gpu-flydispatches a cell to a remote box; bring your own compute - worker pool: a separate package (
pip install strata-pool): machines (Fly, Docker or RunPod) start on demand, are held for a tenant, hand out GPUs per cell, and stop when the work does - the same environment, elsewhere: a remote cell runs in the notebook's own locked environment rather than whatever the worker image holds
- the machine starts before the run: focusing a cell bound to a pooled worker, or starting Run All, asks the pool to bring up a machine while you are still reading the code
- remote cells over SSH: hand an agent an SSH target and it provisions a worker there, tunnels to it, and routes heavy cells over, cached like everything else
- workers behind NAT:
strata-worker --connectdials out to a relay, so a machine with no open port serves cells - lake-aware SQL: read a named catalog and the notebook's mounts in one query, pinned to the snapshot the cell's provenance records
- Iceberg as other engines write it: scans apply merge-on-read deletes and follow schema changes by field id, so tables Spark, Flink and DuckDB write read correctly, from SQL, REST and Glue catalogs, with warehouses on S3, GCS or Azure
- every input recorded:
# @fetchmakes bytes from a URL an input,# @datasetmakes a registry name one, both content-addressed - folders as outputs:
# @output_dir ckptgives a cell a folder whose files are stored as an output, kept even when the run fails, and handed to the next cell as aPath - write back to the lake:
# @write_table readings lake:lab.readings appendwrites a variable into an Iceberg table when the run succeeds, and each snapshot names the result that made it - an append keeps the cache: cached row groups are keyed by data file, not snapshot, so after an append a scan reads only the new files
- mounts:
# @mount data s3://bucket/prefix romakes any S3, GCS or Azure prefix a localpathlib.Path - one mount cache per machine: every notebook shares one bounded copy of each remote file, so a prefix with one new file downloads only that file
- know what a run will read: a cell's badge shows what its mounts, tables and fetches weigh and how much is already on its machine, and above a size or cost you set, a run asks before it moves anything
- isolated envs: every notebook gets its own uv-managed
.venv/, locked and reproducible - headless:
strata run ./my-notebookfor CI and scheduled execution, same DAG and same cache
Teams¶
- promote to the team:
strata artifact promotecopies a result and the chain behind it into the team's store, from the notebook, the CLI or inside a cell - a colleague's run counts: a cell can be served from a teammate's earlier result: the expensive middle of a pipeline, not only what someone chose to name
- a figure gets a URL: publish an artifact and anyone with the link sees the plot, the code, and the environment of every step behind it, with no account and no install
- a notebook travels: export the whole state as one bundle and import it back, artifacts included
- share a session: presence, cell focus and soft locks, with every cell recording who wrote it
- safe to share in service mode: cells run as their own OS user once you name one, notebook scopes are enforced on every notebook route under principal auth, and an MCP tool call runs as its caller
- host it for many people: in service mode every notebook route, the WebSocket and MCP stay within the caller's tenant, the server runs under a path behind your proxy, and the editor can be framed inside your own product
- credentials a host can rotate: named credentials read GCS and Azure through workload identity token files with no stored key, and a running server takes new credentials and catalogs from one
PUTwithout closing a session - a store that stays bounded: results nobody has used for a while are collected least recently used first, never anything named, pinned, published or still needed
Surfaces¶
- terminal viewer:
strata watchrenders a running notebook live in the terminal, read-only, over SSH or beside your editor - stop a run from anywhere: cancel a running cell from the browser,
strata cell cancel, REST or MCP, and on Linux and macOS a cell stops when the server that started it does - app view: open a notebook as a read-only app, embed it as an
<iframe>, or export a self-contained snapshot - data viewer: DataFrame outputs render in a grid you can page, sort, filter and search, backed by the full artifact rather than a preview
- also a library:
pip install strata-clienttalks to the store from any pipeline or service, with no server install - production: Iceberg-aware scans, trusted-proxy auth, multi-tenancy, and S3, GCS, Azure or local blob backends
Three ways to drive it¶
The same notebook - the same cells, the same cache, the same artifacts - has several front doors. They operate on the same notebook directory, and because opening a notebook twice reuses the same session rather than forking it, they can all be pointed at it at once: a browser and a terminal viewer watching the same cell run.
| Surface | For | Start here |
|---|---|---|
| Web UI | Writing and running cells yourself, with rendered tables, plots, and the DAG view. | Quickstart - Web UI |
| Terminal (TUI) | Watching a notebook live from a terminal - a second pane, an SSH session, or beside your editor. Read-only. | Quickstart - Terminal |
| Coding agent | Handing the notebook to Claude Code and watching it build, through MCP tools. The notebook is what you wanted. | Quickstart - Coding agent |

Two of those front doors at once: a coding agent adds and runs cells through
the strata CLI while the web UI on the same session updates live. Captured
from a real run rather than assembled from canned frames.
There is also a use that is not a front door at all: an agent working on something else entirely, using a notebook as a cached scratchpad for throwaway Python instead of temp scripts. Nobody watches that one, which is rather the point - see Agent scratchpad.
Use Strata as a library¶
Strata's HTTP API exposes the materialization layer directly,
driveable from Python via StrataClient. Useful for direct table
scans, custom transforms, and headless workflows; the notebook
executor is a separate pipeline that writes to the same artifact
store. The client talks to a running Strata server.