Clear Caches
Testing & Qualityclear-cachesClear Caches is an Agent Skill for testing & quality published in the ankitvgupta/exo repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ankitvgupta/exo/blob/HEAD/.claude/skills/clear-caches/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/clear-caches, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Clears all extension caches, analysis data, and draft data from the database. Use this when testing sender lookups, analysis, or draft generation from a clean state.
What Gets Cleared
| Table | Description |
|---|---|
extension_enrichments | Cached enrichment results (sender profiles in sidebar) |
extension_storage | Extension key-value storage (includes profile:* web search cache) |
sender_profiles | Legacy sender profile cache |
analyses | Email analysis results (needs_reply, priority) |
drafts | Generated draft replies |
Command
sqlite3 ~/Library/Application\ Support/exo/data/exo.db "
DELETE FROM extension_enrichments;
DELETE FROM extension_storage;
DELETE FROM sender_profiles;
DELETE FROM analyses;
DELETE FROM drafts;
SELECT 'Cleared:',
(SELECT COUNT(*) FROM extension_enrichments) as enrichments,
(SELECT COUNT(*) FROM extension_storage) as storage,
(SELECT COUNT(*) FROM sender_profiles) as profiles,
(SELECT COUNT(*) FROM analyses) as analyses,
(SELECT COUNT(*) FROM drafts) as drafts;
"
After Clearing
- Restart the app to trigger re-analysis and re-enrichment
- The prefetch queue will process all inbox emails again
- Watch logs for
[Prefetch],[Ext:web-search],[Ext:calendar]activity
Partial Clears
To clear only specific caches:
# Clear only sender profile data (keeps analyses and drafts)
sqlite3 ~/Library/Application\ Support/exo/data/exo.db "
DELETE FROM extension_enrichments;
DELETE FROM extension_storage WHERE key LIKE 'profile:%';
DELETE FROM sender_profiles;
"
# Clear only analyses (will re-analyze all emails)
sqlite3 ~/Library/Application\ Support/exo/data/exo.db "DELETE FROM analyses;"
# Clear only drafts
sqlite3 ~/Library/Application\ Support/exo/data/exo.db "DELETE FROM drafts;"