Add persistent disk cache for parsed session data
Some checks are pending
CI / semgrep (push) Waiting to run

Cache normalized turns/calls to ~/.cache/codeburn/session-cache.json so
the CLI skips re-parsing unchanged JSONL files on subsequent runs.
File reconciliation uses dev+ino+mtime+size fingerprinting; cost,
classification, and summaries are recomputed at query time. Atomic
writes via temp+fsync+rename, deep structural validation on load,
per-provider env fingerprinting, and best-effort save so cache failures
never break the CLI. ~6x speedup on warm cache.
This commit is contained in:
iamtoruk 2026-05-16 01:04:13 -07:00
parent d568c8c103
commit bd41fa3962
6 changed files with 1236 additions and 51 deletions

View file

@ -83,6 +83,7 @@ export type ParsedApiCall = {
timestamp: string
bashCommands: string[]
deduplicationKey: string
cacheCreationOneHourTokens?: number
}
export type TaskCategory =