- All Things Agentic Hackathon Submission — Track: Taskmaster
An enterprise-grade, event-driven HR operations agent and autonomous loop engine built with Google Genkit, calling the Gemini API directly. The agent runs asynchronously across Cloud Run and Pub/Sub, handles heavy-duty HR compliance auditing over massive datasets via Meilisearch and Cloud Firestore, parses unstructured shift logs using Gemini 3.6 Flash, and enforces safe guardrails with Human-in-the-Loop (HITL) interrupts.
-
4-Stage Pipeline: Dispatch (Pub/Sub)
$\rightarrow$ Genkit AI Loop (Gemini 3.6 Flash)$\rightarrow$ HITL Interrupt (Manager Review)$\rightarrow$ Meilisearch Audit Indexing. Include/public/repo-banner.svgor XML diagrams from/docs/ARCHITECTURE.mdin your Devpost image gallery. -
Human-in-the-Loop (HITL) Differentiator: Taskmaster avoids "black box" failure by detecting labor violations (e.g. overtime > 10 hours), safely pausing execution, preserving conversation state, and awaiting supervisor verification (
approved/rejected) before finalizing payroll.
Employee records can be added and managed in three ways:
-
Out-of-the-Box Demo Records: Pre-configured defaults (
emp_001Alice Chen,emp_002John Smith,emp_003Maria Garcia) are automatically loaded in memory and Firestore. -
Database Seeding (
npm run seed): Runnpm run seedto populate corporate policies and employee timesheet records into Cloud Firestore and Meilisearch. -
API Insertion (
POST /employeesor Firestore): Directly upsert employee records with base rates, regular hours, and overtime hours:{ "id": "emp_004", "name": "Sarah Connor", "department": "Security", "baseRate": 45.0, "regularHours": 160.0, "overtimeHours": 12.5, "overtimeApproved": false }
- Autonomous Agentic Loops (
Genkit+Gemini 3.6 Flash) – The AI model dynamically reasons over commands, evaluates tools (search_policies,get_employee_record,resolve_overtime), and iterates up tomaxTurns: 6. - Event-Driven Pub/Sub & Cloud Run Architecture – Asynchronous job dispatching ensures clients never block. Pub/Sub pushes event payloads to Cloud Run workers for horizontal scalability.
- Restartable HITL Interrupts – When overtime thresholds are exceeded, Genkit pauses execution, preserves conversation history, and triggers supervisor review dashboards.
- Real-Time Control Center UI – Live web console built with Tailwind CSS displaying active job queues, employee timesheet databases, policy rulebooks, and interactive approval flows.
-
Install Dependencies
npm install
-
Configure Environment Variables Run
npm run generate-secretsto automatically generate API keys and bootstrap.env. -
Seed Demo Data & Policies
npm run seed
-
Start the Development Server
npm run dev
Open
http://localhost:3000to access the interactive HR Ops Control Center.
POST /jobs– Submit an asynchronous HR directive.GET /jobs– List all jobs and execution states.GET /jobs/:jobId– Get single job details and audit trail.POST /jobs/:jobId/resume– Resume a paused HITL job with a manager decision (approved/rejected).POST /tasks/run– Pub/Sub push webhook endpoint triggering the Cloud Run worker.
MIT