Skip to content
Development
Agent

sessions

A session groups the traces of one multi-turn conversation.

From plugin
phoenix
12k18 skills18 agents1 MCP

Claude Code

> /plugin marketplace add arize-ai/phoenix
> /plugin install arize-phoenix@arize-phoenix

Agent definition

sessions.md

ProjectSession

A session groups the traces of one multi-turn conversation.

Reaching a session

  • `Project.sessions(timeRange, first, after, sort, sessionFilterCondition)` → connection of `ProjectSession`. `sessionFilterCondition` is a session filter expression; discover its bindable names via `Project.sessionFilterVocabulary` and check one with `Project.validateSessionFilterCondition`. The user-facing grammar reference (aggregates, comprehensions, annotations, root-span access) is the [Filter Expressions](https://arize.com/docs/phoenix/tracing/how-to-tracing/filter-expressions) doc; the enforced grammar lives in `internal_docs/specs/session-filter-dsl.md`.
  • `getProjectSessionById(sessionId: String!)` → `ProjectSession` — `sessionId` is the raw session string, not a global id.

Fields

  • `sessionId`, `startTime`, `endTime`, `project`
  • `numTraces`, `numTracesWithError`
  • `firstInput { value }`, `lastOutput { value }`
  • `tokenUsage { prompt completion total }` — each is a `Float`
  • `costSummary { total { cost tokens } prompt { cost tokens } completion { cost tokens } }`, `costDetailSummaryEntries`
  • `traceLatencyMsQuantile(probability: Float!)` — the percentile field (not `latency`)
  • `traces(first, after)` — forward-only; `first` is effectively required. Summarize each turn via the trace's `rootSpan { name input { truncatedValue } output { truncatedValue } }`.
  • `sessionAnnotations { name label score }`, `sessionAnnotationSummaries(filter)`

Example

One round trip: session rollups plus a per-turn summary read from each trace's root span.

query SessionDetail($id: ID!) {
  node(id: $id) {
    ... on ProjectSession {
      sessionId
      numTraces
      numTracesWithError
      tokenUsage { total }
      costSummary { total { cost tokens } }
      p50: traceLatencyMsQuantile(probability: 0.5)
      traces(first: 20) {
        edges {
          node {
            traceId
            latencyMs
            numSpans
            rootSpan {
              spanId
              name
              statusCode
              input { truncatedValue }
              output { truncatedValue }
            }
          }
        }
        pageInfo { hasNextPage endCursor }
      }
    }
  }
}
Read more
@arize-ai
Ships withphoenix

AI Observability & Evaluation

12k10 skills18 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
12.1k
Star history of arize-ai/phoenix on GitHub, a chart by star-history.com

Other agents on phoenix.

bug-fixer

bug-fixer

Agent

Leads one Phoenix bug from report to draft PR - reproduce, fix, review, revise.

@arize-ai@arize-aiInstall Agent
bug-reproducer

bug-reproducer

Agent

Reproduces a reported Phoenix bug as a failing automated test. Give it the issue number, labels, the bootstrap report and the…

@arize-ai@arize-aiInstall Agent
cloud-triage

cloud-triage

Agent

Reads a day of Phoenix Cloud production errors from Datadog, decides which are bugs a maintainer should fix, and makes sure each…

@arize-ai@arize-aiInstall Agent
docs-writer

docs-writer

Agent

Makes one Phoenix documentation change, grounded in the current code, and opens a draft PR.

@arize-ai@arize-aiInstall Agent
feature-analyst

feature-analyst

Agent

Analyst that turns a Phoenix feature request into an implementation plan grounded in the existing code, starting with a probe…

@arize-ai@arize-aiInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about sessions.

Which coding agents can use sessions?
sessions installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.