The Workforce Operating System β Intelligence Β· Operations Β· Automation
Most productivity tools measure activityβkeystrokes, hours logged, or messages sent. KarmaOS is different. It measures impact and friction.
KarmaOS is a passive, zero-friction intelligence layer that reads metadata across your tools (Slack, GitHub, Calendar, Jira). It doesn't surveil message contentβit analyzes patterns (e.g., context switching, thread density, PR review times) and correctly classifies work patterns into distinct states: Deep Work, Shallow Work, and Coordination.
By applying intelligent classification and LLM reasoning via Google Gemini, KarmaOS turns these raw metadata signals into clear, actionable human narratives. Instead of forcing you to interpret a chaotic dashboard of charts, it acts as a thinking partner, proactively telling you where the friction is: "Good morning. Your team is highly focused today, but engineering is currently blocked on design approvals for the new checkout flow."
KarmaOS v2 extends this intelligence layer with a complete HR Operations backbone and an Agentic Automation Engine, transforming it from an analytics tool into a complete, modern workforce operating system.
- Activity vs. Impact: KarmaOS understands that 100 Slack messages could signify high team alignment, or a completely broken process. It measures the quality of time, not just the quantity.
- Quantifying "Invisible Work": KarmaOS detects workflow bottlenecks that happen between tools (e.g., a ticket that sits in review while 50 Slack messages are exchanged about it), pinpointing systemic friction rather than blaming individuals.
- Zero-Friction Passive Intelligence: No timers, no forms, no status updates. KarmaOS operates completely passively in the background, requiring absolutely zero behavioral changes from your team.
- Proactive Burnout Prevention: By tracking context switching and after-hours coordination, KarmaOS can objectively identify overload risks before burnout occurs, shifting management from reactive to proactive.
- Synthesized AI Narratives, Not Fake Charts: We strictly avoid "Fake AI." Models aren't used to draw charts or tally numbers. We use deterministic algorithms for classification, and rely on Gemini exclusively for synthesisβtaking disparate data points and telling the objective human story behind them.
| Feature | Description |
|---|---|
| System Overview | Daily narrative-driven dashboard with AI-synthesized workforce insights |
| Recruiter Agent | Automated candidate sourcing, screening, and Work DNA matching |
| Team Insights | Performance analysis across departments with deep work metrics |
| Work DNA Profiles | Per-employee behavioral classification (Maker, Synchronizer, Operator) |
| AI Assistant | Conversational interface powered by Gemini for deep-dive queries |
| Feature | Description |
|---|---|
| Leave Management | Apply, approve/reject, balance tracking with sick/casual/unpaid types |
| Attendance | Check-in/out, working hours calculation, daily status grid |
| Payroll Summary | Monthly salary breakdown with unpaid leave deductions |
| Feature | Description |
|---|---|
| Natural Language Rules | Describe rules in plain English (e.g., "If an employee takes more than 3 leaves in a month, flag them") |
| Gemini-Powered Parsing | AI converts prompts into structured {condition, trigger, action} rules |
| Visual Workflow | React Flow pipeline visualization (Data Source β Trigger β Condition β Action β Output) |
| Live Evaluation | One-click rule execution against live workforce data |
| Feature | Description |
|---|---|
| Prompt-Based Sourcing | Describe your ideal candidate β Gemini parses it into structured hiring filters |
| LinkedIn + Naukri Scraping | Simulated web scraping from both platforms with source badges |
| Manual Filter Editing | Fine-tune AI-generated rules via modal (experience, skills, location, exclusions) |
| Candidate Pipeline | Shortlist/reject candidates, view match scores, Work DNA compatibility |
| Provider | Data Points |
|---|---|
| Slack | Channel activity, message frequency, response time, focus hours |
| Microsoft Teams | Meeting frequency, chat activity, org structure, calendar data |
| Microsoft Outlook | Email volume, calendar density, response patterns, meeting conflicts |
| Discord | Server activity, voice participation, thread engagement, sentiment |
| Google Workspace | Gmail volume, calendar events, Drive activity, Meet usage |
Integrations connect in-app with simulated OAuth flow (localStorage-persisted). For production Outlook, register an Azure AD app with
Mail.Read+Calendars.ReadGraph API permissions.
graph TD
subgraph Data Sources
S[Slack/Teams]
G[GitHub/GitLab]
C[Calendar/Outlook]
J[LinkedIn/Naukri]
HR[HR Data<br>Leave, Attendance]
end
subgraph KarmaOS Engine
A[Aggregator<br>15-min Blocks]
ML[Classifier<br>Deep Work vs Coordination]
RE[Rule Engine<br>Automation Rules]
HA[Hiring Engine<br>Candidate Matching]
end
subgraph Intelligence Layer
LLM((Google Gemini<br>Narrative + Parsing))
end
subgraph User Experience
UI[Dashboard<br>Insights & Operations]
AI[AI Assistant<br>Conversational]
RF[React Flow<br>Visual Workflows]
end
S --> A
G --> A
C --> A
J --> HA
HR --> RE
A --> ML
ML --> LLM
RE --> LLM
HA --> LLM
LLM --> UI
LLM --> AI
LLM --> RF
style S fill:#36C5F0,stroke:#none,color:#fff
style G fill:#24292e,stroke:#none,color:#fff
style C fill:#0078D4,stroke:#none,color:#fff
style J fill:#0A66C2,stroke:#none,color:#fff
style HR fill:#10b981,stroke:#none,color:#fff
style A fill:#2A2A35,stroke:#4f46e5,color:#fff,stroke-width:2px
style ML fill:#2A2A35,stroke:#4f46e5,color:#fff,stroke-width:2px
style RE fill:#2A2A35,stroke:#f59e0b,color:#fff,stroke-width:2px
style HA fill:#2A2A35,stroke:#3b82f6,color:#fff,stroke-width:2px
style LLM fill:#5E1B89,stroke:#d8b4fe,color:#fff,stroke-width:2px
style UI fill:#18181B,stroke:#3f3f46,color:#fff
style AI fill:#18181B,stroke:#3f3f46,color:#fff
style RF fill:#18181B,stroke:#FF0072,color:#fff,stroke-width:2px
- Aggregates metadata events into 15-minute chronological blocks
- Classifies blocks into distinct states (Deep Work, Shallow Coordination, Friction)
- Prompts Gemini with aggregated summaries β narratives for insights, structured JSON for automation/hiring rules
- Evaluates automation and hiring rules against live workforce + HR data
- Renders everything in a premium, narrative-first UI
Important
A GEMINI_API_KEY is required for all AI features (dashboard insights, automation rule parsing, hiring rule creation, AI assistant).
- Node.js (v18+)
-
Install dependencies:
npm install
-
Configure Environment Variables: Create or edit
.env.localand add your API key:GEMINI_API_KEY=your_gemini_api_key_here
-
Start the Development Server:
npm run dev
The app will be available at
http://localhost:3000.
Tip
If port 3000 is busy, run npx kill-port 3000 before starting the server.
βββ server.ts # Express server β all APIs, Gemini calls, in-memory stores
βββ src/
β βββ App.tsx # Routing (12 routes)
β βββ main.tsx # Entry point with ThemeProvider
β βββ index.css # Design system + dark mode variables
β βββ contexts/
β β βββ AuthContext.tsx # Firebase auth wrapper
β β βββ ThemeContext.tsx # Dark mode toggle (localStorage-backed)
β βββ layouts/
β β βββ DashboardLayout.tsx # Sidebar nav, search, theme toggle
β βββ pages/
β β βββ Dashboard.tsx # System overview with AI insights
β β βββ TalentIntelligence.tsx # Recruiter agent
β β βββ HiringAutomation.tsx # LinkedIn/Naukri sourcing rules
β β βββ TeamInsights.tsx # Performance analysis
β β βββ EmployeeView.tsx # Individual Work DNA profile
β β βββ LeaveManagement.tsx # Leave apply/approve flow
β β βββ Attendance.tsx # Check-in/out grid
β β βββ Automation.tsx # React Flow workflow builder
β β βββ Settings.tsx # Profile + integrations
β β βββ LandingPage.tsx # Public landing
β βββ components/
β β βββ AiAssistant.tsx # Floating chat widget
β βββ lib/
β βββ dataService.ts # All API fetch wrappers (30+ functions)
β βββ gemini.ts # Client-side Gemini helpers
β βββ firebase.ts # Firebase config
β βββ utils.ts # cn() class merge utility
βββ data/
β βββ Employee_Data.xlsx # Source employee dataset
βββ .env.local # GEMINI_API_KEY
| Layer | Technology |
|---|---|
| Frontend | React 18, Vite, Framer Motion |
| Language | TypeScript (strict mode) |
| Styling | Tailwind CSS, Lucide React icons |
| Intelligence | Google Gemini 2.5 Flash API |
| Workflow Viz | React Flow (@xyflow/react) |
| Server | Express.js (custom dev server) |
| Auth | Firebase Authentication (optional) |
| Data | In-memory stores (MVP), Excel source data |
- Gemini API key is server-side only β never exposed to the browser
- All AI calls routed through Express endpoints in
server.ts - Firebase auth gates dashboard access when configured
- Integration tokens stored in localStorage (simulated OAuth for MVP)
Note
All HR data (leave, attendance, payroll) and automation rules are stored in-memory and reset on server restart. This is intentional for the MVP β the architecture cleanly separates data stores for easy database migration.
Note
LinkedIn/Naukri scraping is simulated with 20 seeded Indian tech market profiles. The API structure is production-ready for plugging in real scraping services (Proxycurl, RapidAPI, etc.).
- Persistent database (PostgreSQL/MongoDB)
- Real OAuth flows for Slack, Teams, Outlook
- Live LinkedIn/Naukri API integration
- Scheduled automation rule execution (cron)
- Email/Slack notification delivery for triggered rules
- Role-based access control (Admin, Manager, Employee)
- Employee self-service portal (own leave/attendance)