Skip to content

Keep a year of agent logs

Claude Code deletes a session's log 30 days after its last write. One switch keeps a compressed copy of your agents' logs on this Mac for a year. Free, off until you turn it on, and the archive uploads nothing.

On this page

Claude Code deletes a session's log 30 days after its last write, with its subagents' transcripts, saved tool output, plans and file history. After that, Excellent can't show what the session did, and neither can anything else. Keep a year of agent logs keeps a compressed copy of every agent's logs on this Mac for a year.

Free

Keeping a year of logs is free. You don't need Pro, and it stays off until you turn it on.

Turn it on

In Settings, under Agent logs, turn on Keep a year of agent logs. Excellent starts copying at once. Under the switch it says how many sessions it has kept, how big the copies are, and how many it kept after the agent deleted them.

First run offers to keep a year of logs, already ticked, and then backup is one more click. If you used Excellent before, you see one card asking, once.

Show in Finder opens the folder. Turn the switch off to stop copying. What it already kept stays until you delete the folder.

What it keeps

  • Transcripts. Every log Excellent reads: Claude Code, with its subagents' transcripts, and Codex.
  • What a session leaves beside its transcript. For Claude Code that is saved tool output, session memory, workflows, project memory, file history, plans, tasks, to-dos, agent memory, your prompt history and CLAUDE.md. For Codex it is its older sessions, archived sessions, rules, prompt history, session index, AGENTS.md and hooks.json.

Codex's older sessions are already compressed. Excellent copies those as they are, byte for byte.

What it never copies

Sign-in files, secret files and .env files. Settings files, caches, debug output, shell snapshots, SQLite stores and links. Any file your own rules tell agents never to open. It copies plain files inside your home folder, and nothing else.

Keys come out as it copies

Each copy is your agent's log with every key Excellent recognizes, the same list Encrypted backup uses, replaced by "removed by Excellent". Only the key goes, never the rest of the line, so the log reads the same. A file Excellent can't check for keys isn't copied, and Settings says how many weren't, with Show Which. Your agents' own logs are never touched by the archive.

Copies kept before Mac 1.3.0 are cleaned once, in the background, the first time the archive runs. With the archive off, they keep any keys until you choose Remove keys from the logs or turn the archive on. Remove keys from the logs cleans the archive's copies too, including copies of logs an agent has since deleted. A damaged copy is left alone and named in Settings until you choose Remove Damaged Copies, which asks first.

When it copies, and for how long

A log is copied once it has been still for 10 minutes, and again whenever it changes. The archive checks every hour.

The archive keeps copying with Excellent closed, hourly and when you log in.

Turning the archive on adds a login item that does this, and turning it off, or removing Excellent, takes it out. Under the switch, Settings shows when the archive last ran.

Claude Code deletes logs by its cleanupPeriodDays setting. Excellent raises it to match the archive's days, never lowers it, and puts it back when you turn the archive off.

A copy stays after the agent deletes its log. It goes a year after its session's last write. A log that is already older than a year isn't copied.

The copies are compressed with zstd, about 4.8 times smaller than the originals on a real Mac, and readable only by you. Any zstd -d opens one. Show in Finder takes you to them.

Privacy

The archive uploads nothing. The copies stay on this Mac. Encrypted backup is a separate switch that reads the archive. It uploads only after you turn it on, and what it uploads is locked on your Mac first.

What it can't do yet

  • Excellent's own history doesn't read the copies yet. You can open them in Finder.
  • It copies only inside your home folder. A log an agent writes to a folder elsewhere isn't copied.
  • It sets no cap on disk space beyond the year. A typical user writes far less than a heavy one, who can reach about 20 GB.
  • Some secrets stay in a copy. The archive takes out every key Excellent recognizes, but a password inside a database address (postgres://user:password@host) isn't one of them.

Next

Encrypted backup copies the archive off this Mac, with a key only you hold.

Was this page helpful?

Something wrong or missing in the docs? Email hello@excellent.so.

Start here

  • StartWhat Excellent does
  • StartInstall Excellent on your Mac
  • StartYour first scan
  • StartWhat it finds
  • StartFree and Pro