A simple Python tool that tracks your productivity by taking periodic screenshots and analyzing them using AI. The tool takes a screenshot every second, emulating a 1 FPS video. Screenshots are batched every minute and analyzed by Gemini. At the end of the session the tool will provide a summary of summaries. It is designed to make use of the Gemini free tier.
- Clone the repository:
git clone https://github.com/aidenaistar/gemini-productivity-tracker
cd gemini-productivity-tracker- Install requirements:
pip install -r requirements.txt- Create a .env file with your Google API key:
echo "GOOGLE_API_KEY=your_key_here" > .env- Run the tracker:
python main.py [options]Basic usage (uses API key from .env):
python main.pySpecify duration:
python main.py --duration 30Override API key from command line:
python main.py --api-key YOUR_API_KEY --duration 45--api-key: Google API key (optional if set in .env)--duration: Duration in minutes (default: 60)--output: Output directory (default: ./output)
The tool creates an output directory with the following structure:
output/
└── YYYYMMDD/
├── HHMMSS/
│ ├── screenshot_HHMMSS.png
│ └── summary.txt
└── session_summary_HHMMSS.txt
- Working overnight
- Per-session summary
You can freely modify the prompts in the folder to alter the output as you wish. You can also modify the code, it is not like I can stop you.