An intelligent automation tool that generates professional work journals from GitHub commits using AI, automatically tracks time in Clockify, and creates comprehensive reports for performance reviews and appraisals.
- 🔗 Multi-API Integration: Seamlessly connects GitHub, Clockify, and Google Gemini AI
- 🧠 Future-Proof AI Model Selection: Dynamically adapts to new Gemini releases (2.5, 3.0, 4.0+) with intelligent scoring
- 🎯 Thinking Model Priority: Automatically selects thinking models for superior reasoning and analysis
- 📅 Natural Language Date Processing: Parse "last 2 weeks", "this month", "yesterday" and more
- ⚡ Smart Workflow Orchestration: Complete end-to-end automation with intelligent gap detection
- 🤖 AI-Powered Task Generation: Converts GitHub commits into detailed, time-estimated tasks
- ⏰ Automatic Time Tracking: Creates time entries in Clockify with realistic duration estimates
- 📊 Intelligent Reporting: Generates Excel reports for any time range (weeks, months, quarters)
- 🏢 Organization Repository Access: Works with both personal and organization repositories
- 🔒 Security-First: Secure API key management without hardcoded credentials
- 🛡️ Smart Error Handling: Comprehensive error handling with helpful user guidance
- 📱 Interactive CLI: Powerful command-line interface with guided workflows
- Distribution Options: Choose between spreading tasks evenly or keeping exact commit times
- Business Hours Enforcement: Automatically adjusts times to 9 AM - 6 PM working hours
- Intelligent Spacing: Adds breaks between tasks and avoids scheduling conflicts
- Automatic Scheduling: Add recurring weekly meetings to your time tracking
- Flexible Configuration: Set meetings for any day/time with custom duration
- Multiple Meetings: Support for standups, reviews, planning sessions, etc.
- Professional Organization: Custom meeting titles and proper categorization
- Quote-Free Descriptions: Clean, professional task descriptions without formatting issues
- Business-Appropriate: Professional task naming suitable for corporate environments
- Thinking Model Power: Leverages latest AI reasoning for accurate time estimates
- Context-Aware: Considers realistic development patterns and work complexity
WorkFlow-AI-Journal features an intelligent model selection system that automatically adapts to new Google Gemini releases:
🧠 Thinking Models: +10,000 points (highest priority)
🔢 Version Scoring: Major × 1,000 + Minor × 100
🚀 Future Versions (4.0+): +500 bonus
🌟 Next-Gen (3.0+): +200 bonus
⚡ Model Types: Ultra (+500), Pro (+400), Flash (+300)
🧪 Experimental: +200 bonus
- Gemini 3.0-Flash-Thinking → Score: ~13,500 (Future release ready)
- Gemini 2.5-Pro-Thinking → Score: ~12,900 (Hypothetical)
- Gemini 2.0-Flash-Thinking → Score: ~12,500 (Current best)
No code updates needed - the system automatically detects and uses the latest optimal model!
git clone https://github.com/yourusername/WorkFlow-AI-Journal.git
cd WorkFlow-AI-Journal
pip install -r requirements.txtCreate or edit the _API_KEYS file:
CLOCKIFY_API_KEY=your_clockify_api_key
CLOCKIFY_WORKSPACE_ID=your_workspace_id
CLOCKIFY_PROJECT_ID=your_project_id
GEMINI_API_KEY=your_gemini_api_key
GITHUB_API_KEY=your_github_token
python test_apis.pypython clockify_import_csv_api.py- Go to Clockify Settings
- Navigate to API section
- Generate API key
- Get Workspace ID from your workspace URL
- Create a project and note its ID
- Visit Google AI Studio
- Click "Create API key"
- Select or create a Google Cloud project
- Copy the generated key
- Go to GitHub Settings > Tokens
- Click "Generate new token (classic)"
- Select scopes:
repo(private repos) orpublic_repo(public only) - Generate and copy the token
- 🗣️ Natural Language Query: "Generate report for last 2 weeks"
- 📅 Smart Date Processing: Automatically calculates date ranges and business days
- 🔍 Gap Analysis: Identifies missing Clockify entries for work days
- 📦 Commit Retrieval: Fetches relevant GitHub commits for missing periods
- 🧠 AI Task Generation: Gemini AI creates realistic task descriptions with time estimates
- ⚡ Auto-Import: Tasks are automatically added to Clockify
- 📊 Report Export: Generates comprehensive reports for the requested period
python agent.py
# Choose option 3: Generate work report
# Enter: "last 2 weeks"
# Select repository or use default
# Review and confirm task import
# ✅ Done! All missing work entries created automatically- No Hardcoded Secrets: All API keys stored in local
_API_KEYSfile - Environment Variables: Secure configuration loading
- Local Processing: Your data stays on your machine
- Open Source: Full transparency - inspect the code yourself
- No Data Collection: We don't collect or store your personal data
Run the test suite to verify all connections:
python test_apis.pyTest the dynamic model selection algorithm:
python test_dynamic_selection.pyTest Phase 2 core logic:
python test_phase2.pyDiagnose Gemini API issues:
python fix_gemini.pyThis will:
- ✅ Test API key configuration
- ✅ Verify Clockify connection
- ✅ Check GitHub access
- ✅ Validate Gemini AI setup with best model
- ✅ Test natural language date parsing
- ✅ Validate workflow orchestration
- ✅ Demonstrate dynamic version scoring
WorkFlow-AI-Journal/
├── config.py # Secure configuration management
├── clockify_api.py # Clockify integration
├── github_api.py # GitHub API wrapper
├── gemini_api.py # Google Gemini AI integration
├── test_apis.py # API connection tests
├── clockify_import_csv_api.py # CSV import utility
├── clockify_tasks.csv # Sample task data
├── _API_KEYS # Your API credentials (local only)
├── requirements.txt # Python dependencies
└── README.md # This file
We welcome contributions! This project is designed to be:
- Learning-Friendly: Great for understanding AI agent development
- Collaborative: Pull requests welcome
- Educational: Well-documented code for learning
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
MIT License - You're free to use, modify, and distribute this project. See LICENSE for details.
If you use this project in your research or work, you can cite it as:
@software{workflow_ai_journal,
title={WorkFlow-AI-Journal: Automated Work Tracking with AI},
author={Your Name},
year={2024},
url={https://github.com/yourusername/WorkFlow-AI-Journal}
}- Phase 1: Core API integrations ✅
- Phase 2: Core logic and workflow automation ✅
- Phase 3: Excel report generation and advanced analytics
- Phase 4: Web UI interface
- Phase 5: Advanced AI features and learning
- Phase 6: Team collaboration features
Current Status: Phase 2 Complete - Full workflow automation ready! 🎉
"Import could not be resolved" errors
pip install -r requirements.txtAPI connection failures
- Verify API keys in
_API_KEYSfile - Check internet connection
- Run
python test_apis.pyfor detailed diagnosis
Clockify time entries not appearing
- Ensure correct workspace and project IDs
- Check time zone settings
- Verify project permissions
- 📖 Documentation: Check this README and code comments
- 🐛 Bug Reports: Open an issue on GitHub
- 💡 Feature Requests: Discussion section on GitHub
- 🤝 Community: Join our discussions
Made with ❤️ for developers who want to automate their work tracking and create better performance reviews.