OpenCode

OpenCode history: offboarding a developer

What leaves with the laptop?

Why this is hard

The offboarding checklist covers repository access, SSO, cloud roles and the laptop itself. It does not cover the directories where AI tools keep their history, because nobody wrote them down — so the record of how a departing engineer built things leaves with the hardware.

What OpenCode specifically does to you here

A single database, frequently over a gigabyte, is exactly the file someone deletes while clearing space on a machine being returned. Use sqlite3's own .backup rather than cp if you are copying it on the last day.

See it on your own machine
du -sh ~/.local/share/opencode

Where OpenCode keeps this in the first place: ~/.local/share/opencode/opencode.db. One database holds every session, it grows without limit, and nothing else has a copy.

What a working answer looks like

A working answer means the record survives the machine being wiped, without anyone having to remember to export it on their last day.

Start by measuring what you have. npx promptwake doctor reports what every AI tool on the machine is holding and how much of it sits inside a deletion window — no account, writes nothing, sends nothing anywhere. If the conclusion is that the record should not depend on one laptop, that is what PromptWake captures: prompt, response and the resulting diff, local by default and synced into a shared timeline on the paid tiers.