{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "ztratar-openhistory--audit-and-scrub-local-history",
 "repo": "ztratar/openhistory",
 "repo_url": "https://github.com/ztratar/openhistory",
 "repo_slug": "ztratar-openhistory",
 "title": "Audit and scrub recorded history before sensitive work",
 "page_title": "How to audit and scrub recorded history before sensitive work with Openhistory",
 "summary": "Review what OpenHistory keeps, scrub protected events, and delete local data when needed.",
 "who": "A user handling client, legal, or other sensitive work who wants to confirm what the local record contains before relying on it.",
 "problem": "Enabled email, messaging, or text-edit capture can store sensitive text, and historical protected activity may still be on disk.",
 "outcome": "Historical protected activity is removed from raw events, and the local record can be wiped completely when you stop using the app.",
 "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.git` and enter it with `cd 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "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.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ztratar-openhistory/audit-and-scrub-local-history/",
 "md": "https://dedupedai.com/use-cases/ztratar-openhistory/audit-and-scrub-local-history/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ztratar-openhistory--audit-and-scrub-local-history.json",
 "api_version": "v1"
}
