Skip to main content

Deterministic, local-first observability for RAG and agentic pipelines (umbrella package + analyst CLI)

Project description

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.db via gaptrace-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].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gaptrace-0.1.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gaptrace-0.1.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file gaptrace-0.1.0.tar.gz.

File metadata

  • Download URL: gaptrace-0.1.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for gaptrace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 484de8d9c5916555a726c8bf953372aa0d63f8833673f628b2566dfa2ace18cd
MD5 bafcd71ec18b669ea7879dd95a67ca7f
BLAKE2b-256 57fdc96e26ba754eaf540616d118ab2b605e4ab8e84dc38d8fa2a8f8019d9036

See more details on using hashes here.

File details

Details for the file gaptrace-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gaptrace-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for gaptrace-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37ccf49a2b460f325c5324e0f399f5faf117c6b42c3d5ead5cfd8db94096dd2d
MD5 7e915c662a136f454addb77a015bb5ae
BLAKE2b-256 1e7d7cd16f56224f48a713ae32951948414a3bc1d4c67a2f257c3d4c354ff862

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page