opencode source

opencode.sessions

pass

All sessions stored in the local OpenCode database, with flattened model, token, cost, and timestamp columns. Each row includes the raw `metadata`, `summary_diffs`, `revert`, and `permission` blobs in a `metadata` JSON column so nothing is lost.

Run the converter first to populate the JSONL files:

no filters captured 2026-09-01 09:48:49Zmedian 9209 ms
Verdict: TRUE

All variants returned rows on ≥2 of 3 trials, 0 errors.

rendering…

Summary

VariantTrialsMinMedianMaxRow countsErrors
minimal38837 ms9209 ms10463 ms[3, 3, 3]0
order-desc39957 ms10054 ms11285 ms[25, 25, 25]0
filter-agent38802 ms9575 ms9838 ms[25, 25, 25]0
filter-cost310936 ms11346 ms13411 ms[18, 18, 18]0
filter-tokens38654 ms8714 ms9903 ms[5, 5, 5]0
aggregate311638 ms12101 ms13152 ms[1, 1, 1]0
group-by311659 ms12197 ms13068 ms[15, 15, 15]0

Latency per trial

minimalmedian 9209ms
t18837mst210463mst39209ms
scale: 0–10463 ms
order-descmedian 10054ms
t110054mst211285mst39957ms
scale: 0–11285 ms
filter-agentmedian 9575ms
t19575mst28802mst39838ms
scale: 0–9838 ms
filter-costmedian 11346ms
t111346mst210936mst313411ms
scale: 0–13411 ms
filter-tokensmedian 8714ms
t18654mst28714mst39903ms
scale: 0–9903 ms
aggregatemedian 12101ms
t112101mst213152mst311638ms
scale: 0–13152 ms
group-bymedian 12197ms
t113068mst211659mst312197ms
scale: 0–13068 ms

Probe variants — every command + output

minimal3 trials
min 8837ms · median 9209ms · max 10463ms · rows 3,3,3

top token spenders

Command
SELECT id, title, agent, model_provider, tokens_input, tokens_output, cost FROM opencode.sessions ORDER BY tokens_input DESC LIMIT 3
Trials + output
trial 1·8837ms·rows 3isError=false
First row (click to expand JSON)
{
  "id": "ses_0150f217cffeGq9tAm4scX8k63",
  "title": "Complete remaining tasks from session",
  "agent": "build",
  "model_provider": "samagama",
  "tokens_input": "180068861",
  "tokens_output": "1035057",
  "cost": "0.0"
}
columns (7)
idtitleagentmodel_providertokens_inputtokens_outputcost
trial 2·10463ms·rows 3isError=false
First row (click to expand JSON)
{
  "id": "ses_0150f217cffeGq9tAm4scX8k63",
  "title": "Complete remaining tasks from session",
  "agent": "build",
  "model_provider": "samagama",
  "tokens_input": "180068861",
  "tokens_output": "1035057",
  "cost": "0.0"
}
columns (7)
idtitleagentmodel_providertokens_inputtokens_outputcost
trial 3·9209ms·rows 3isError=false
First row (click to expand JSON)
{
  "id": "ses_0150f217cffeGq9tAm4scX8k63",
  "title": "Complete remaining tasks from session",
  "agent": "build",
  "model_provider": "samagama",
  "tokens_input": "180068861",
  "tokens_output": "1035057",
  "cost": "0.0"
}
columns (7)
idtitleagentmodel_providertokens_inputtokens_outputcost
order-desc3 trials
min 9957ms · median 10054ms · max 11285ms · rows 25,25,25

most recently updated sessions

Command
SELECT id, title, agent, model_provider, cost FROM opencode.sessions ORDER BY time_updated DESC LIMIT 25
Trials + output
trial 1·10054ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (5)
idtitleagentmodel_providercost
trial 2·11285ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (5)
idtitleagentmodel_providercost
trial 3·9957ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (5)
idtitleagentmodel_providercost
filter-agent3 trials
min 8802ms · median 9575ms · max 9838ms · rows 25,25,25

filter by agent

Command
SELECT id, title, agent FROM opencode.sessions WHERE agent = 'build' LIMIT 25
Trials + output
trial 1·9575ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build"
}
columns (3)
idtitleagent
trial 2·8802ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build"
}
columns (3)
idtitleagent
trial 3·9838ms·rows 25isError=false
First row (click to expand JSON)
{
  "id": "ses_01d64c22bffe7B9Z3shNeMWiPa",
  "title": "PR contribution check",
  "agent": "build"
}
columns (3)
idtitleagent
filter-cost3 trials
min 10936ms · median 11346ms · max 13411ms · rows 18,18,18

sessions with recorded cost

Command
SELECT id, title, cost FROM opencode.sessions WHERE cost > 0 ORDER BY cost DESC LIMIT 25
Trials + output
trial 1·11346ms·rows 18isError=false
First row (click to expand JSON)
{
  "id": "ses_0fb115855ffeHr8Fhp5Ruw76KS",
  "title": "Workflow.html and folder analysis",
  "cost": "388.3905347499996"
}
columns (3)
idtitlecost
trial 2·10936ms·rows 18isError=false
First row (click to expand JSON)
{
  "id": "ses_0fb115855ffeHr8Fhp5Ruw76KS",
  "title": "Workflow.html and folder analysis",
  "cost": "388.3905347499996"
}
columns (3)
idtitlecost
trial 3·13411ms·rows 18isError=false
First row (click to expand JSON)
{
  "id": "ses_0fb115855ffeHr8Fhp5Ruw76KS",
  "title": "Workflow.html and folder analysis",
  "cost": "388.3905347499996"
}
columns (3)
idtitlecost
filter-tokens3 trials
min 8654ms · median 8714ms · max 9903ms · rows 5,5,5

sessions with >1M input tokens

Command
SELECT id, model, model_provider, cost FROM opencode.sessions WHERE tokens_input > 1000000 ORDER BY cost DESC LIMIT 5
Trials + output
trial 1·8654ms·rows 5isError=false
First row (click to expand JSON)
{
  "id": "ses_faedde194ffe3SEEUk03dXfiu3",
  "model": "{\"id\":\"MiniMax-M3\",\"providerID\":\"samagama\"}",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (4)
idmodelmodel_providercost
trial 2·8714ms·rows 5isError=false
First row (click to expand JSON)
{
  "id": "ses_faedde194ffe3SEEUk03dXfiu3",
  "model": "{\"id\":\"MiniMax-M3\",\"providerID\":\"samagama\"}",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (4)
idmodelmodel_providercost
trial 3·9903ms·rows 5isError=false
First row (click to expand JSON)
{
  "id": "ses_faedde194ffe3SEEUk03dXfiu3",
  "model": "{\"id\":\"MiniMax-M3\",\"providerID\":\"samagama\"}",
  "model_provider": "samagama",
  "cost": "0.0"
}
columns (4)
idmodelmodel_providercost
aggregate3 trials
min 11638ms · median 12101ms · max 13152ms · rows 1,1,1

source-wide totals

Command
SELECT count(*) AS sessions, sum(cost) AS total_cost, sum(tokens_input) AS total_in_tokens FROM opencode.sessions
Trials + output
trial 1·12101ms·rows 1isError=false
First row (click to expand JSON)
{
  "sessions": "459",
  "total_cost": "623.2679184999996",
  "total_in_tokens": "1440049574"
}
columns (3)
sessionstotal_costtotal_in_tokens
trial 2·13152ms·rows 1isError=false
First row (click to expand JSON)
{
  "sessions": "459",
  "total_cost": "623.2679184999996",
  "total_in_tokens": "1440049574"
}
columns (3)
sessionstotal_costtotal_in_tokens
trial 3·11638ms·rows 1isError=false
First row (click to expand JSON)
{
  "sessions": "459",
  "total_cost": "623.2679184999996",
  "total_in_tokens": "1440049574"
}
columns (3)
sessionstotal_costtotal_in_tokens
group-by3 trials
min 11659ms · median 12197ms · max 13068ms · rows 15,15,15

output tokens per provider

Command
SELECT model_provider, COUNT(*) AS n, SUM(tokens_output) AS out_tokens FROM opencode.sessions GROUP BY model_provider ORDER BY out_tokens DESC LIMIT 15
Trials + output
trial 1·13068ms·rows 15isError=false
First row (click to expand JSON)
{
  "model_provider": "samagama",
  "n": "121",
  "out_tokens": "12539359"
}
columns (3)
model_providernout_tokens
trial 2·11659ms·rows 15isError=false
First row (click to expand JSON)
{
  "model_provider": "samagama",
  "n": "121",
  "out_tokens": "12539359"
}
columns (3)
model_providernout_tokens
trial 3·12197ms·rows 15isError=false
First row (click to expand JSON)
{
  "model_provider": "samagama",
  "n": "121",
  "out_tokens": "12539359"
}
columns (3)
model_providernout_tokens

All returned rowsacross all non-errored trials · filterable · paginated

368 rows stored · 368 returned · page 1/15
00ses_0150f217cffeGq9tAm4scX8k63Complete remaining tasks from sessionbuildsamagama18006886110350570.0
01ses_048e8fca1ffeEzXkR2H7LmiSMNMS Graph 733-table battery re-runbuildsamagama6783491816339000.0
02ses_000c159f2ffeOoNzxoUMIfpfD3Undo changes and align to gitbuildsamagama621232314178430.0
13ses_0150f217cffeGq9tAm4scX8k63Complete remaining tasks from sessionbuildsamagama18006886110350570.0
14ses_048e8fca1ffeEzXkR2H7LmiSMNMS Graph 733-table battery re-runbuildsamagama6783491816339000.0
15ses_000c159f2ffeOoNzxoUMIfpfD3Undo changes and align to gitbuildsamagama621232314178430.0
26ses_0150f217cffeGq9tAm4scX8k63Complete remaining tasks from sessionbuildsamagama18006886110350570.0
27ses_048e8fca1ffeEzXkR2H7LmiSMNMS Graph 733-table battery re-runbuildsamagama6783491816339000.0
28ses_000c159f2ffeOoNzxoUMIfpfD3Undo changes and align to gitbuildsamagama621232314178430.0
39ses_0150f217cffeGq9tAm4scX8k63Complete remaining tasks from sessionbuildsamagama18006886110350570.0
310ses_048e8fca1ffeEzXkR2H7LmiSMNMS Graph 733-table battery re-runbuildsamagama6783491816339000.0
311ses_000c159f2ffeOoNzxoUMIfpfD3Undo changes and align to gitbuildsamagama621232314178430.0
012ses_01d64c22bffe7B9Z3shNeMWiPaPR contribution checkbuildsamagama0.0
013ses_faedde194ffe3SEEUk03dXfiu3Coral MCP benchmark reporting repo setupbuildsamagama0.0
014ses_fa9319fc2ffeqM2U80iHWd8H9zExploring Coral OpenCode MCP capabilitiesbuildsamagama0.0
015ses_fa92f43b0ffexAb0pUt4hTj2O6Map coral-engine + coral-spec for sqlite backend (@explore subagent)exploresamagama0.0
016ses_000c159f2ffeOoNzxoUMIfpfD3Undo changes and align to gitbuildsamagama0.0
017ses_fb0f25a1bffeewAJ0rQSugN624Pre-dev-grade repository grading skillbuildsamagama0.0
018ses_fa97a98bcffeopz53rsAqRyg7HNew session - 2026-08-31T06:32:58.435Zbuildsamagama0.0
019ses_fa9928555ffetthUA0mibXC7PTVerifying agentic_chat dashboard quality scorebuildsamagama0.0
020ses_fa989d12effe5jSAyQQzBbTwhhBlindfold repo score validationbuildsamagama0.0
021ses_facb90534ffe1XtH6F8Gp09ykkCopy image from Google Docs to clipboardbuildsamagama0.0
022ses_facd5a156ffeHh1mhyClcQPde7Hindi translation showing raw key on contact pagebuildsamagama0.0
023ses_facdb6e35ffeRcne02LufXzDmxIncreasing internal space without affecting developmentbuildsamagama0.0
024ses_fad14bc6cffeG2SU560c37T6dAComparing coral_benchmarks and coral-specs-testingbuildsamagama0.0

Column profile

7 columns actually returned by coral. Catalog claims no required filters. Click a column to drill in.

#ColumnInferred typeNon-nullNullsSample value(s)
1idstring208"ses_0150f217cffeGq9tAm4scX8k63""ses_01d64c22bffe7B9Z3shNeMWiPa""ses_0fb115855ffeHr8Fhp5Ruw76KS"
2titlestring1612"Complete remaining tasks from session""PR contribution check""Workflow.html and folder analysis"
3agentstring1216"build"
4model_providerstring1612"samagama"
5tokens_inputstring424"180068861"
6tokens_outputstring424"1035057"
7coststring1612"0.0""388.3905347499996"

Trial comparison

Variant / comboTrial #LatencyRowsStatusFirst key returned
minimalt18837ms3okid, title, agent
minimalt210463ms3okid, title, agent
minimalt39209ms3okid, title, agent
order-desct110054ms25okid, title, agent
order-desct211285ms25okid, title, agent
order-desct39957ms25okid, title, agent
filter-agentt19575ms25okid, title, agent
filter-agentt28802ms25okid, title, agent
filter-agentt39838ms25okid, title, agent
filter-costt111346ms18okid, title, cost
filter-costt210936ms18okid, title, cost
filter-costt313411ms18okid, title, cost
filter-tokenst18654ms5okid, model, model_provider
filter-tokenst28714ms5okid, model, model_provider
filter-tokenst39903ms5okid, model, model_provider
aggregatet112101ms1oksessions, total_cost, total_in_tokens
aggregatet213152ms1oksessions, total_cost, total_in_tokens
aggregatet311638ms1oksessions, total_cost, total_in_tokens
group-byt113068ms15okmodel_provider, n, out_tokens
group-byt211659ms15okmodel_provider, n, out_tokens
group-byt312197ms15okmodel_provider, n, out_tokens

Catalog vs. response schemaclaimed guide vs columns coral actually returned

Catalog guide (verbatim)
Run the converter first to populate the JSONL files:
Columns coral returned (7)
idtitleagentmodel_providertokens_inputtokens_outputcost
Probed by bld-dabqr1nqj5pc73dgn3h0-676t6 at 2026-09-01T09:48:49Z
JSON record: reports/opencode/tables/sessions.json
first_run_at: 2026-09-01T08:31:15Z
last_retried_at: 2026-09-01T09:48:49Z
retry_count: 3
View version history →