When you view an extended date range on the Dashboard or Sessions page, Tokematic may show a notice at the top right under the date picker:
On this page
- How Tokematic Detects Earlier Activity Without Full Logs
- Why Coding-Agent Vendors Clear Local Session Histories
- Keeping Your Session History Complete Going Forward
- Related Guides
No sections match. Try another word.
Understand gaps in your session history on YouTube
Transcript
An older project can have plenty of activity but only a few recorded sessions. That doesn't always mean sync has failed. Let's separate a limited view from missing history, and see what you can do next.
First, check the date range and selected project or organization. Tokematic shows the recorded work you have permission to read within that view. A narrow date range or a different project can leave the session you're looking for outside it.
An AI co-signed commit can reveal work with no matching recorded session. That includes commits you push to GitHub. Tokematic's terminal check reads the local Git history and compares it with recorded sessions. If you disabled AI co-signing, that clue is missing. A quiet history alone cannot tell the whole story.
The Dashboard also uses gaps and sparse periods in the recorded timeline to flag earlier history. All time may start at the more complete period. Include earlier logs expands the view to the oldest surviving session. These date-based hints are separate from commit evidence. Neither check restores a deleted transcript.
If you regularly worked in disposable VMs or containers, pay special attention here. Their transcripts can disappear when that environment is removed. If you did not preserve the transcript or record its contents elsewhere, it is gone. A GitHub commit may prove that work happened, but it cannot recreate the missing conversation.
For future work, keep Tokematic recording on your working computer. Connect remote machines and sandboxes before you rely on their history. After setup, confirm that a small session arrives. An open sandbox shell alone doesn't show that recording is working. Our sandbox guides cover that check.
Check your view, read the coverage notice and trace the machine where the work happened. Tokematic can help you understand the history it recorded. It cannot recreate a conversation whose logs are gone.
Session logs before <date> may be missing.
This guide explains how Tokematic detects earlier activity when session transcript files are no longer on disk and why coding-agent vendors clear their local histories.
How Tokematic Detects Earlier Activity Without Full Logs
Tokematic inspects your recorded timeline across every connected source:
- Earlier surviving sessions followed by multi-week gaps: You may have one or more older sessions recorded on disk (or synced from another machine) followed by a multi-week stretch with zero session files before your continuous daily history begins.
- Sparse cleanup edges: When a coding agent's rolling auto-delete window stops or only a few pinned or recently touched transcripts survive before continuous recording starts, Tokematic sees activity on isolated days while the surrounding days' logs are gone.
- Account and billing activity before local log retention: Vendor account metadata, billing invoices and metered spend records often extend back months or years, whereas local CLI transcript directories only hold recent files unless Tokematic was already running to capture them.
From this timeline, Tokematic records two dates:
firstSessionDate: The earliest calendar day with any recorded session.completeFrom: The oldest calendar day from which your recorded session history is continuous.
When you choose All time, Tokematic defaults the start of the window to completeFrom so your totals, daily averages and breakdowns are not skewed by earlier partial months. You can click Include earlier logs from ... at any time to expand the window back to firstSessionDate, or click Show from ... to return to the continuous range.
Why Coding-Agent Vendors Clear Local Session Histories
Most terminal and IDE coding agents store full conversation transcripts as local files in your home folder rather than keeping an indefinite archive in the cloud. Each vendor cleans up or rotates those local files differently:
Claude Code (~/.claude/projects/)
Claude Code writes session transcripts as .jsonl files under ~/.claude/projects/. By default, Claude Code enforces a rolling 30-day retention policy (cleanupPeriodDays: 30) and automatically deletes session files older than 30 days during normal CLI startup. Any sessions that aged past 30 days before Tokematic was installed (or before cleanupPeriodDays was raised in ~/.claude/settings.json) were permanently removed from disk by the CLI.
Codex (~/.codex/sessions/)
Codex writes date-partitioned rollout logs under ~/.codex/sessions/YYYY/MM/DD/. Older session logs can be missing when .codex state is reset during CLI upgrades, when archived sessions are pruned or when work took place on another machine or container before Tokematic was paired.
Antigravity and Gemini CLI (~/.gemini/)
Antigravity and Gemini CLI store conversation checkpoints and local daemon state under ~/.gemini/. Local checkpoints are cleared when application caches or workspace state directories are reset, or when older checkpoints are garbage-collected across updates.
Kimi Code (~/.kimi/ and ~/.kimi-code/)
Kimi Code stores session transcripts in its local user state directory. Reinstalling the CLI, clearing local state or switching workstations leaves earlier sessions behind because the CLI does not backfill historical transcripts from the server onto a new disk.
Ephemeral Containers, VMs and Remote Sandboxes
Sessions that run inside disposable Docker containers, cloud VMs, devcontainers or temporary SSH hosts write their logs to the container's local filesystem. When the container or VM stops and is removed, those logs vanish unless a paired tmatic collector synced them first.
Runs That Save No Session History
A script or agent can start Claude Code with --no-session-persistence. That run writes no transcript at all, so there is no log to read. When Tokematic's session hooks are on, Claude Code also reports its token use to Tokematic on your computer, and Tokematic records the run as a session titled Session details explicitly suppressed. It shows the model, tokens and cost like any other session, under the session that started it when Tokematic can tell which one did. It shows no prompts or replies, because the run kept none.
While a Claude Code session is running, the hooks also say once when a command is about to start a run that saves no history.
Keeping Your Session History Complete Going Forward
- Keep Tokematic running on your Mac: Once Tokematic imports a session into your local store (
~/.tokematic/store.db), your recorded metrics, turns and summaries remain in Tokematic even if the vendor CLI later deletes its own raw log file. - Extend local CLI retention: Raise
cleanupPeriodDaysin~/.claude/settings.json(for example to36500) so Claude Code does not purge local.jsonltranscripts after 30 days. - Pair remote machines and containers: Use
tmatic pairortmatic boxso sessions inside Linux workstations, VMs and Docker sandboxes stream back to your store before the environment is torn down. - Let scripted runs keep their history: Leave out
--no-session-persistencewhen a script runsclaude -p. Run it in a scratch folder instead if it should stay out of a project's session list. Tokematic then records its prompts, turns and summary as well as its use. - Keep session hooks on: Turn on Sessions hooks in Tokematic's settings or run
tmatic hooks setup. Claude Code then reports the use of runs that save no history.
Related Guides
- Git-Style Session History, Blame and Automated Summaries
- Pairing VMs, Containers and Remote Workstations
- Running Unattended Agents in Isolated Sandboxes
Next video: Take Tokematic with you on iPhone and iPad
2. For Engineers: Pace, Sandboxes & Proving Value
All guides.tmatic2.7Git-Style Session History, Blame and Automated Summaries2.8Winning Tooling Arguments with Real Model Comparisons2.9Use the Tokematic API2.10Share a session2.11Why Earlier Session Logs May Be Missing2.12Notification settings2.13Browser notifications for alerts