Agent history · Claude Cowork · checked
Where is my Claude Cowork history, and how long does it last?
Cowork keeps a task's history where the task ran. A task on your computer writes an audit.jsonl file to the Claude app's local-agent-mode-sessions folder, outside Anthropic's retention unless your organization is on Claude Enterprise with the Compliance API on, and people have lost that history when a plan lapsed or an app update moved it. Since 6 Oct 2026, new Cowork tasks on Pro and Max run in Anthropic's cloud and are saved to your Claude account instead. Keep a copy of the local folder. agentreceipt reads it on your computer.
Changed recently: Since 6 Oct 2026, new Cowork tasks on Pro and Max run in Anthropic's cloud and the "Only on your computer" setting is gone; tasks already started on your computer stay there until they finish.[4]
Changed recently: Cowork and chat are becoming one Claude, rolling out to Pro and Max: there is no "Cowork" option to pick, and Claude decides whether a message is a task.[4]
Where your Claude Cowork history lives
- macOS: ~/Library/Application Support/Claude/local-agent-mode-sessions/…/audit.jsonl, one folder per task[1]
- Windows: %APPDATA%\Claude\local-agent-mode-sessions\…\audit.jsonl[1]
- Windows, Microsoft Store app: %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\local-agent-mode-sessions[3]
- Claude Desktop in third-party mode: the same folder under Claude-3p. Anthropic documents the file there as an append-only, chained log of tool calls, permission decisions and file operations, beside the task's uploads/ and outputs/.[2]
- Cloud tasks (Pro and Max, from 6 Oct 2026): in your Claude account.[4]
- Team and Enterprise: a local task's history stays on the member's computer, outside Anthropic's standard retention, where admins cannot manage or delete it.[5]
- Enterprise with the Compliance API on: Anthropic also keeps each member's Cowork sessions, on their computers and in the cloud, for the organization to retrieve. Team plans have no Compliance API.[14]
- Copilot Cowork, in Microsoft 365 Copilot, is Microsoft's own product, not Claude Cowork; Microsoft Purview's audit log records it (below).[15]
How long it lasts
| What | How long |
|---|---|
| A task on your computer | until it is deleted; outside Anthropic's standard retention[5] |
| Enterprise, Compliance API on | Anthropic keeps sessions 6 years by default, or the organization's own retention period; 30 days with HIPAA readiness[14] |
| Third-party mode | until deleted, unless the admin sets coworkSessionRetentionDays (1 to 3,650 days)[2] |
| A deleted cloud task | removed from Anthropic's systems within 30 days[6] |
| Plan ends | history reported unreachable (claude-code#62893, closed without a fix)[7] |
| A renewal fails | 7 days of history reported lost (claude-code#79618)[3] |
| Overnight, on macOS | history reported lost (claude-code#45076)[8] |
| A Windows app update | sessions reported not carried over to the new version (claude-code#38055)[9] |
| A long task is compacted | the app stops showing older turns; the file on disk keeps them[10] |
How to keep a copy
- Copy the whole local-agent-mode-sessions folder (above) to somewhere you back up; each task's uploads/ and outputs/ come with it.[2]
- Do it before a plan ends or lapses, and again each week.[7]
- Cloud tasks on Pro and Max: in the desktop app, "Download task data" in a task saves that task, and "Export your Cowork data" on the card on the desktop home saves everything.[4]
- Team and Enterprise owners: stream Cowork's events (prompts, tool calls with their file paths, approval decisions, results and cost) to an OpenTelemetry collector you run, from Organization settings › Cowork. It covers sessions in the cloud and on members' computers.[12]
- Settings load when a session starts, so only sessions started after you save them are sent.[11]
- That stream is kept on infrastructure you run, under your own retention; the Compliance API's copy is the one Anthropic holds.[14]
- Enterprise owners can also pull every member's Cowork sessions through the Compliance API; it is not available on Team.[13]
Copy every local Cowork task on a Mac, with today's date in the folder name:
$ cp -R "$HOME/Library/Application Support/Claude/local-agent-mode-sessions" ~/Documents/cowork-history-$(date +%F)
On Windows, in PowerShell:
$ Copy-Item -Recurse "$env:APPDATA\Claude\local-agent-mode-sessions" "$HOME\Documents\cowork-history-$(Get-Date -Format yyyy-MM-dd)"
Then read what Cowork did this week, on the same computer:
$ npx --allow-remote=root https://agentwares.vercel.app/dl/agentreceipt-0.1.0.tgz
agentreceipt reads every audit.jsonl in those folders: each tool Cowork called, by name (sends, writes, deletes), your answers to its permission prompts, the results that came back as errors, and tokens priced at API list price. Anthropic does not document the file's format (claude-code#27724, closed as not planned), so agentreceipt reads the shapes others have mapped from it. Cloud tasks are not on your computer to read.
npx --allow-remote=root https://agentwares.vercel.app/dl/agentreceipt-0.1.0.tgz reads Claude Cowork's audit.jsonl files, Claude Code and Codex session logs, and any Zapier, Make or n8n export you name, on your computer, and prints the week by folder or project: sends, writes, deletes, approvals, failures, tokens and cost. A field a log does not hold reads "not recorded". No account, no network request, no LLM; it sends nothing. --pdf receipt.pdf writes a local, unsigned copy. Free and MIT licensed.
Microsoft 365 Copilot: Purview already keeps a record
Microsoft 365 Copilot already keeps a record. Microsoft Purview Audit (Standard), on by default in Microsoft 365 Business Basic, Standard and Premium, E3, and Office 365 E1 and E3, among others, logs each Copilot interaction at no extra charge. Each record names the user, the time, the app it happened in, and the files, emails and sites Copilot read or changed; Copilot Chat, Copilot Studio agents and Copilot Cowork are logged the same way, and the prompt and response text is kept in the user's mailbox for eDiscovery. Audit (Standard) keeps the records 180 days; Audit (Premium), in E5 or a Purview add-on, keeps them up to a year with a retention policy, or 10 years with a further add-on. If your agent is Microsoft 365 Copilot, start there: agentreceipt does not read Copilot or Purview.
What agentreceipt adds
- The agents Purview does not log for free. Claude Cowork, Claude Code and Codex logs on your computer, and Zapier, Make and n8n exports. Purview audits other vendors' AI apps only on pay-as-you-go billing, and reaches Claude only through Claude Enterprise's Compliance API.
- One person, no admin. It runs on your own computer with no Microsoft 365 tenant; Purview's audit search is for people an admin has given audit permissions.
- A receipt, not a search. The week by folder or project: sends, writes, deletes, approvals, failures, tokens and cost. Purview keeps about one prompt and its responses per record, to search in its portal or export as CSV.
From Microsoft Learn: Audit logs for Copilot and AI applications, Learn about auditing solutions in Microsoft Purview, Microsoft Purview service description, Microsoft Purview billing models, Purview for Microsoft 365 Copilot Cowork and Set up a connector to manage Anthropic Claude data, read .
Keep a signed record that survives a downgrade or a shutdown — Solo $19/mo, Team $99/mo, or $29 once at a shutdown.
Not built yet. It would keep a copy of what your agents did outside the vendor, signed so a client or a boss can check it was not edited, and still there after a plan ends or a vendor closes: names, times and counts, never the text of your messages or files. If you would pay for it, say so with one click. The click is counted, and nothing else is sent or stored unless you then leave an email.
I would pay for a signed recordSources
Each vendor's own pages, read on 10 Oct 2026 unless marked. Vendors change these; the date each says it was updated is shown where it shows one.
- claude-code#27724: the audit.jsonl session format has no public documentation
- Claude Desktop (third-party mode): data storage
- claude-code#79618: a failed renewal lost 7 days of Cowork history
- Claude Help: Use Claude Cowork on web, desktop and mobile (updated 6 Oct 2026)
- Claude Help: Use Claude Cowork on Team and Enterprise plans (updated 5 Oct 2026)
- Claude Help: Get started with Claude Cowork (updated 6 Oct 2026)
- claude-code#62893: Cowork history unreachable after the subscription ends
- claude-code#45076: Cowork history lost overnight on macOS
- claude-code#38055: a Windows update did not carry Cowork sessions over
- claude-code#37273: compaction hides earlier turns
- Claude docs: Monitor Cowork with OpenTelemetry
- Claude Help: Monitor Claude Cowork activity with OpenTelemetry (updated 16 Sep 2026)
- Claude Help: Access the Compliance API (Enterprise) (updated 21 Sep 2026)
- Claude Platform Docs: Compliance API, retrieve session transcripts
- Microsoft Learn: Purview for Microsoft 365 Copilot Cowork
agentreceipt is a free tool from agentwares. Source: github.com/agentwares/agentreceipt.