gaptrace
Analyst CLI for the gaptrace observability system. Reads the local store at
~/.gaptrace/runs.db that gaptrace-capture writes; browses sessions, searches
runs, and explains exactly what went into a run's context window.
pip install gaptrace
Runs are addressed as sNrN (session 2, run 3 → s2r3) — the id every
capture call returns. Commands that take a <target> accept an exact
id, nothing (= latest run), or a quoted text hint (searched; multiple
matches show a pick list).
gaptrace list — sessions and runs
gaptrace list # sessions, newest first
gaptrace list s2 # runs inside session 2
Sessions
| ID | Runs | Pipeline | Created | Title |
|----+------+-------------+------------+-------|
| s2 | 3 | rag_example | 2026-07-02 | |
| s1 | 1 | quickstart | 2026-07-02 | |
gaptrace find — search runs by query text
gaptrace find "reranking" # token match (FTS5)
gaptrace find "score scale" --exact # phrase match
gaptrace find "RRF" --session s2 # scope to a session
gaptrace find "RRF" --pipeline rag_example
gaptrace find "RRF" --from 2026-07-01 --to 2026-07-02
gaptrace find "RRF" --today
gaptrace find --recent 5 # latest N runs, no hint
Search results (2)
| Run | Date | Session | Query |
|-------+------------+---------+----------------------------------|
| s2 r3 | 2026-07-02 | | what is RRF and how does it ... |
gaptrace explain — the seven analysis factors
gaptrace explain # latest run
gaptrace explain s2r3 # specific run
gaptrace explain s2r3 --full
gaptrace explain s2r3 --html # snapshot to ~/.gaptrace/reports/s2r3.html
Renders every factor the captured data supports, silently skipping the
rest: token usage, chunk scores, duplicates, truncation, dropped
history, cache hits, and the final prompt. Runs scored by
gaptrace-evaluate also show an Evaluation Scores panel (risk score, policy
violations, RAGAS metrics).
+------------- Token Usage --------------+
| Total: 1138/4096 (27.8%) |
| Chunks: 625 |
| Headroom: 196 |
+----------------------------------------+
+------------- Duplicates ---------------+
| 1 duplicate (25%): 1 window |
+----------------------------------------+
gaptrace diff — compare two runs
gaptrace diff s2r1 s2r3
Side-by-side query delta, chunks added/removed, per-chunk score deltas, token budget deltas, history and truncation changes. Ambiguous targets are rejected — use exact ids here.
gaptrace budget — token waterfall only
gaptrace budget s2r3
+------------- Token Usage --------------+
| Total: 1138/4096 (27.8%) |
| Chunks: 625 History: 13 |
| System: 500 Headroom: 196 |
+----------------------------------------+
gaptrace session rename
gaptrace session rename s2 "RRF investigation"
Session 2 renamed to "RRF investigation".
Notes
- Read-mostly by design: the only data this CLI writes is a session
title. (Opening the store may create/migrate
runs.dbviagaptrace-core— that's environment setup, not run data.) - No LLM anywhere in the navigation path; search is SQLite FTS5.
- Optional semantic search:
pip install gaptrace[semantic].
Metadata
Release files for gaptrace 0.1.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 |
|---|---|---|---|---|
| gaptrace-0.1.0.tar.gz | 20.5 kB | Without provenance | Details for gaptrace-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gaptrace-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gaptrace-0.1.0-py3-none-any.whl |
Total release size: 42.3 kB
Release files / gaptrace-0.1.0.tar.gz
| Download URL | gaptrace-0.1.0.tar.gz |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
484de8d9c5916555a726c8bf953372aa0d63f8833673f628b2566dfa2ace18cd
|
|
BLAKE2b-256 checksum How to use checksums |
57fdc96e26ba754eaf540616d118ab2b605e4ab8e84dc38d8fa2a8f8019d9036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / gaptrace-0.1.0-py3-none-any.whl
| Download URL | gaptrace-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37ccf49a2b460f325c5324e0f399f5faf117c6b42c3d5ead5cfd8db94096dd2d
|
|
BLAKE2b-256 checksum How to use checksums |
1e7d7cd16f56224f48a713ae32951948414a3bc1d4c67a2f257c3d4c354ff862
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for gaptrace 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.