Connects to your Gmail and Google Calendar. Every morning it reads your emails, schedules your day, prioritizes tasks, drafts replies, and delivers a briefing to Slack โ all autonomously.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Personal AI Chief of Staff โ
โ Agent for: Talha (Software Engineer) โ
โ Mode: DRY RUN | TZ: Asia/Karachi โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ฌ Fetching emails...
โ Fetched 5 emails.
๐
Fetching calendar...
โ Fetched 4 calendar events.
๐ง Triaging emails...
โ Triaged 5 emails.
โ
Extracting tasks...
โ Extracted 7 tasks.
๐ Generating morning brief...
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Good morning, Talha! Big day ahead โ 4 meetings, 2 urgent โ
โ items, and an interview to wrap up. Let's get after it. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐
Schedule
10:00 AM Daily Standup ali, zara, hamza...
11:00 AM Sprint Planning team@company.com
02:00 PM 1:1 with Sarah sarah@company.com
04:00 PM Interview โ Farhan K. hr, farhan.k
โ
Priority Tasks
๐ด Submit interview feedback for Farhan K. due: 3:00 PM
๐ด Complete Q2 self-assessment form due: Friday EOD
๐ Process Invoice #4521 payment ($450) due: Apr 19
๐ก Prepare talking points for 1:1 with Sarah today
๐ข Review standup notes โ Ali blocked on DB creds this week
๐ฌ Email Actions
โ๏ธ reply Sarah Manager Q2 Performance Review โ Action Required U
๐ฉ flag HR Team Interview feedback needed โ Farhan K. U
๐ฆ archive Slack Bot Team standup notes โ April 16 N
๐ฆ archive TechBrief Weekly newsletter: AI tools roundup L
โฐ Focus Block: 12:00โ1:30 PM between sprint planning and your 1:1
๐ Watch Out For
โข Interview feedback deadline is 3 PM โ don't miss it
โข Ali is blocked on DB creds โ may need your help
โก Quick Wins
โข Mark standup notes as read
โข Forward invoice #4521 to accounts
โข Check if DB creds issue is in your scope
โ Chief of Staff run complete!
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. FETCH โโโโถโ 2. FETCH โโโโถโ 3. TRIAGE (Claude) โ
โ โ โ โ โ โ
โ Gmail API โ โ Google Cal โ โ Reads all emails โ
โ Last 24h โ โ Today's โ โ Decides: reply/flag/ โ
โ Unread + โ โ events โ โ archive/ignore โ
โ Important โ โ โ โ Drafts replies โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 6. DELIVER โโโโโ 5. APPLY โโโโโ 4. SYNTHESIZE (Claude) โ
โ โ โ โ โ โ
โ Slack brief โ โ Create โ โ Extract tasks โ
โ Markdown โ โ Gmail draftsโ โ Prioritize day โ
โ file saved โ โ Archive โ โ Generate brief โ
โ Terminal โ โ emails โ โ Find focus block โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Feature | Details |
|---|---|
| ๐ฌ Email triage | Claude reads every email and decides: reply, flag, archive, or ignore |
| โ๏ธ Draft replies | Auto-drafts professional replies saved to Gmail Drafts |
| ๐ Calendar sync | Pulls today's full schedule with attendees |
| โ Task extraction | Infers action items from emails and meetings |
| ๐ Morning brief | Personalized daily briefing with schedule, tasks, and email actions |
| ๐ฌ Slack delivery | Posts formatted brief to any Slack channel |
| โฐ Focus block | Recommends best deep-work window based on your calendar |
| โก Quick wins | Surfaces tasks completable in under 5 minutes |
| ๐พ Local archive | Every brief saved as Markdown + JSON |
| โฑ๏ธ Schedulable | Run via cron, Task Scheduler, or GitHub Actions |
chief-of-staff/
โโโ main.py # CLI entry point
โโโ config.py # Config, env vars, Pydantic models
โโโ requirements.txt
โโโ .env.example
โโโ SETUP.md # Google OAuth setup guide
โ
โโโ agent/
โ โโโ brain.py # Claude: email triage, tasks, brief
โ โโโ orchestrator.py # Main agentic loop
โ
โโโ tools/
โ โโโ gmail_tool.py # Gmail API: read, draft, archive
โ โโโ calendar_tool.py # Google Calendar API: read, create
โ โโโ slack_tool.py # Slack: deliver brief
โ โโโ reporter.py # Terminal + Markdown brief printer
โ
โโโ data/
โโโ briefs/ # Saved daily briefs (auto-generated)
โโโ emails/ # Email cache
โโโ google_token.json # OAuth token (auto-generated on first run)
git clone https://github.com/yourusername/personal-ai-chief-of-staff.git
cd personal-ai-chief-of-staff
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtcp .env.example .envFill in .env:
ANTHROPIC_API_KEYโ console.anthropic.comYOUR_NAME,YOUR_EMAIL,YOUR_ROLE- Google credentials (see SETUP.md โ takes 5 minutes)
Follow SETUP.md to get your Gmail + Calendar credentials. Takes about 5 minutes.
python main.py --dry-runpython main.py --livepython main.py [OPTIONS]
Options:
--dry-run Simulate โ no emails sent, no Slack messages (default)
--live Actually create drafts and post to Slack
--schedule Daemon mode โ runs daily at BRIEF_HOUR in .env
--emails-only Only triage emails, skip brief generation
--brief-only Generate brief without applying email actions
Examples:
python main.py --dry-run # safe test
python main.py --live # full live run
python main.py --schedule --live # run every morning automatically
| Service | Used For | Cost |
|---|---|---|
| Anthropic Claude | Email triage, task extraction, brief | ~$0.05โ0.15 per run |
| Gmail API | Read emails, create drafts | Free (Google) |
| Google Calendar API | Read events, create events | Free (Google) |
| Slack API | Deliver morning brief | Free (Slack) |
Estimated cost per day: ~$0.10
Edit the triage prompt in agent/brain.py to add your rules:
# Add to the triage prompt:
"Always flag emails from my CEO (ceo@company.com) as urgent.
Never draft replies to newsletters.
If an email contains an invoice, always flag it as high priority."The modular tools/ folder makes it easy to add:
- Notion โ sync tasks to a Notion database
- WhatsApp โ deliver brief via WhatsApp (Twilio)
- Telegram โ deliver via Telegram Bot API
- Linear / Jira โ pull in ticket updates
Ideas welcome:
- WhatsApp delivery via Twilio
- Notion task sync
- Follow-up tracker (did you get a reply?)
- Weekly summary mode
- Meeting prep notes (research attendees before 1:1s)
- Voice brief via text-to-speech
MIT โ see LICENSE
Built by EnggTalha
โญ Star this repo if it made your mornings smoother!