opentine-tui
Terminal management console for opentine agent runs.
Built with Textual.
Install
pip install opentine-tui
That pulls in opentine
>=0.50,<0.51. opentine now writes .tine v5 artifacts (the v4 bundle of
v3 envelopes with text blobs spelled as text — same oids and tine-sig/3
signatures, compressed on disk) and still reads every v1/v2/v4 file and v3
repository; the dashboard reads all of them, migrates v1/v2 to v4, and drives
the 0.22–0.50 additions — offline verify reports with assurance tiers, replay
fidelity, forks with edited steps, rewind, encrypted signing keys, compliance
checks, evidence reports and audit kits, secret scans, the op log, holds and
merges.
Ed25519 signing and keygen work out of the box: opentine 0.4 depends on
cryptography directly. The crypto extra is kept as a no-op so
opentine-tui[crypto] keeps resolving, and so the requirement stays explicit if
opentine ever makes it optional again.
Usage
tine-dashboard
opentine-tui
By default the TUI reads .tine artifacts from .tine_runs, and looks upward from
the working directory for a v3 .tine/ repository the way tine itself does.
Override either with:
tine-dashboard --runs-dir path/to/.tine_runs
tine-dashboard --repo path/inside/a/repository
OPENTINE_RUNS_DIR=path/to/.tine_runs tine-dashboard
tine-dashboard --version
The left panel has two tabs — Files (portable .tine artifacts) and
Repository (run objects in a .tine/ repository) — and [ / ] switches
between them. Both feed the same step tree and detail panels, because
repo.load_run() returns the same run the file reader does.
Layout
┌─ Runs ─────────────────┐ ┌── Steps ───────────────┐ ┌── Details ─────────┐
│ Files │ Repository │ │ * think "I'll search" │ │ Run: a3f8 │
│ a3f8 done 4m ✓ │ │ > tool search(q="...") │ │ Model: claude │
│ b7c1 fail 1h │ │ * think "The mass..." │ │ Steps: 4 │
│ c9d2 corrupt │ │ + done │ │ Cost: $0.003 │
│ │ │ │ │ Duration: 12.3s │
└────────────────────────┘ └────────────────────────┘ └────────────────────┘
Files lists portable artifacts with Cost, Age, Tags, and a compact
Flags column that marks on-disk state at a glance: 1/L = a v1/legacy file a
re-save would upgrade, D = an autosave draft checkpoint, and a signature glyph
(✓ verified, ~ verified-tofu, ? signed-but-no-key, x mismatch). Corrupt
.tine files remain visible with their load or integrity error in the details
panel, which also surfaces tags, token usage, a cost/budget breakdown, pricing
provenance, the integrity digest, and an authenticity (signature) block.
Repository lists run objects with their event count, cost, evaluation score
and ref, flagged Y for a fork and ~ when a shallow clone boundary cut some of
its events. There is no integrity or signature column there: v3 objects are
content-addressed and opentine verifies them on every read.
Keybindings
Press ? for the full list inside the app — every binding carries a tooltip.
| Key | Action |
|---|---|
q |
Quit |
? |
Help panel (every binding, including the hidden ones) |
r |
Refresh — drop the scan cache and rescan |
/ |
Search / filter runs (tag: model: status:completed cost:>0.01 after: + free text) — live match count, inline errors, ↑/↓ recall earlier queries |
Esc |
Clear the active run filter (only while one is set) |
S |
Cycle the run sort: age, cost, steps, status, id (or click a column header) |
g |
Go to a run by id prefix |
Y |
Copy the run id, file path, step id or digest to the clipboard |
Ctrl+P |
Command palette — the dashboard actions available right now, searchable |
[ ] |
Switch the run list between Files and Repository |
1 2 3 |
Focus runs / steps / details panel |
↑ ↓ |
Browse runs — the step and detail panels follow the highlight |
v |
Files: verify integrity + signature. Repository: deep fsck |
t |
Edit tags on the selected run (outside the digest; a tine-sig/2//3 signature covers tags and is removed, with a notice) |
m |
Migrate a v1/v2/legacy .tine to format v4 (NAME.v4.tine beside the original, or in place with a .v2.bak) |
V |
Offline verify report (tine verify --offline): digest, signature, provenance, timestamps, actions |
y |
Replay fidelity (tine replay --verify): exact / recomputed-match / unavailable / diverged per step |
F |
Fork from the selected step with its inputs / model / tool args edited (tine fork --set/--unset) |
w |
Rewind the files the run edited back to the selected step (dry run first, then confirm) |
H |
Write a self-contained HTML page for the run (tine view) |
b |
Set a budget (max_cost/max_usage/max_steps/max_duration, breach mode, strict cost) |
s |
Sign the selected run (HMAC-SHA256, or Ed25519 with an encrypted key and its passphrase) |
k |
Generate an Ed25519 keypair — encrypted PKCS#8 behind a passphrase (refuses to replace an existing key) |
Ctrl+K |
Encrypt a legacy plaintext-hex private key in place (tine key encrypt) |
X |
Explain the run: what it asked, did, touched and ended with (tine explain, read-only) |
C |
Compliance check against a profile — EU AI Act, FRE 902, eIDAS (draft, not legal advice) |
R |
Write an evidence report, HTML or PDF (tine evidence report) |
A |
Build an audit kit: a self-verifying folder and zip for an auditor (tine audit-kit build) |
D |
Repository: scan a run's objects for leaked secrets (tine redact check) |
O |
Repository: operation log — every op that moved a ref (tine op log) |
u |
Repository: undo an operation (tine undo; shows the log, asks first) |
L |
Repository: hold / release a run so gc and purge never delete it (tine hold) |
M |
Repository: merge another run into the selected one (tine merge) |
f |
Fork — from the selected step (file) or the selected event (repository) |
c |
Write a cached replay from the selected step |
d |
Files: field-level diff. Repository: semantic diff between two runs |
x |
Resume selected run when manifest.resume is true |
z (detail panel focused) |
Expand truncated Inputs/Outputs sections |
n N (steps panel) |
Next / previous match of the last step search |
! (steps panel) |
Jump to the next failed step |
Ctrl+/ or Ctrl+_ (steps panel) |
Search steps by tool name or text |
h |
Launch a new external harness run |
Ctrl+F |
Fork selected step and launch a harness |
Ctrl+R |
Replay from selected step with a harness |
i |
Import a .tine file into the repository (tine migrate-v3) |
p |
Promote a repository run to promotions/<name> |
e |
Record an evaluation attestation (scores) on a repository run |
l |
Walk a ref's event ancestry |
o |
Inspect a verified v3 object by id |
E |
Export the selected run as an OpenTelemetry GenAI (OTLP/JSON) document |
I |
Import a trace or agent session log as a run (all 18 tine import formats, incl. auto) |
Write operations and external harness launches require an explicit confirmation modal before they run.
Keys that cannot apply are shown disabled (footer, ? help, command palette): repository-only
actions on the Files tab, a repository fork with no event selected, and every
write action while another action is still running (the details panel shows a
loading indicator until it finishes). Each panel's border shows its focus key and
counts (Runs [1] (shown/total)), and the focused panel is outlined in the
opentine orange; the app registers an opentine theme, so Ctrl+P theme
switching (including light themes) recolours everything.
What's new for opentine 0.50
.tinev5 files (the default writer since 0.42) are recognised as v5 — opentine's reader presents them as v4, so they were mislabelled — and tag edits keep a file in the spelling it had.- Encrypted keys (0.41):
kwrites encrypted PKCS#8 behind a masked, confirmed passphrase; signing asks for it in the dialog (or readsOPENTINE_KEY_PASSPHRASE) and never lets opentine prompt on the terminal the TUI is drawing on.Ctrl+Kencrypts an old plaintext key. - Recorded prompts (0.35): replaying with a harness sends the run's stored prompt only if you switch on "I vouch for it"; nothing pre-fills it any more.
- Assurance tiers (0.39) in the verify report (
V) and the details panel. - Explain, compliance, evidence reports, audit kits (
X,C,R,A) and, on the Repository tab, secret scans, op log, undo, holds and merges (D,O,u,L,M). All run the realtinecommand.
What's new for opentine 0.34
- Format v4 everywhere. Compressed (
TINEZ1) and v4 artifacts are read through opentine's bounded reader instead of being listed as corrupt; the Files list flags v1 (1), v2 (2) and legacy (L) files thatmcan upgrade, and the details panel shows a v4 run'supgraded_fromprovenance, fork edit log, stored file originals,metadata.warningsand attached RFC 3161 timestamps. - New actions —
Voffline verify report,yreplay fidelity,Ffork with an edited step,wrewind,HHTML view. These run the realtinecommand in a child process (argument list, no shell, absolute paths, timeout, sanitized output), so the dashboard's behaviour and refusals match the CLI exactly. - Every harness opentine ships (25 in 0.34) is offered, read from opentine's own registry, with an optional timeout.
- Every import format: Claude Code transcripts, Codex / Gemini / Qwen /
OpenCode sessions, Hermes trajectories, ATIF, OTel logs,
entireandautodetection, on top of the in-process OTel/JSONL/framework readers.
What's new for opentine 0.5.0
- Export to OpenTelemetry (
E) — renders the selected run as GenAI spans in a complete OTLP/JSON document, so a verified run can be shipped to whatever observability backend runs beside it. Works on a portable artifact and a repository run alike, because the exporter takes anything with steps. - Import a foreign trace (
I) — OpenTelemetry (OTLP/JSON or spans), OpenTine JSONL, or a framework's logs (LangChain, LlamaIndex, AutoGen, CrewAI, OpenAI-Agents), written as a portable.tineartifact, into the v3 repository, or both. It mirrorstine importexactly: at least one destination is required, a--save-only import builds in a throwaway repository so none is left behind, and capture stays off because the provenance belongs to the machine that produced the trace. - Import and export are inverses, and there is a test holding the dashboard to that: a run exported and re-imported comes back with the same steps.
What's new for opentine 0.4.0
- Fork provenance. 0.4.0 derives a v2 fork id from the fork act — source
lineage, retained slice, branch, declared intent and a 128-bit nonce — and
records that basis in the artifact. The details panel shows it and reports
whether the id re-derives from the record:
verified,MISMATCH(the record was edited), or no verdict at all for a pre-0.4.0 fork, which is never presented as tampering. - Forking the same point twice now works. It used to produce one id and one filename, so the second fork silently destroyed the first. The dashboard no longer needs its own guard against that, and the run list shows both.
- Cached replay stays reproducible. A replay reuses recorded steps and produces nothing new, so it forks with an empty nonce and lands on one id; replaying twice is still refused rather than duplicated, and the panel labels it "reproducible fork — a replay, not a divergence".
What's new for opentine 0.3.0
- v3 repository browser — a second source tab lists the run objects in a
.tine/repository with their refs, event counts, cost, evaluation score, fork and shallow-boundary markers. Selecting one materializes it through the same step tree and detail panels the file list uses. - Repository actions — deep
fsck(v), event log (l), object inspection (o), semantic diff (d), fork from an event (f), promotion with the compare-and-swap opentine actually enforces (p), evaluation attestations (e), andmigrate-v3import of a portable artifact (i), which stays fail-closed on a source that does not verify. - Honest accounting — token counts include cache reads, 5m/1h cache writes and
reasoning tokens rather than input+output alone; per-step cost reads
billing.known_subtotal_usdthe wayRun.total_costdoes; and a step opentine could not price is marked unpriced instead of rendering as$0.0000. The run summary shows pricing provenance and the newby_refcost attribution. - Budgets —
strict_cost(an unpriced step counts as a breach) is editable and displayed, and a breach recorded in the run is surfaced alongside the re-derived one, sincecost_completenesscannot be recomputed from the artifact.
Non-goals for this release
Remote sync (fetch / push / clone / serve) and the live trace Recorder
are deliberately not wired up: the transfer path is fully blocking with no
progress reporting, and the recorder mints a new run object per appended event.
Both need a design of their own rather than a keybinding.
What's new for opentine 0.2.0
The dashboard now manages the full .tine format v2 surface:
- Migration — detects each file's on-disk version from raw JSON (not the loaded
run, which always reports v2) and upgrades v1/legacy
0.1.0artifacts to v2. - Tags + search — per-run tags and a live filter bar backed by the opentine search DSL.
- Cost + budget — per-step token usage, a
cost_breakdown(by model/kind), and budgets with a re-derived breach state. - Autosave / drafts — draft checkpoints are badged and never treated as final or signed.
- Signing (
tine-sig/1) — sign, verify, and generate keys; the details panel distinguishesverified/verified-tofu/no-key/mismatch, and labelssigneras display-only. - Field-level diff — per-field before/after across aligned steps, including cost/usage drift on otherwise-identical steps.
Development
pip install -e ".[dev]" # resolves opentine>=0.50,<0.51 from PyPI
ruff check .
ruff format --check .
pytest
Tests run against the installed opentine, so a green suite says something
about what users get. To test against a source checkout instead — a worktree at a
release tag, say — point OPENTINE_SRC at it:
git -C ../opentine worktree add /tmp/opentine-v0500 v0.50.0
OPENTINE_SRC=/tmp/opentine-v0500 pytest
CI runs lint, format, the test suite, a packaging build, and a twine metadata
check across Linux/macOS/Windows on Python 3.11–3.14, resolving opentine from
PyPI through the pin in pyproject.toml — so CI tests what users install.
Pushing a v* tag builds release artifacts, attests their provenance, and
attaches them to a GitHub release.
Contributing
See CONTRIBUTING.md for setup, the gates CI runs, and the conventions that keep a malformed artifact from taking the dashboard down. Security issues go to SECURITY.md, not the issue tracker.
License
Apache 2.0
Metadata
Release files for opentine-tui 0.50.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opentine_tui-0.50.0.tar.gz | 135.6 kB | With provenance | Details for opentine_tui-0.50.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opentine_tui-0.50.0-py3-none-any.whl | Python 3 | none | any | Details for opentine_tui-0.50.0-py3-none-any.whl |
Total release size: 240.1 kB
Release files / opentine_tui-0.50.0.tar.gz
| Download URL | opentine_tui-0.50.0.tar.gz |
|---|---|
| Size | 135.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2be5e40dd9f6413219870d3e26b6371daff302c8b7c2a4172136888d084dc139
|
|
BLAKE2b-256 checksum How to use checksums |
2b5b0633b808cf2a7b486ed4699032f5459b54d1738f2e9a2b1d81b438bc0153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / opentine_tui-0.50.0-py3-none-any.whl
| Download URL | opentine_tui-0.50.0-py3-none-any.whl |
|---|---|
| Size | 104.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbfc307d92e94f75f3f98c22a6ead4b8466d63206660d93bfa484b8676bd6d45
|
|
BLAKE2b-256 checksum How to use checksums |
a4acbbd97362e493479b799135351a0a7991a7287ff60ea583d7e0264610c10f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for opentine-tui 0.50.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for opentine_tui-0.50.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.