Domovy (домовий), the house spirit who keeps the home in order

Tidy up after your AI coding agents.

Domovy finds every agent session on your Mac, archives the ones worth keeping, deletes the rest properly and shows where the disk space went. A native macOS app and the domo CLI, with the same engine.

Version 1.0.0 · macOS 14 or later · GPL-3.0

Or with Homebrew

brew trust turman17/tap
brew install --cask turman17/tap/domovy
xattr -dr com.apple.quarantine /Applications/Domovy.app

Why these lines? Recent Homebrew loads casks from other taps only after you trust the tap once (brew trust; older versions skip it). Domovy is open source but not notarized by Apple, so Gatekeeper blocks the first launch; clearing the quarantine flag once fixes that, or approve it under System Settings → Privacy & Security → Open Anyway.

The Domovy Sessions window: a sidebar with Sessions, Disk, Processes and a list of agents; a table of sessions with agent, project, last active, size and status; retention notices for Claude Code and Gemini CLI above it; and a transcript preview on the right.
Sessions: every agent in one table, with a transcript preview. Sample data.

What it does

AI agents write a lot to disk and rarely clean up. A Claude Code session is spread over five to ten places; Codex keeps rollouts plus several SQLite indexes; Cursor keeps chats inside one shared database. None of them has a proper “delete this session”, and some delete your history on their own after 30 days.

Domovy knows how each agent stores its sessions, and does the tidying with you, one plan at a time.

Sessions
One table of every session across agents: title, agent, project, last active, size, and status (live, idle, archived, expiring). Delete removes a session with its companion files and index entries, so nothing is left dangling. Archive compresses cold sessions with APFS transparent compression; the agent can still resume them. When an agent is about to delete history on its own, Domovy says so: “Claude Code deletes sessions older than 30 days. 1 session goes at the next sweep”, with Archive all.
Disk
A per-agent breakdown where every category is marked safe to remove, removable with consequences (and which ones), or keep. Guided cleanups for the Claude Desktop VM bundle, large Codex rollouts, merged agent worktrees and local models (Ollama, LM Studio, Hugging Face).
Processes
Memory and CPU per session, orphaned agent processes and MCP servers left running. You can freeze a process tree and resume it later instead of killing it.
Rules
Optional automatic tidying, such as “archive Codex sessions older than 60 days”. Rules are off until you turn them on, and each run is previewed first.
Search
Search and filter sessions by agent, project and status, search inside transcripts, and press Space for a native transcript preview. A local secret scan finds API keys and tokens in transcripts and can redact them.
Tour
The first launch explains what Domovy reads and what it never does, then a short tour walks through your own numbers. Help › Take the Tour plays it again. A menu bar item shows the total agent footprint and anything that needs attention.
The Disk view: Claude Desktop and Codex categories such as VM bundle, Electron caches, large rollouts and logs database, each labelled Consequences, Safe to remove or Keep, with a one-line explanation, a size and a button such as Review, Clean Up or Show in Finder.
Disk: every category says what removing it means.
The first step of the tour over the Sessions window: “Your AI agents keep 271,2 MB on this Mac”, with how much is safe to remove and how many sessions are live.
The tour starts with your own numbers.

Agents it knows

Every adapter reads the agent’s storage format exactly. When it meets a layout or version it does not know, it goes read-only and says why.

What Domovy does Verified on a real install Experimental
SessionsList, preview, delete, archive
Verified on a real install
  • Claude Code
  • Codex (CLI and app)
  • Gemini CLI
  • Antigravity CLI
  • OpenCode
  • Cursor (state.vscdb and CLI chats)
  • Zed Agent Panel
  • VS Code chat (Copilot Chat)
  • Gemini Code Assist
Experimental
  • Copilot CLI
  • Qwen Code
  • Kimi CLI
  • Roo Code
  • Cline
  • Kilo Code
  • Crush
  • Continue
  • Auggie
  • Factory Droid
  • Aider
  • Grok CLI
Sessions, read-onlyList and preview
Verified on a real install—
Experimental
  • Kiro
  • Goose
  • Amazon Q CLI
Registry and diskSession registry, VM bundle, caches
Verified on a real install
  • Claude Desktop
Experimental—
Disk onlyFootprint and guided cleanups
Verified on a real install
  • Herdr
Experimental
  • Windsurf
  • Trae
  • Warp
  • Amp
  • Junie
  • iFlow CLI
Local modelsList and remove models
Verified on a real install
  • Ollama
  • Hugging Face cache
Experimental
  • LM Studio

Experimental agents are built from the agent’s documentation and source code but not yet checked against a real install; the app shows them with a flask badge, and the CLI and MCP server mark them too. If you use one, a report that it works, or does not is very welcome.

Careful by design

Domovy changes nothing until you approve a plan. These rules hold in the app, the CLI and the MCP server.

  1. Every change is a plan

    You see exactly which files and index entries change, and how much space comes back, before anything happens. For example: “Moves 14 files (212 MB) to the Trash. You can undo this.”

  2. Nothing is deleted permanently by default

    Removed files go to the Trash or to Domovy’s quarantine folder.

  3. Every change can be undone

    Each change writes an undo entry. Press ⌘Z in the app, or run domo undo.

  4. Live sessions are never touched

    Domovy checks open files, the agents’ own session markers and lock files, and leaves alone anything written to in the last 10 minutes. If it is unsure, it refuses.

  5. The agent’s own command comes first

    Where an agent has one (codex delete, opencode session delete, ollama rm, hf cache rm), Domovy uses it, then checks the result.

  6. No database is written while its app runs

    Databases are backed up before any write.

  7. Dates stay as they were

    Modification times are preserved, so the agents’ own retention keeps working as before.

  8. What agents need to run stays

    Settings, sign-in, plugins, skills, memory and CLAUDE.md are never removed.

The quarantine and undo log live in ~/Library/Application Support/Domovy. Uninstalling, even with brew uninstall --zap, leaves that folder alone.

Ask your agent

domo is also an MCP server and an agent skill, so the agent you already work with can list its sessions, check disk use and plan a tidy-up. It shows you the plan; nothing changes until you say yes.

Connect your agents

domo install           # pick agents to connect
domo connect --all --dry-run
domo disconnect --all  # removes exactly what was added
Install
domo install lets you pick agents, registers Domovy’s MCP server and installs the domovy skill. In the app: Domovy › Connect Agents…
Your config stays yours
Domovy uses the agent’s own mcp add command where one exists (Claude Code, Codex, Gemini CLI, Qwen Code, Copilot CLI, Kimi CLI). Otherwise it edits the config in place, keeping every other byte and backing the file up first.
Plans need your yes
Agents can list and plan. A delete or archive runs only with the token of a plan the agent showed you. domo disconnect --all removes exactly what was added.
You

Which of my Codex sessions haven’t I opened in two months? Archive the ones about orbit-api, but show me the plan first.

Your agent, using Domovy

Found 6 Codex sessions last active over 60 days ago; 4 are in orbit-api (38 MB). Plan: archive those 4 in place with APFS compression. They stay resumable, dates are kept, and the undo id is shown afterwards. None of them is live. Go ahead?

The Connect your agents sheet: Domovy found 8 agents and offers Set Up All Agents, which adds the MCP server and the domovy skill to each.
Domovy Settings, Agents pane, listing each detected agent and whether it is connected.

The domo CLI

The same engine as the app, for scripts and terminals. rm and archive always plan first: --dry-run prints the plan and its digest, and -y --if-plan <digest> runs exactly that plan.

domo ls                              # every session; --json for scripts
domo du                              # disk use per agent
domo search "rate limiter"           # inside transcripts
domo rm --older 30d --agent codex --dry-run
domo archive a1b2c3d4
domo undo                            # put the last change back

Private, and open source

Your sessions are your work. They stay on your Mac.

No network
Domovy makes no network connections: no update checks, no analytics, no crash reporting.
No telemetry
Nothing about you or your sessions leaves your Mac.
Transcripts stay local
They may contain secrets. Domovy reads them only to show and search them on your Mac, and never logs their content.
Read-only by default
Nothing changes until you approve a plan. Agent configuration changes only when you connect an agent.
Open source
Free software under the GNU GPL v3.0. Read the code, build it yourself, or open an issue on GitHub.

Questions

Could Domovy delete something I still need?

It is built not to. Every change is shown as a plan first, files go to the Trash or Domovy’s quarantine, and undo puts them back. Live sessions, recent sessions and the files agents need to run (settings, sign-in, plugins, skills, memory) are never touched.

Why does macOS block the first launch?

Domovy is not notarized by Apple, so Gatekeeper stops it once. Run xattr -dr com.apple.quarantine /Applications/Domovy.app, or open System Settings → Privacy & Security and choose Open Anyway. Builds are signed with a stable identity, so permissions you grant survive updates.

Do I need to grant Full Disk Access?

No. Domovy works without it. With it, Domovy can also measure the few agents that keep data in folders macOS protects.

Can I still resume an archived session?

Yes. Archiving compresses the files in place with APFS transparent compression, so the agent reads them as before. Dates are kept, so the agent’s own retention still applies; Domovy tells you when that is the case.

Can my agent delete sessions on its own once it is connected?

No. Through the MCP server and skill an agent can list sessions and make plans. A change runs only with the token of a plan it showed you, and the session it is running in is always refused.

What happens when an agent updates its storage format?

The adapter checks the layout and version it reads. If it meets one it does not know, it switches that agent to read-only and says why, instead of guessing.

Does Domovy connect to the internet?

No. There are no update checks, analytics or crash reports. Update with brew upgrade --cask domovy, or download the new release from GitHub.

How do I uninstall it?

Run domo disconnect --all if you connected agents, then brew uninstall --cask domovy (or move Domovy.app to the Trash). The quarantine and undo log in ~/Library/Application Support/Domovy stay until you remove that folder yourself.

Domovy app icon

Download Domovy

Version 1.0.0 for macOS 14 or later.

Version
1.0.0
Released
Requires
macOS 14 or later
License
GPL-3.0

Homebrew

The cask also puts domo on your PATH.

brew trust turman17/tap
brew install --cask turman17/tap/domovy
xattr -dr com.apple.quarantine /Applications/Domovy.app

Zip from GitHub

Download Domovy-v1.0.0.zip, move Domovy.app to /Applications and run the same xattr line. The app offers to install domo (Domovy › Connect Agents…).

Latest release

Why these lines? Recent Homebrew loads casks from other taps only after you trust the tap once (brew trust; older versions skip it). Domovy is open source but not notarized by Apple, so Gatekeeper blocks the first launch; clearing the quarantine flag once fixes that, or approve it under System Settings → Privacy & Security → Open Anyway.

Release notes are in the changelog. To build from source you need Xcode 16 and Swift 6; see the README.