What is ctxflow
ctxflow is an observability product for AI agents that work with retrieved context (RAG, tools, MCP servers). Your agent sends OpenTelemetry traces; ctxflow turns them into conversations and turns and answers four questions about each turn:
- What did the agent retrieve? Every retrieval call with its chunks, their scores, their source document and its version.
- What was the model given? The chunks that each retrieval delivered in the turn (Context delivered). ctxflow says what the model received, not what it did with it.
- What did it do? Every tool call, client and server side, with its user, its status and its failures.
- Was the context current? Whether each chunk was still in the index (C4) and whether its source document was still the published version (C6) at the moment of the retrieval.
How it fits together
Section titled “How it fits together”your agent ──────────────┐ ├─ OTLP/HTTP ─► (optional collector) ─► ctxflow (app.ctxflow.sh): web app and APIyour ingestion pipeline ─┘| Part | What it is | Where it runs |
|---|---|---|
ctxflow-otel |
OpenTelemetry distribution for Python: identity, retrieval identity, ingestion spans. Node.js: @ctxflow/otel. PHP: ctxflow/otel |
In your agent and your ingestion pipeline |
ctxflow-semconv |
The ctxflow.* semantic conventions (contracts C1–C7) and the maps of content keys of OpenInference, OTel GenAI and OpenLLMetry |
Installed with the SDK |
| Collector (optional) | An OpenTelemetry Collector distribution that keeps the API key in one place | In your network |
| The app | Conversations, turns, lineage, metrics, web app and API | https://app.ctxflow.sh |
Everything that runs in your environment (SDK, conventions, collector) is Apache-2.0. ctxflow is built on OpenTelemetry: any OTLP producer can send traces, and the SDK adds what plain instrumentation does not give (see Integrations).
What ctxflow never does
Section titled “What ctxflow never does”- It never polls your systems. ctxflow does not connect to your vector database, your buckets or your folders. The index and the sources are observed from the processes that write and read them: your instrumented ingestion pipeline (
ingest.*spans) and your retrieval spans. A change made by something that is not instrumented is not seen, and the app says so (“not measured”). - It never shows a false zero. A figure whose input never arrived is “not available”, with the signal that would unlock it. See Never a false zero.
- It never guesses lineage. A chunk whose state cannot be decided is
unknownorambiguous, with the reason.
What is sent
Section titled “What is sent”By default the text of prompts, answers, chunks, tool calls and errors is sent to ctxflow as it is and stored for a limited time (30 days by default, per project), so the app can show what each step saw. Metrics, hashes, ids and lineage stay after the text expires. If the data must not leave your network, a self-hosted deployment is available on request: contact us through ctxflow.sh. See What is sent.
- Quickstart: a first trace in about five minutes.
- Release status: the version and where each package comes from.
- Data model: turns, retrieval items, chunks and sources.