
Clean up your Twitter history with AI
Tweet Audit Tool is a Python-based CLI that uses Google’s Gemini AI to analyze your X (Twitter) archive and identify tweets that no longer align with your professional image or personal values. Perfect for professionals who want to audit old tweets that might contain:- Unprofessional language or outdated opinions
- Keywords you no longer want associated with you
- Content that doesn’t match your current values
- Posts that could harm your professional reputation
Installation
Get started with prerequisites and setup instructions
Quick start
Run your first tweet analysis in minutes
Configuration
Customize your deletion criteria and settings
CLI reference
Complete command-line interface documentation
How it works
The tool follows a simple three-step process:Extract tweets from archive
The tool reads your X archive export and converts tweets to a structured CSV format for processing.
Analyze with Gemini AI
Each tweet is evaluated against your custom criteria using Google’s Gemini AI. The AI checks for forbidden words, topics to exclude, tone requirements, and additional instructions you define.
Safe by design: The tool only flags tweets for review. You maintain complete control and manually delete what you choose.
Key features
AI-powered analysis
Uses Google Gemini AI to intelligently evaluate tweet content against your criteria
Customizable criteria
Define forbidden words, topics to exclude, tone requirements, and custom instructions
Safe and manual
Only generates suggestions—you review and delete manually for complete control
Resume capability
Automatic checkpointing allows you to resume analysis after interruptions
Rate limiting
Built-in rate limiting respects API quotas and prevents hitting limits
Batch processing
Processes tweets in configurable batches for efficient analysis
What you need
X archive
Download your complete X (Twitter) archive (takes 24-48 hours)
Gemini API key
Free API key from Google AI Studio for AI analysis
Python 3.12+
Modern Python installation on your system
Output format
After analysis, you’ll receive a CSV file with flagged tweets:- Review each flagged tweet by visiting the URL
- Delete manually if you agree with the AI’s assessment
- Track progress by updating the
deletedcolumn totrue
Security and privacy
All output files use
0o600 permissions (owner-only read/write)API keys loaded from
.env file (never committed to git)data/ directory is gitignored to protect your personal tweetsNext steps
Install the tool
Set up prerequisites and install dependencies
Start analyzing
Run your first tweet analysis
