Cody provides three ways to get your data out of the app: a CSV export of all tasks (for Excel or any spreadsheet tool), a full JSON backup of the entire application state, and a diagnostics report you can share with support without exposing personal information. All exports open a native Windows Save As dialog so you can choose exactly where the file lands.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/miu-ll/Cody-assistant/llms.txt
Use this file to discover all available pages before exploring further.
Export API
Both export operations go through thewindow.desktop API exposed by the preload layer. Their signatures are:
exportFile rejects payloads that exceed the 10 MB export size limit before opening the dialog.
CSV export
The CSV export writes every task in your list to a plain-text file that Excel, Google Sheets, and LibreOffice Calc can open directly. Columns included:| Column | Source field |
|---|---|
| Title | task.title |
| Detail | task.detail |
| Category | task.category |
| Subcategory | task.subcategory |
| Priority | task.priority — urgent, high, or normal |
| Status | task.status — pending or done |
| Due date | task.dueAt (ISO 8601) |
| Owner | task.owner |
| Source | task.source — email, calendar, or manual |
| Recurrence | task.recurrence — none, daily, weekly, biweekly, or monthly |
| Created | task.createdAt |
| Completed | task.completedAt |
Click Export tasks (CSV)
Under Export & Backup, click Export tasks to CSV. Cody serialises all current tasks and calls
window.desktop.exportFile.Choose a destination
A native Windows Save As dialog opens with a default filename such as
cody-tasks-2024-11-15.csv. Choose a folder and click Save.JSON backup
The JSON backup writes the entireAppState object to disk — tasks, suggestions, meetings, dismissed suggestion IDs, briefing timestamps, and all settings. It is a complete snapshot you can use to restore Cody on the same machine or on a new one.
Replace the data file
Copy your backup file into this folder and rename it to
cody-data.json, replacing the existing file.Automatic daily backup
Cody automatically copies the primary data file to a backup once per calendar day, without any action from you. How it works:- Before every save, Cody checks whether a backup from today already exists.
- If not, it copies
cody-data.jsontocody-data.backup.json(same directory). - The backup is written before the new data is saved, so it captures the state at the start of each day.
- If the primary file becomes unreadable on startup (parse error, corruption), Cody automatically falls back to the backup and logs the event to
startup.log.
The automatic backup is a single rolling file — it is overwritten each day. It protects against same-day corruption, but it is not a full history. Use the manual JSON backup export if you need long-term snapshots before major changes.
Diagnostics export
The diagnostics export generates a structured JSON report that contains no task content, no email data, and no API keys. Share it with support to help diagnose startup failures, data file issues, or unexpected behaviour. What the report contains:App metadata
App metadata
- Application name and version number
- Whether the build is packaged (
app.isPackaged) userDatafolder path (without file contents)
Runtime versions
Runtime versions
process.platformandprocess.arch- Electron, Chromium, and Node.js version strings
Window state
Window state
- Whether the assistant window is currently visible
- Whether the pet window is currently visible
Data file info
Data file info
- Whether
cody-data.jsonandcody-data.backup.jsonexist - File sizes in bytes
- Last-modified timestamps
Data summary (counts only — no content)
Data summary (counts only — no content)
- Number of tasks, suggestions, meetings, and categories
- Whether an Outlook account, AI provider, and AI key are configured (
true/false— key value is never included) - Current pet variant and auto-sync interval
- Whether
launchAtLoginis enabled
Focus Mode state
Focus Mode state
- Current mode (
focusordnd) and end time, if active - Number of reminders currently scheduled
Click Export diagnostics
Under Export & Backup, click Export support diagnostics. Cody builds the report and opens a Save As dialog with a default filename like
cody-diagnostico-2024-11-15.json.File size limits
Cody enforces hard limits on file sizes to prevent runaway storage use:| Limit | Constant | Value |
|---|---|---|
| Primary data file | MAX_DATA_BYTES | 5 MB (5 * 1024 * 1024 bytes) |
| Export files (CSV, JSON backup) | MAX_EXPORT_BYTES | 10 MB (10 * 1024 * 1024 bytes) |
MAX_DATA_BYTES, Cody rejects it and surfaces an error message without writing to disk. If an export payload exceeds MAX_EXPORT_BYTES, the main process returns null from exportFile before opening the Save dialog.