The Virtual AI Manager (VAM) is an autonomous managerial system designed to operate continuously alongside human teams. Unlike request-response chatbots, VAM proactively plans, monitors, and executes management tasksโscheduling meetings, approving leave, tracking deadlines, forecasting risks, and reporting progressโwhile keeping humans in the loop via a dedicated control plane.
VAM operates on a multi-agent architecture using LangGraph for orchestration and MCP (Model Context Protocol) for tool integration.
graph TD
User[Control Plane UI] <--> API[FastAPI Backend]
API <--> Orchestrator[Manager Orchestrator]
subgraph "Agent Core (8 Agents)"
Orchestrator --> Planning[Planning Agent]
Orchestrator --> People[People Ops Agent]
Orchestrator --> Growth[Growth & Scaling Agent]
Orchestrator --> Exec[Execution Agent]
Orchestrator --> Comm[Communication Agent]
Orchestrator --> Managerial[Managerial Agent]
Orchestrator --> Analytics[Analytics Agent]
Orchestrator --> Platform[Platform Agent]
end
subgraph "Memory & Tools"
Planning --> VectorDB[(Vector Memory)]
People --> Cal[Calendar MCP]
Growth --> KB[Knowledge Base]
Exec --> Mon[Task Monitors]
Comm --> Slack[Slack/Email MCP]
Analytics --> Forecast[Risk & Velocity]
Platform --> RBAC[Security & Audit]
end
- ๐ง Autonomous Planning: Decomposes goals into actionable DAGs with dependency tracking
- ๐ Task & Project Management: Full lifecycle management with milestones and goals
- ๐ GitHub Integration: Bi-directional sync with GitHub Issues, OAuth login, and webhook automation
- ๐ Google Calendar: Real-time calendar sync, free slot detection, focus block scheduling
- ๐ฌ Slack Integration: Socket Mode bot, DM handling, proactive standups
- โ๏ธ Morning Standups: Automated 09:00 check-ins with GitHub issue context
- ๐๏ธ Active Monitoring: Proactive risk detection and deadline tracking
- ๐ Managerial Intelligence: Strategic risk analysis, goal refinement, automated reporting
- ๐ค People Operations: Leave management, burnout detection, skill matrices
- ๐ Calendar Integration: Working hours, time zones, meeting scheduling
- โ๏ธ Capacity Planning:
get_available_hours(),check_overload()functions - ๐ฅ Burnout Watchdog: Sustained overload and deadline pressure monitoring
- ๐ง Long-Term Memory: Vector embeddings (OpenAI
text-embedding-3-small) to recall past decisions - ๐ Context Injection: Semantic search retrieves relevant history into agent prompts
- ๐ Semantic Search:
pgvectorintegration for finding related tasks, plans, and meetings - ๐ Auto-Memory triggers: Daily standup focus and task completions are automatically memorized
- ๐ Hiring Pipeline: Candidate tracking with automated resume scoring
- โ Interview Management: Scheduling, feedback collection, offer workflows
- ๐ฏ Onboarding: 30-60-90 day plans with auto-generated tasks
- ๐ Knowledge Base: Internal documentation with role-based curation
- ๐ Velocity Tracking: Task completion trends and projected dates
โ ๏ธ Risk Scoring: Weighted algorithm (overdue ร 5, blocked ร 3, load ร 10)- ๐ Executive Dashboards: Goal + project + risk summaries
- ๐ค Automation Rules: IFTTT triggers for proactive interventions
- ๐ธ Project Snapshots: Historical metrics for trend analysis
- ๐ฎ AI Forecasting: Completion predictions with confidence scores
- ๐ก๏ธ Risk Gate: Intercepts high-risk actions (score > 50) for human approval
- โ Intervention UI: Modal to review, approve, or reject agent actions
- ๐ RBAC: Role-based access (Admin, Manager, Contributor, Viewer)
- ๐ Immutable Audit Logs: Automatic
@log_activitycapture for all sensitive ops - โ Approval Workflow: Async approval requests with risk scoring (Critical/High/Medium)
- ๐ MCP Tool Safety: Circuit breakers and permissions for tool execution
- Python 3.10+
- Node.js 18+
- Git
- GitHub OAuth App (Client ID & Secret)
- Google OAuth App (for Calendar - optional)
- Slack App (for Slack integration - optional)
-
Clone the repository
git clone https://github.com/agusain2001/Virtual-manager.git cd Virtual-manager -
Backend Setup
cd backend python -m venv venv # Windows ./venv/Scripts/Activate.ps1 # Linux/Mac # source venv/bin/activate pip install -r requirements.txt # Configure Environment cp .env.example .env # Edit .env with your GitHub Client ID/Secret and DB settings
-
Frontend Setup
cd ../frontend npm install
1. Start the Brain (Backend)
cd backend
uvicorn backend.app.main:app --reloadAPI runs on: http://localhost:8000
2. Start the Control Plane (Frontend)
cd frontend
npm run devDashboard runs on: http://localhost:3000
Virtual-manager/
โโโ backend/ # Python/FastAPI Agent Core
โ โโโ app/
โ โ โโโ agents/ # 8 Specialized Agents
โ โ โ โโโ orchestrator.py # Manager Orchestrator (LangGraph)
โ โ โ โโโ planning.py # Task decomposition & DAGs
โ โ โ โโโ execution.py # Monitoring & escalation
โ โ โ โโโ people_ops.py # HR & capacity (1400+ lines)
โ โ โ โโโ growth_scaling.py # Hiring & onboarding (800+ lines)
โ โ โ โโโ analytics_automation.py # Forecasting & insights (720+ lines)
โ โ โ โโโ platform_enterprise.py # Security & RBAC (1000+ lines)
โ โ โ โโโ advanced_capabilities.py # Rules, plugins, voice
โ โ โโโ core/ # Core Logic Modules
โ โ โ โโโ availability.py # Capacity calculations
โ โ โ โโโ analytics.py # Velocity & risk scoring
โ โ โ โโโ growth_logic.py # Candidate scoring
โ โ โ โโโ security.py # RBAC middleware
โ โ โ โโโ scheduler.py # Cron jobs
โ โ โโโ services/ # Service Layer
โ โ โ โโโ people_service.py # Leave & calendar CRUD
โ โ โ โโโ growth_service.py # Applications & onboarding
โ โ โ โโโ analytics_service.py # Dashboard & rules
โ โ โ โโโ platform_service.py # Tenants & audit export
โ โ โ โโโ github_service.py # GitHub API & Sync
โ โ โ โโโ google_calendar_service.py # Google Calendar API
โ โ โ โโโ slack_service.py # Slack Socket Mode
โ โ โโโ routers/ # API Routers (auth, webhooks, etc)
โ โ โโโ mcp/ # MCP Tool Servers
โ โ โโโ models.py # 30+ SQLAlchemy models
โ โ โโโ main.py # FastAPI entry point
โ โโโ requirements.txt
โ
โโโ frontend/ # Next.js Control Plane
โ โโโ src/
โ โ โโโ app/ # Pages & Layouts
โ โ โโโ components/ # 20+ UI Components
โ โโโ package.json
โ
โโโ AGENTS.md # Detailed Agent Documentation
โโโ README.md # Project Overview
| Category | Endpoints | Description |
|---|---|---|
| Tasks | /api/v1/tasks/* |
CRUD, status, assignment |
| Projects | /api/v1/projects/* |
Health, DAG, milestones |
| Goals | /api/v1/goals/* |
OKR tracking, alignment |
| People | /api/v1/people/* |
Leave, availability, workload |
| Growth | /api/v1/growth/* |
Jobs, candidates, onboarding |
| Analytics | /api/v1/analytics/* |
Velocity, forecasts, rules |
| Platform | /api/v1/platform/* |
Users, RBAC, audit, tools |
| Managerial | /api/v1/managerial/* |
Risk, reports, strategy |
| Auth | /auth/* |
GitHub OAuth, session, repo selection |
/auth/google/* |
Calendar OAuth, connect/disconnect | |
| Slack | /auth/slack/* |
User linking, bot status, test DM |
| Webhooks | /webhooks/* |
GitHub inbound event processing |
We welcome contributions to expand agent capabilities!
- Fork the repo.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes.
- Push to the branch.
- Open a Pull Request.
Distributed under the MIT License.