I was paying $600+/month for Trello + Notion + Gmail + Zapier + a chatbot tool.
Five tabs open at all times. Five subscriptions bleeding money. Five places where context went to die. 😩
One day I asked myself: what if one app did all of this — and I actually owned it?
So I built HiveOps 🐝 — an open-source company operating system with AI agents that execute real work, not just chat.
Here's why it's different from everything else out there. 👇
🚨 The Problem Nobody Talks About
Every SaaS tool solves ONE problem:
- Trello → tasks
- Notion → docs
- Gmail → email
- Zapier → automation
- Chatbot → AI
But your work doesn't live in silos. A customer email becomes a task. A task triggers a workflow. A workflow notifies your team. It's all connected — except your tools aren't.
You end up copy-pasting between 5 tabs and paying for the privilege. 💸
🤖 Meet the AI Agents (This Changes Everything)
Here's what most "AI tools" actually are: a chatbot in a fancy wrapper. You ask a question. It gives an answer. You still do the work.
HiveOps agents are different. They execute tasks like real workers:
pending → execute → retry (10s) → retry (20s) → retry (40s) → dead letter queue → notify creator
That's the same retry + backoff + DLQ pattern you'd use in a production message queue. Except it's running your business operations. 🔄
The killer feature? Agents delegate to each other.
// Marketing agent needs a landing page?
// Delegate to the Engineering agent.
await agentDelegate(
marketingAgentId,
engineeringAgentId,
"We need a landing page for Q2 campaign",
taskId
);
Each agent has:
- ✏️ Custom system prompt (personality + instructions)
- 🏢 Department assignment
- ▶️ Auto-execution loop (picks up pending tasks automatically)
- 🔁 Retry logic with exponential backoff
- 💀 Dead letter queue after 3 failures
You assign a task to an agent → it picks it up → runs it → handles errors → notifies you if it fails. No human babysitting required.
📋 Task Management — Built for Teams AND Agents
Every task has:
- 🔴🟡🟠🟢 Priority levels (urgent → low)
- 📊 Status tracking (pending → in progress → review → completed → blocked)
- 👤 Assign to humans OR 🤖 AI agents
- 💬 Comments and file attachments
- 🔁 Retry tracking with error history
🔄 Workflow Automation — No Zapier Tax
The rule engine follows a dead-simple pattern:
Trigger → Condition → Action
Example workflow:
- 🔔 When: Task is created
- ✅ If: priority = urgent
- ⚡ Then: Notify manager → Auto-assign to ops agent → Post in #urgent channel
Three pre-built workflows come out of the box. Create your own in seconds.
📧 Real Email — Not a Mock
Inbox. Sent. Drafts. Starred. Labels. Search.
- 📥 IMAP polling for inbound mail
- 📤 SMTP for outbound
- 🤖 AI drafts replies based on context
- 🔔 Auto-notifications for new mail
Not a demo. Not a mock. Real email inside your OS.
💬 Real-Time Chat — Socket.IO
- 📢 Department channels
- ✉️ Direct messaging
- 🤖 Agent chat (talk to your AI workers)
- ⌨️ Typing indicators
- 🔔 Real-time notifications
🏗 Under the Hood (Architecture)
hiveops/
├── server/ # Node.js + Express
│ ├── src/
│ │ ├── services/
│ │ │ ├── ai-engine.js # LLM integration
│ │ │ ├── execution-loop.js # Retry + backoff + DLQ
│ │ │ ├── workflows.js # Rule engine
│ │ │ ├── scheduler.js # DB-persisted cron
│ │ │ └── email-real.js # SMTP + IMAP
│ │ └── routes/ # 12 API modules
│ └── __tests__/ # 58 tests ✅
├── web/ # Next.js 14 + Tailwind
└── docker-compose.yml # Postgres + API + Web
Tech stack:
- 🖥️ Backend: Node.js + Express
- 🎨 Frontend: Next.js 14 (App Router) + React 18 + Tailwind
- 💾 Database: SQLite (dev) OR PostgreSQL (production) — same API, one env var switch
- ⚡ Real-time: Socket.IO
- 🔐 Auth: JWT + bcrypt + role-based access
- 🧠 AI: Any OpenAI-compatible API (OpenAI, Ollama, local models)
The dual-database adapter I'm most proud of — same code, both backends:
// Works on SQLite AND PostgreSQL — zero changes
const user = await db.prepare('SELECT * FROM users WHERE id = ?').get(id);
const tasks = await db.prepare('SELECT * FROM tasks WHERE status = ?').all('pending');
🔐 Self-Host = Your Data, Your Rules
| SaaS Stack | HiveOps | |
|---|---|---|
| 💰 Cost | $50-500/tool/month | Free forever |
| 🏠 Data | Their servers | Your servers |
| 🤖 AI | Separate subscription | Built-in |
| ⚡ Automation | Zapier $30+/mo | Included |
| 🐳 Setup | Sign up + configure | docker-compose up |
Your tasks, emails, chat messages, and knowledge base never leave your infrastructure. 🏠
🚀 Run It in 60 Seconds
git clone https://github.com/mamoor123/hiveops.git && cd hiveops
cp .env.example .env
openssl rand -base64 32 # paste into .env as JWT_SECRET
docker-compose up --build
Open http://localhost:3000 → create account → done. 🎯
No Docker? No problem. SQLite mode works standalone:
cd server && npm install && npm run migrate
JWT_SECRET=your-secret npm run dev
🧪 It's Actually Tested
58 tests. Not "vibes-based" development:
- 🔐 Auth — 14 tests (register, login, profile, tokens)
- 📋 Tasks — 13 tests (CRUD, filters, comments)
- 🔄 Workflows — 8 tests (triggers, conditions, actions)
- 🤖 AI — 11 tests (chat, execution, delegation)
- 🏢 Departments — 12 tests (knowledge, email)
🧩 Full Feature List
- ✅ Task Management (priorities, statuses, assignments, comments, attachments)
- 🤖 AI Agents (auto-execution, retries, DLQ, agent-to-agent delegation)
- 🔄 Workflow Automation (trigger → condition → action rules)
- 📧 Real Email (SMTP + IMAP, AI draft replies)
- 💬 Real-Time Chat (Socket.IO, channels, typing indicators)
- 📚 Knowledge Base (full-text search, categories)
- ⏰ Scheduler (DB-persisted cron, auto-creates tasks)
- 🔐 JWT Auth + Role-Based Access (admin/member)
- 📊 Dashboard (live stats)
🔮 What's Coming
- 📱 Mobile-friendly responsive UI
- 📅 Calendar view for tasks
- 🔗 Webhook integrations
- 🏢 Multi-tenant support
- 🔐 SSO (SAML/OIDC)
💬 The Real Question
What SaaS tools are you paying for that could be one self-hosted app?
I'm genuinely curious. Drop a comment 👇 — especially if you've tried replacing a SaaS stack with something you own.
⭐ Star the repo if this was useful: github.com/mamoor123/hiveops
Built with ❤️ and a stubborn refusal to pay $600/month for things that should be free.
P.S. — If you want to contribute, all PRs welcome. Check out CONTRIBUTING.md.
Related Reading
- I Was Paying $600/mo for 5 SaaS Tools. So I Built One That Does All of Them.
- From git clone to Full Company Operating System in 60 Seconds
- Your Data. Your Server. Your Agents. Zero SaaS Bills.
- I Sent One Message and 5 AI Agents Built, Audited, Tested & Deployed a Full App
- I Built a One-Line Observability Decorator for Python AI Agents





Top comments (0)