You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Claude loading performance now has a different baseline than the original #4 measurement. #4 measured pre-#8 serial full transcript parsing (LoadClaude at ~1.05s for 103 JSONL files / 81.8 MB). Current aps already has:
client-level concurrent loading in main.loadSessions
Claude per-file worker pool
persistent MetaCache keyed by transcript mtime + size
That means the next optimization should be measured against the current cold-cache and warm-cache behavior, not the original #4 baseline.
Opportunity
Claude Code's ~/.claude/history.jsonl is a lightweight prompt history index containing sessionId, project, timestamp, display, and pastedContents. Similar tools use it as a fast index before reading per-session transcript JSONL.
aps could use history.jsonl to quickly build lightweight Claude session candidates, then scan ~/.claude/projects/*/*.jsonl to mark transcript-backed sessions as resumable and enrich metadata only when needed.
Tests cover history/transcript deduplication and preserve existing transcript-backed LoadClaude behavior.
Resumable sessions continue to launch via transcript-backed sessionId only.
History-only sessions are either excluded or explicitly marked non-resumable by shared data model, with no accidental claude --resume launch path.
The issue body or plan file records whether the history-index-assisted path improves cold cache, warm cache, first-result latency, or none of the above.
Problem
Claude loading performance now has a different baseline than the original #4 measurement. #4 measured pre-#8 serial full transcript parsing (
LoadClaudeat ~1.05s for 103 JSONL files / 81.8 MB). Current aps already has:main.loadSessionsMetaCachekeyed by transcriptmtime + sizeThat means the next optimization should be measured against the current cold-cache and warm-cache behavior, not the original #4 baseline.
Opportunity
Claude Code's
~/.claude/history.jsonlis a lightweight prompt history index containingsessionId,project,timestamp,display, andpastedContents. Similar tools use it as a fast index before reading per-session transcript JSONL.aps could use
history.jsonlto quickly build lightweight Claude session candidates, then scan~/.claude/projects/*/*.jsonlto mark transcript-backed sessions as resumable and enrich metadata only when needed.Desired direction
MetaCacheMetaCache~/.claude/history.jsonlonce to group bysessionIdLoadClaude.Non-goals
history.jsonlis not a full transcript.MetaCacheunless measurements prove a better replacement.Acceptance criteria
LoadClaudebehavior.sessionIdonly.claude --resumelaunch path.Related issues