/sessions, nested under Datasets in the sidebar — the entry unfolds while you are inside the Datasets subtree or on the page itself) lists agent runs that read or wrote to your workspace’s memory. A session is short-term memory for one agent conversation: its questions, answers, tool calls, tokens and cost. Cognee distills sessions into the long-term memory of a dataset (see Self-improvement), and that dataset’s graph is what later recalls search. For the workspace-wide log of individual runs and memory operations rather than whole conversations, see Activity.
The header shows a one-line summary of the selected time range — for example, Agent runs that wrote to your memory · 142 sessions · 96% success · $3.21. Aggregate stats (total sessions, success rate, and total spend in USD to two decimals) are pulled from GET /v1/sessions/stats?range=, and the list itself comes from GET /v1/sessions (paged).

Sessions: the list of agent sessions and, for the selected one, its tokens, cost, duration, self-improvement status and transcript
Time range
A segmented control in the header filters sessions and stats by time range:
Click Refresh to re-pull the list, the aggregate stats, and the currently open session detail.
Sessions list
The page uses a two-pane layout. The left pane lists up to 100 sessions; the right pane shows the detail for the selected session. Each row in the list shows:- A colored status dot indicating the run state.
- A short session id.
- The last-activity or started date.
- The model used.
abandoned is not stored anywhere. It is worked out each time the list loads: a session still marked running with no activity for 30 minutes shows as abandoned. Sessions are not closed automatically when a conversation ends, so a conversation that simply stopped reads abandoned once it has been idle for 30 minutes. That means the conversation went quiet, not that anything in it failed.
Sessions are not Activity rows
A session is one whole agent conversation. The Activity log lists the individual operations that ran inside it — eachrecall, remember, and improve — and each of those has its own status. The two are easy to mix up, because an Activity row links to its session and the same status words appear on both pages:
- The same session can read
abandonedhere while every operation inside it readscompletedon Activity. Both are correct: every step finished, and the conversation then went idle. abandonedis gray here and amber on Activity, where it marks a run that looks stuck.agent_sessionsis a dataset, not this list. It is the default dataset the Claude Code and Codex plugins write to, so it appears on Datasets, in the Graph, and in Activity’s Dataset column. A pipeline run on that dataset showingcompletedis a finished run, not a finished session.
Session detail
Selecting a row loads the session fromGET /v1/sessions/{session_id} into the right pane. The header shows the session id with a copy button, followed by stat cards:
- Observations — Message count for the session.
- Tool calls — Number of tool invocations.
- Tokens — Tokens in plus tokens out.
- Cost — Spend in USD to four decimals (e.g.
$0.0123). - Duration — Total run time.
Transcript
The Transcript · {n} turns section lists the session’s question-and-answer turns. Each turn is tagged either Recall (purple) or Remember (green):- A turn is Recall when its question matches a recall trace — the agent read from memory.
- Otherwise the turn is a Remember — the agent wrote to memory.
Self-improvement
A Self-improvement card under the stat cards shows the session-to-graph bridge, Cognee’s improve() operation: the session’s questions, answers and feedback are bridged into the permanent knowledge graph, which weights existing memories by feedback, persists the conversation, distills reusable lessons and enriches the graph. The card shows the Last graph enrichment (with in progress or failed when relevant) and the Dataset it wrote to. Before any run it reads No improve recorded for this session yet. Runs from before Cognee 1.6.6 are not linked to sessions. For agents connected with the Claude Code or Codex plugin, improve runs on its own:- when the session ends,
- every 150 stored tool calls or stops in a long session (at most once a day per session),
- when you run the plugin’s sync command or switch datasets.
Tool invocations
A Tool invocations bar chart counts the session’s traces by function, so you can see which tools the agent used most.How sessions get populated
Sessions appear when an agent callsPOST /v1/recall (reads) and POST /v1/remember/entry (writes) with a consistent session_id.
search-ui-, so they are easy to distinguish from agent sessions in the list.
Session entries — agent Q&A and trace entries alike — are retained for one year of inactivity; the clock restarts on every write. See Session retention.
End a session
There is no End session button. A session ends when the conversation does:- Claude Code or Codex plugin: quit the agent (for example
/exit). TheSessionEndhook syncs the session into your graph; a new conversation starts a new session. To bridge a session into the graph without quitting, run the plugin’s sync (/cognee-memory:cognee-syncin Claude Code). - Search page: start a new chat.
- Your own code: stop sending that
session_idand start using a new one. Call improve withsession_idsto bridge the finished session into the graph.
abandoned after 30 minutes idle. That is expected and loses nothing.
No sessions showing
Empty state
When no sessions exist for the selected range, the page shows:When an agent connects to Cognee and reads or writes memory, its session will appear here with tools used, observations, and cost.To start sending data, connect an agent through the Integrations flow, which deep-links back here with a Go to Sessions → button.
Looking for chat conversations instead of agent runs? See the Search page, whose sessions carry the
search-ui- prefix.