Session logs
Where each surface keeps its history — Local stores on your device, Cloud runs on the server — and how to read them without breaking anything.
History is kept differently depending on where the work ran, and that difference matters before you promise anyone a copy. Local Desktop and CLI sessions are stored on your device. A Cloud chat is not: its work and the transcript of it are recorded server-side, so a local file is not the only copy of a Cloud run. Content sent to a model leaves the device as well — that is how a hosted model works, as privacy and your data explains.
Where the files are
| Surface | Path |
|---|---|
| CLI | ~/.config/manicode/projects/{PROJECT_FOLDERNAME}/chats/{DATE-TIME}/log.jsonl |
| Desktop, current builds | <project>/.freebuff/desktop-v2.db |
| Desktop, older layout | ~/.config/freebuff-desktop/projects/<project-slug>/desktop-v2.db — kept by installs that predate the in-project store |
| App logs (Windows) | %APPDATA%\Freebuff\logs\orchestrator-stderr.log |
| App logs (macOS) | ~/Library/Logs/Freebuff/ |
| App logs (Linux) | ~/.config/Freebuff/logs/ |
On Windows, ~ is %USERPROFILE%. A CLI configured with
FREEBUFF_CONFIG_DIR keeps its data there instead of
~/.config/manicode.
What Cloud keeps
A Cloud chat runs on a copy of the project held with Freebuff, and the run's events and transcript are written server-side, including archived transcripts of earlier runs. Three consequences follow:
- Do not describe a local transcript as the only copy of a Cloud session.
- Deleting a file on your machine does not delete the server-side record; a deletion request follows privacy and your data.
- Whether support can retrieve a particular Cloud transcript depends on the support path and its retention, so ask instead of promising either way.
Reading them
The CLI log is JSON Lines — one JSON object per turn, greppable with
jq. The Desktop store is SQLite, so open it read-only and never while the app
is running: sqlite3 file:desktop-v2.db?mode=ro.
In the Desktop database, messages do not have a text column. Content is a JSON array in
parts_json, one entry per part, with kind values such as
text, compaction, reasoning, tool,
notice, changes and agent. Thread state lives in
threads, including status, model,
title, updated_at and sidebar_archived_at.
Recovering an interrupted session
A small read-only helper does the boring part: it finds the stores, searches them and prints a resume brief. Python 3.8+, standard library only, works on Windows, Linux and macOS.
Download fbsess.py Download SKILL.md
| Command | What it does |
|---|---|
doctor | Detected paths, store sizes, thread counts, schema check, CLI folders, log path. |
list | Desktop stores, newest first, plus the newest CLI chats. |
find <keyword> | Keyword search, using the store's own full-text index when present. |
brief [thread_id] | Resume brief: state, last compaction summary, last user message, last reply, changed files, unanswered questions. |
dump [thread_id] --out <path> | Full readable text of one thread, without reasoning or UI noise. |
answers [thread_id] | Every question the agent asked, with the answer you gave. |
cli [chat] | Lists CLI chats, or prints one. |
Scope flags: --project SUBSTR (repeatable), --exclude SUBSTR
(defaults to the private workspace_personal; pass --exclude "" to
include everything) and --limit N.
python scripts/fbsess.py doctor
python scripts/fbsess.py find "migration" --project workspace-1a2b3c4d
python scripts/fbsess.py brief 98203c25-f1f1-4a40-9aad-046e3a8b250f
python scripts/fbsess.py dump --out ../dumps/2026-10-24.md --limit 400
Safety rules
- Read-only. The helper opens connections with
mode=roandPRAGMA query_only; if the app holds a lock it reads a temporary copy of the database plus its-waland-shmfiles. - Never edit, move or delete the store or its sidecar files, and never write to it while Freebuff is running.
- Keep dumps out of version control. A transcript can contain private content, paths and tokens.
- Scope your searches. A broad
findreads other projects' history; use--projectwhen the question is about one workspace.
Do not paste a whole transcript into a public channel. Quote the lines that answer the question, and redact anything that looks like a key or a password.