Skip to content
Specialist context agent · Data

Data Analyst

A CSV and Excel analysis agent for Claude Code, Codex and Cursor

Data Analyst answers questions about one CSV or Excel table, in plain English or structured, with charts, and recomputes every number a second way before it reports it. It works from the context ContextStream picks for the job.

Purpose-built for this one job and tested against a quality bar, it gets only the access the job needs, and a workspace owner or admin turns it on.

Or run it in the ContextStream web app, signed in with your ContextStream account. Version 1.1.0 · Updated

What does Data Analyst do?

Answers a question about a CSV or XLSX table, in plain English or structured, with charts; every number is computed twice by the engine, never by the model.

What it declines

It does one job. A task like one of these is declined with a reason:

  • Forecasts, models or statistics beyond counts, totals, averages, medians, extremes and distinct counts.
  • Changing, cleaning or exporting the data.
  • Web pages, PDFs, images or databases, and files behind a login.
  • Writing or running analysis code: the model only chooses the questions.

What can Data Analyst access, and is it safe to turn on?

Data Analyst gets a short-lived token for one workspace that lets it do only this: call models through ContextStream's model proxy, within a cap set for the run; and read the lessons, preferences and decisions ContextStream picks for its job. It works in one project, only for that run, and declines any task outside its job. Data Analyst is read-only: it changes nothing in your workspace. It runs code only in its own isolated sandbox, which holds no credentials and reaches only the hosts named in your input. A workspace owner or admin turns it on.

Model agent with a sandbox. A program on ContextStream's model proxy that also drives its own sandbox. The sandbox holds no credentials. Its sandbox reaches only the hosts named in your input. It is stopped after 5 min.

ScopeWhat it lets a run do
model.invokeCall models through ContextStream's model proxy, within a cap set for the run
context.readRead the lessons, preferences and decisions ContextStream picks for its job

How is Data Analyst tested?

Data Analyst is checked on 9 cases, each with a known right answer: questions about fixture tables, and requests outside its job it must decline, such as a forecast or an edit to the data. A case passes only if the run ends the way the case expects, declining what is not its job, and every check holds: every number is what the table holds, each answer agrees with its second, separate computation, every chart matches its answer and holds nothing a browser would run, the plain-English question becomes the right structured questions, every number in its answer sentence comes from the results, and nothing outside the data's own host is reached. The analysis engine really runs on each table, with scripted model replies and no network, so the cases check the numbers and the checks around the model, not how the live model reads a question. Version 1.1.0 passes all 9.

It is a program on general-purpose models, reached through ContextStream's model proxy, not a trained model. Its prompts are versioned and tuned against these tests, and a change that misses the quality bar fails them.

What does a real run of Data Analyst look like?

The input, the result (shortened where it is long), how long it took and where it ran. Live runs used public or demo material only; a run marked as from its test suite is not a live run.

Live run on ContextStream

Which S&P 500 sector has the most companies? (version 1.1.0)

Version
1.1.0
Outcome
succeeded
Ran
2026-10-28 00:12 UTC
Took
9.8 s

ContextStream's Demos workspace, on a public CSV, asked in plain English. The agent ran in an E2B sandbox, started for this run and removed after it.

Input
{
  "data": {
    "url": "https://raw.githubusercontent.com/datasets/s-and-p-500-companies/2f083ae70907cca3b644a94744dde87f3199fc5b/data/constituents.csv"
  },
  "question": "Which sector has the most companies?",
  "also_allow": []
}

Result

Industrials has the most companies, with 83. Answered 1 of 1 question over 503 rows of the table, every number recomputed a second way and in agreement.

Question

Which sector has the most companies?

Answer

Industrials has the most companies, with 83.

number of rows by GICS Sector (checked twice: 11 groups compared, 0 mismatches)

GICS Sectorvalue
Industrials83
Checks: 4 of 4 passed
  • translation: "Which sector has the most companies?" became 1 structured question.
  • answer: Every number in the answer is one the engine computed.
  • companies_per_sector: number of rows by GICS Sector: Industrials: 83; recomputed exactly, 11 group(s) agree.
  • workspace_context: 0 context items from ContextStream for this job, about 247 tokens.
Task
358d507b-eb6c-4309-a6df-9a6a92b04853
From its test suite, not a live run

A plain-English question about a small sales table (version 1.1.0, test case)

Version
1.1.0
Outcome
succeeded
Ran
2026-10-27 17:17 UTC
Took
Not timed (test data)

The agent's offline test suite: its real program, against a stand-in for ContextStream, a scripted model and a fixture table, with no network. Not a live run.

What it ran on

  • Its test suite, in the agents' source repository
Input
{
  "data": {
    "csv": "order_id,region,product,units,revenue,ordered_at,returned\n1001,West,Kettle,2,\"$1,200.50\",2026-01-05,no\n1002,East,Toaster,1,80,2026-01-17,no\n1003,West,Toaster,3,240,2026-01-28,yes\n1004,North,Kettle,1,600.25,2026-02-02,no\n1005,East,Kettle,4,\"2,401\",2026-02-14,no\n1006,West,Blender,2,(15),2026-02-20,yes\n1007,East,Blender,,n/a,2026-03-03,no\n1008,North,Toaster,2,160,2026-03-09,no\n1009,West,Kettle,1,600.25,2026-03-21,no\n1010,,Blender,1,95.5,2026-03-30,no\n1011,East,Toaster,5,400,2026-04-02,no\n1012,North,Blender,3,286.5,2026-04-15,yes\n"
  },
  "question": "Which region brought in the most revenue?"
}

Result

East brought in the most revenue, 2,881, ahead of West at 2,025.75. Answered 1 of 1 question over 12 rows of the table, every number recomputed a second way and in agreement.

Question

Which region brought in the most revenue?

Answer

East brought in the most revenue, 2,881, ahead of West at 2,025.75.

total revenue by region (checked twice: 4 groups compared, 0 mismatches)

regionvalue
East2881
West2025.75
North1046.75
(empty)95.5
Checks: 4 of 4 passed
  • translation: "Which region brought in the most revenue?" became 1 structured question.
  • answer: Every number in the answer is one the engine computed.
  • revenue_by_region: total revenue by region: East: 2881; recomputed exactly, 4 group(s) agree.
  • workspace_context: 0 context items from ContextStream for this job, about 0 tokens.
  • The input's table is shortened here.
Test case
plain-question, in its test suite
Depot run
0zb9r381xr

Which tools does Data Analyst work with?

Claude Code, Codex, Cursor and other MCP clients: ContextStream's MCP gives them an agents tool that finds, runs and follows Data Analyst. It also runs from a terminal or an agent's shell with csa run analyst, and from the ContextStream web app.

  • Claude Code, Codex, Cursor and other MCP clients: connect ContextStream's MCP once (setup for each editor), then ask your agent to hand the job to Data Analyst.
  • A terminal or an agent's shell: csa run analyst, installed with ContextStream's command line.
  • The web app: the workspace's agent library.

How do I turn Data Analyst on?

An owner or admin of your ContextStream workspace turns Data Analyst on in the web app's agent library. Agents are opening workspace by workspace; if yours is not open yet, the library says so.

  1. Sign in to ContextStream: the button below opens the agent library on Data Analyst.
  2. An owner or admin switches Data Analyst on for the workspace.
  3. Pick the project it works in, and run it from the library, from your coding agent or with csa run.

How do I call Data Analyst from Claude Code or Codex?

Ask your coding agent to hand the job to Data Analyst, or call it yourself: csa run analyst in a terminal, or agents(action="run", agent="analyst", input={...}) over MCP.

Connect ContextStream's MCP (it also writes each editor's connection):

curl -fsSL https://contextstream.io/scripts/mcp.sh | bash

Total revenue by region, largest first, with a chart and a one-sentence answer. Over MCP:

agents(action="run", agent="analyst", input={"data":{"url":"https://example.com/sales.csv"},"question":"Which region brought in the most revenue?"})

In a terminal (curl -fsSL https://contextstream.io/cs/install.sh | sh installs csa):

csa run analyst data:='{"url":"https://example.com/sales.csv"}' question='Which region brought in the most revenue?'

Input

FieldTypeWhat it is
dataobject, requiredThe table: inline CSV, a base64 XLSX workbook, or a public URL.
also_allowstring[], requiredHosts the download may be redirected to, beyond the URL's own.
sheetstringThe sheet of an XLSX workbook; the first by default.
questionstringA question about the table in plain English.
questionsobject[]Structured questions, answered as given.

What does Data Analyst cost?

Data Analyst costs 800 ContextStream credits a run, charged only when the run succeeds; a declined, failed, cancelled or timed-out run costs nothing. Credits come with every plan: Starter is free with 10,000 a month (12 runs of Data Analyst, if spent on nothing else), and Pro is $19 a month with 25,000.

A run starts only once its price is accepted. Over MCP, a call without accepted_price_credits returns the price first; csa asks on a terminal, and scripts pass --yes.

Documents

PDF

docs to PDF agent

PDF lays out a source the person names (a doc, a plan, notes or markdown) as a PDF and stores it in the workspace.

Checked on 11 test cases with known answers: all 11 passv0.1.0

Every ContextStream agent