Who it is forA user handling client, legal, or other sensitive work who wants to confirm what the local record contains before relying on it.
The problemEnabled email, messaging, or text-edit capture can store sensitive text, and historical protected activity may still be on disk.
The outcomeHistorical protected activity is removed from raw events, and the local record can be wiped completely when you stop using the app.
What you need first
- A Mac running macOS 14 or later
- Accessibility permission for OpenHistory in System Settings (needed for richer context)
- For building from source only: Node.js 22 and Xcode with Swift 6.1 or later
- Optional: Apple Intelligence on macOS 26 or later for on-device summaries, or an API key for OpenAI, Anthropic, or Kimi
Steps
- Open Settings and review the Data & privacy section, then turn off email, messaging, or text-edit capture for categories you do not want.
- Clone the repository with
git clone https://github.com/ztratar/openhistory.gitand enter it withcd openhistory. - Install dependencies with
npm ci. - Run the raw-event scrub with
npm run privacy:scrub-protected -- "/path/to/activity-data"using your local data directory path. - To remove everything, use Settings > Data & privacy > Delete all local data, then remove the app and its Accessibility permission in System Settings.
Prompt for your agent
In the openhistory repository, run the privacy scrub against the local activity data directory at <path> and report how many protected events were removed. Verify the output reports the scrub finished before you state the result.
Caveat. The scrub command needs the source checkout and Node.js 22, and the README says startup already removes historical protected activity, so run the manual scrub only when you need an extra pass.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ztratar/openhistory and "Audit and scrub recorded history before sensitive work"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer