Intelligent Calendar Management with AI-Powered Task Automation
PersonalAgent is a sophisticated, priority-based multi-calendar management system that respects your life priorities while providing intelligent conflict resolution and AI-powered task automation.
- Family First: Family events are immovable anchors that other calendars adapt around
- Smart Hierarchy: Personal > Work priority with intelligent conflict resolution
- Context Switching: Seamlessly switch between life contexts (Family, Personal, Work)
- Multiple LLM Support: OpenAI GPT-4, Google Gemini, Anthropic Claude, OpenRouter (200+ models)
- Intelligent Subtask Inference: Automatically break down complex tasks into actionable steps
- Smart Scheduling: AI-powered conflict detection and alternative time suggestions
- Profile-Aware Operations: All commands respect your current calendar context
- Conflict Prevention: Automatic detection prevents double-booking
- Quick Commands: Lightning-fast task creation and activity listing
- Python 3.8+
- Google Calendar API credentials
- OpenAI/Gemini/Claude API keys (optional, for AI features)
# Clone the repository
git clone https://github.com/personalagent/personalagent.git
cd personalagent
# Set up virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Set up Google Calendar credentials
# (Follow Google Calendar API setup guide)
# Add aliases to your shell
cat zshrc_aliases.txt >> ~/.zshrc
source ~/.zshrc
# Main system - fetch latest data
pagent
# Quick activity overview
pa-list today
# Switch calendar profiles
pa-family # Switch to family calendar
pa-work # Switch to work calendar
pa-personal # Switch to personal calendar
# Create profile-aware tasks
pa-create --title "Team meeting" --when "tomorrow 14:00"
# Manage existing activities
pamanage edit T1 # Edit first TODO item
personalAgent/
βββ π src/ # Source code modules
β βββ π core/ # Core system functionality
β β βββ fetchGregorian.py # Sacred calendar integration
β β βββ fetchTodos.py # TODO management
β β βββ getLatest.sh # Main data fetcher
β βββ π calendar/ # Calendar management
β β βββ profileManager.py # Profile system core
β β βββ createTask.py # Task creation with conflict detection
β β βββ listActivities.py # Profile-aware activity listing
β β βββ manageActivities.py # Activity management
β βββ π ai/ # AI integration
β β βββ inferSubtask.py # LLM-powered subtask inference
β β βββ setModel.py # Multi-provider LLM management
β βββ π utils/ # Utility functions
β βββ promptHelper.py # Terminal prompt integration
β βββ help.py # Help system
βββ π bin/ # Executable entry points
β βββ pagent # Main entry point
β βββ pa-profiles # Profile manager
β βββ pa-list # Activity lister
β βββ pa-create # Task creator
βββ π config/ # Configuration files
βββ π docs/ # Documentation
βββ π tests/ # Test files
βββ π data/ # Data cache
PersonalAgent's core innovation is its priority-based calendar management:
-
π¨βπ©βπ§βπ¦ Family Profile (Priority 1)
- Highest priority - events are immovable
- Other calendars automatically adapt around family time
- Keywords:
family
,kids
,home
,personal
-
π Personal Profile (Priority 2)
- Can coexist with family events
- Schedules around family commitments
- Keywords:
personal
,self
,appointment
,health
-
πΌ Work Profile (Priority 3)
- Fills available free slots only
- Shows family events as
[BUSY]
blocks - Auto-suggests alternatives for conflicts
- Keywords:
work
,meeting
,project
,deadline
When creating work events that conflict with family time:
- π Automatic Detection - Identifies conflicts with higher priority calendars
- π Clear Notification - Shows exactly what conflicts exist
- π‘ Smart Suggestions - Offers 3 alternative times automatically
- βοΈ Custom Options - Allows manual time entry
- π¨ Override Available - Emergency override for critical situations
# List available models
pamodels list
# Switch providers
pamodel-openai # Use OpenAI GPT models
pamodel-gemini # Use Google Gemini
pamodel-claude # Use Anthropic Claude
pamodel-router # Use OpenRouter (200+ models)
# Generate subtasks for calendar events and TODOs
pasubtasks today
The AI analyzes your tasks and automatically generates:
- Preparation steps (research, gather materials)
- Execution subtasks (with realistic time estimates)
- Follow-up actions (cleanup, documentation)
- Context awareness (location, energy level, dependencies)
# View current profile
pacal-current
# List all profiles
pacal-list
# Switch profiles
pa-family / pa-personal / pa-work
# Profile context (for scripts)
pacal-context
# Quick activity listing
palist today / tomorrow / week / month
# Full system update
pagent today / week
# Create tasks
pacreate --interactive
pacreate --title "Meeting" --type WORK --when "tomorrow 15:00"
# Manage existing items
pamanage edit T1 # Edit TODO item #1
pamanage complete T2 # Complete TODO item #2
padelete E1 # Delete calendar event #1
# Subtask inference
pasubtasks today
# Model management
pamodels
pamodel-list
# Google Calendar (required)
GOOGLE_CALENDAR_CREDENTIALS_PATH=~/personalAgent/config/credentials.json
# AI Providers (optional)
OPENAI_API_KEY=your_openai_key
GEMINI_API_KEY=your_gemini_key
ANTHROPIC_API_KEY=your_claude_key
OPENROUTER_API_KEY=your_openrouter_key
# Default LLM settings
LLM_PROVIDER=openai
LLM_MODEL=gpt-4o-mini
Edit config/calendar_profiles.json
to customize:
- Calendar mappings
- Priority rules
- Conflict resolution behavior
- Display preferences
- Keyword filters
- β Multi-calendar Google Calendar integration
- β Priority-based profile system
- β Conflict detection and resolution
- β AI-powered subtask inference
- β Multi-provider LLM support (OpenAI, Gemini, Claude, OpenRouter)
- β Profile-aware task creation and management
- β Quick activity listing and overview
- β Comprehensive alias system
- β Terminal integration ready
- π Terminal prompt integration (oh-my-zsh themes)
- π Advanced calendar synchronization
- π Web-based dashboard
- π Mobile companion app
- π GUI Desktop Application
- π Real-time calendar synchronization
- π Advanced AI scheduling optimization
- π Team collaboration features
- π Integration with external productivity tools
- π Voice interface integration
- π Smart notification system
- Modern React/Electron Interface
- Drag-and-drop calendar management
- Real-time conflict visualization
- AI-powered scheduling assistant
- Multi-calendar timeline view
- Smart notification center
- Quick task capture
- Voice-to-calendar integration
- Location-aware scheduling
- Offline capability
- Push notifications for conflicts
We welcome contributions! This project is designed to be:
- Modular: Easy to extend with new features
- Well-documented: Clear code structure and documentation
- Test-friendly: Comprehensive test coverage
- AI-first: Built for intelligent automation
# Clone and setup
git clone https://github.com/personalagent/personalagent.git
cd personalagent
# Development environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Run tests
python -m pytest tests/
# Test profile system
./bin/pa-profiles list
- π¨ UI/UX Design - Desktop and mobile interfaces
- π§ AI Enhancement - Better scheduling algorithms
- π± Mobile Development - React Native app
- π§ Integrations - Other calendar systems, productivity tools
- π Documentation - Tutorials, guides, examples
- π§ͺ Testing - Unit tests, integration tests
MIT License - see LICENSE file for details.
- Google Calendar API for robust calendar integration
- OpenAI, Anthropic, Google for AI/LLM capabilities
- Open Source Community for inspiration and tools
PersonalAgent - Where AI meets intentional living π€β¨