How noshinip27-cyber/chief_of_staff works
Chief of Staff — Draft Desk is a Streamlit email assistant that turns inbox threads into prioritized, reviewable drafts, with human approval before consequential actions. The main workflow runs through the app: choose a thread source, fetch and triage, draft replies for actionable threads, review or edit them, then inspect recorded activity and session proof. Calendar scheduling and the standalone approval-gate app are additional capabilities. Source excerpts and the index support the app’s module links; README statements support workflow and capability links where implementation details were not sampled.
Main entry points: app.py Draft Desk UI · approval_gate.py Approval Gate · draft_machine.py Draft Generation · engine.py Gmail Engine
Components 16
Inbox Workflow
- Draft Desk UI
app.py - Thread Sources
app.py - Gmail Engine
engine.py - Inbox Triage
triage.py
Drafting and Review
- Draft Generation
draft_machine.py - Draft Context
context_builder.py - Approval Gate
approval_gate.py - Approved Drafts
approved_drafts.json
Actions and Scheduling
- Calendar Scheduling
calendar_engine.py
Activity Records
- Action Logging
task_logger.py - Action Log
action_log.json - Session Proof
app.py
Other components
- User
- Gemini API
- Gmail
- Google Calendar
Connections 20
- User → Draft Desk UI: operates
README.md - Draft Desk UI → Thread Sources: selects source
README.md - Draft Desk UI → Gmail Engine: fetches threads
app.py - Gmail Engine → Gmail: reads inbox
engine.py - Draft Desk UI → Inbox Triage: triages threads
app.py - Inbox Triage → Gemini API: classifies with
triage.py - Draft Desk UI → Draft Generation: generates drafts
app.py - Draft Generation → Draft Context: assembles context
draft_machine.py - Draft Generation → Gemini API: generates with
draft_machine.py - Draft Desk UI → Approval Gate: reviews drafts
README.md - Approval Gate → Draft Context: assembles context
approval_gate.py - Approval Gate → Draft Generation: generates drafts
approval_gate.py - Approval Gate → Approved Drafts: saves approvals
approval_gate.py - Draft Desk UI → Gmail: sends approved replies
README.md - Draft Desk UI → Calendar Scheduling: schedules meetings
README.md - Calendar Scheduling → Google Calendar: checks and books
calendar_engine.py - Draft Desk UI → Action Logging: records actions
app.py - Action Logging → Action Log: reads and writes
task_logger.py - Draft Desk UI → Action Log: displays activity
app.py - Draft Desk UI → Session Proof: exports proof
README.md