Hidden Dotfile Blindspots
Databases, caches, and configs are scattered across hidden home directories like ~/.claude, ~/.codex, ~/.gemini, and ~/.ollama.
Precision health inspection and cleanup tool for next-gen AI coding assistants and Agent CLIs.
Use arrow keys or click tabs to inspect Sea-Otter modes. Protected paths are locked automatically, and cleanup defaults to read-only dry-run or atomic quarantine.
Traditional Mac cleaners rely on an App Bundle-centric heuristic under ~/Library, which breaks down against Claude Code, Codex, Cherry Studio, Cursor, Ollama, and modern Agent CLIs.
Databases, caches, and configs are scattered across hidden home directories like ~/.claude, ~/.codex, ~/.gemini, and ~/.ollama.
Browsers silently pull 4.0 GB Gemini Nano (OptGuideOnDeviceModel), while Electron AI clients accumulate gigabytes of attachments and IndexedDB vector embeddings.
Cross-platform bugs drop (null), default.store, .ACCC_Lock, or empty skeleton trees into ~/Library/Application Support/ while stale preview channels linger.
After uninstalling an app, SQLite histories, OAuth Refresh Tokens, and API keys remain exposed without sensitivity tagging or safe rollback.
AI agents often create .git repositories or workspaces under user folders; conventional cleaners lack repository immunity guardrails.
Powered by v1.2 Architecture for on-device models, fine-grained slimming, root penetration, and lossless rollback.
Detects .gguf, .safetensors, .onnx, .bin, .pt, .pth, magic headers, and Chrome Gemini Nano to prune weights without touching user profiles.
Recursively expands sub_targets and prunable markers to trim attachments and vector indices while protecting core SQLite databases.
Scans root entries directly to catch (null) bug directories, legacy unpacked assets, misplaced CoreData files, dead locks, and < 64KB skeleton dirs.
Links Chrome, Edge, and VS Code channel families; flags Canary/Dev/Beta/Insiders channels inactive for > 90 days while Stable is actively used.
Resolves decoupled app/folder names via Info.plist / Bundle ID lookup, curated signature DB (Code → VS Code), and 180-day idle heuristics.
Audits JSON, YAML, .env, PEM private keys, and read-only SQLite DBs for plaintext tokens and API keys without ever echoing raw values.
Zero-dependency MCP stdio server exposing sea_otter_scan, sea_otter_clean (confirmation guarded), and sea_otter_rollback.
Archives cleaned items into ~/.Trash/AppSupport_Cleanup_<timestamp>/ with manifest.json (v1.2.0) for one-command restoration.
For modern developers and AI storage governance, safety precedes everything.
| Tier | Definition | Typical Targets | Selection & Cleanup Strategy |
|---|---|---|---|
| L1 · Zero-Impact Junk | Pure junk files, dead locks, cross-platform bug dirs, pure caches | (null) ghost dir, default.store, .ACCC_Lock, skeleton dirs, browser caches |
Selected by default, archived safely |
| L2 · Orphaned Apps | Residual data from uninstalled apps or uninstalled stale channels | Abandoned Codex, Cursor, uninstalled Chrome Beta channel data |
Selected by default, isolated to quarantine |
| L3 · In-Use Bloatware | Active apps with bloated weights, attachments, or caches | Chrome on-device LLMs (4 GB), Cherry Studio attachments/vectors, active caches | Unselected by default, requires explicit flag |
| L4 · Protected System | macOS critical databases, code workspaces, active processes | com.apple.TCC, AddressBook, CloudDocs, .git repos, running daemons |
Hardcoded block, strictly forbidden to delete |
Strictly blocks com.apple.TCC, AddressBook, CallHistoryDB, CloudDocs, Keychain, com.apple.sharedfilelist, Safari, Mail, and Photos.
Cross-references system process tables, background daemons, and SingletonLock files so running tools remain locked and protected.
Probes paths for .git, .svn, .hg, and .obsidian, and enforces exclude_paths to guarantee zero source-code loss.
Archives targets with manifest.json for lossless rollback; plaintext OAuth tokens and private keys are skipped unless explicitly authorized.
Install directly via GitHub, clone in developer mode, or run directly from source without installing.
# Install to current user environment via pip
pip install --user git+https://github.com/yourwayai/sea-otter.git
# Or install in an isolated environment via pipx
pipx install git+https://github.com/yourwayai/sea-otter.git
Note: Please make sure ~/.local/bin is included in your system PATH.
# Health Inspection
sea-otter scan
sea-otter scan cursor codex google-chrome
sea-otter scan --models
sea-otter scan --slim
sea-otter scan --ghosts
sea-otter scan --channels
sea-otter scan --associations
sea-otter scan --secrets
sea-otter scan --json
# Dry-run Preview & Safe Cleanup
sea-otter clean --dry-run
sea-otter clean cherry-studio --slim --dry-run
sea-otter clean --models --dry-run
sea-otter clean --ghosts --dry-run
sea-otter clean --channels --dry-run
sea-otter clean --associations --dry-run
# Atomic Quarantine & Lossless Rollback
sea-otter rollback --list
sea-otter rollback --dry-run
sea-otter rollback
# Rules Validation & Project Info
sea-otter rules list
sea-otter rules validate
sea-otter about
{
"mcpServers": {
"sea-otter": {
"command": "sea-otter-mcp"
}
}
}