Goose Source
Default location
Section titled “Default location”The adapter reads the first readable database in this order:
$GOOSE_PATH_ROOT/data/sessions/sessions.dbwhenGOOSE_PATH_ROOTis set- the platform data directory:
- Linux:
$XDG_DATA_HOME/goose/sessions/sessions.db(default~/.local/share/goose/sessions/sessions.db) - macOS:
~/Library/Application Support/goose/sessions/sessions.db - Windows:
%APPDATA%\goose\sessions\sessions.db(or under%LOCALAPPDATA%)
- Linux:
- legacy:
~/.local/share/Block/goose/sessions/sessions.db
Override
Section titled “Override”llm-usage daily --source goose --goose-db /path/to/goose/sessions.dbgoose is DB-backed, so use --goose-db; --source-dir goose=... is rejected.
Parsing notes
Section titled “Parsing notes”The adapter reads whole-session aggregate rows from Goose’s SQLite sessions table, prefers accumulated token columns when present, and infers reasoning tokens from total - input - output. Those reasoning tokens are counted inside output, and the database’s -wal and -journal sidecars invalidate the parse cache. Each session’s totals are dated at its created_at, so a long session lands on the day it started. Goose stores no cache buckets, so cache reads are not split out of input.