OpenParable
Skip to content
← Back to skills

Clear Caches

Testing & Quality
clear-caches

Clear 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

TableDescription
extension_enrichmentsCached enrichment results (sender profiles in sidebar)
extension_storageExtension key-value storage (includes profile:* web search cache)
sender_profilesLegacy sender profile cache
analysesEmail analysis results (needs_reply, priority)
draftsGenerated 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

  1. Restart the app to trigger re-analysis and re-enrichment
  2. The prefetch queue will process all inbox emails again
  3. 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;"