The AI-Human Coordination Command Center
DiviDen is an open-source framework for building intelligent command centers where humans and AI agents collaborate seamlessly. Think of it as the cockpit where you coordinate AI agents, manage tasks, track contacts, and maintain full situational awareness.
# Clone the repository
git clone https://github.com/jonnyuniverse/dividenapp.git my-command-center
cd my-command-center/packages/core
# Install dependencies
npm install
# Configure your environment
cp ../../templates/.env.example .env
# Edit .env with your PostgreSQL DATABASE_URL and API keys
# Set up the database
npx prisma db push
# Start the development server
npm run devnpx dividen init my-command-center
cd my-command-center
# Edit .env with your database URL and API keys
npx prisma db push
npm run devOpen http://localhost:3000 to access your Command Center. Visit /setup to create your admin account.
- π€ Divi AI Agent β Conversational AI powered by GPT-4o or Claude with 16-layer contextual system prompt and automatic action execution
- π Kanban Board β 10-stage drag-and-drop pipeline (leads β qualifying β proposal β negotiation β contracted β active β development β planning β paused β completed)
- π Smart Queue β Priority-based task dispatch with ready/in-progress/done/blocked states + activity feed
- π₯ CRM β Contact management with auto-linking, enrichment, activity timeline, and relationship mapping (8 types: colleague, manager, report, partner, spouse, friend, referral, custom)
- π Global Search β
βKcommand palette searching across all entities (cards, contacts, docs, recordings, emails, events, comms, queue) - π§ 3-Tier Memory System β Explicit facts, behavioral rules, and learned patterns
- π― Dual Mode β Switch between "Cockpit" (hands-on) and "Chief of Staff" (delegation) modes
- π‘ Comms Channel β Bidirectional task-passing between operator and Divi with state lifecycle tracking (new β read β acknowledged β resolved β dismissed)
- π Calendar β Agenda view with day-grouped events, NowPanel "Coming Up" section, and webhook-driven event creation
- π§ Inbox β Email triage with unread/starred filters, detail pane, and webhook-driven email ingestion
- ποΈ Recordings β Meeting transcript management supporting Plaud, Otter, Fireflies, or any note-taker via webhooks
- π Drive β Document management (notes, reports, templates, meeting notes) with Markdown editor and external file URL support (Google Drive, Dropbox, OneDrive)
- π Webhook Infrastructure β 4 webhook types (calendar, email, transcript, generic) with auto-learn field mapping
- π§ Auto-Learn Field Mapping β LLM-powered analysis of incoming webhook payloads to automatically map fields, with manual override UI
- π οΈ Platform Setup Assistant β Ask Divi to set up webhooks, save API keys, create events, documents, and more β directly from chat
- π Agent API v2 β External API for AI agents to interact with your command center
- π‘οΈ Secure by Default β NextAuth.js authentication, role-based access
DiviDen is a TypeScript monorepo with two main packages:
dividen/
βββ packages/
β βββ cli/ # CLI tool (published to npm as "dividen")
β βββ core/ # Next.js Command Center application
βββ templates/ # Project scaffolding templates
βββ docs/ # Documentation
βββ turbo.json # Turborepo build orchestration
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Header: [Divi Logo] [Mode Toggle] [Comms π‘] [βοΈ] β
ββββββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββββββββββββ€
β NOW β CENTER β QUEUE β
β β [Chat|Board|CRM|Calendar| β [Divi's Queue]β
β Pulse β Inbox|Recordings|Drive] β [Activity] β
β Coming Upβ β β
β Portfolioβ β β
ββββββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββββββββββββ
| Layer | Technology |
|---|---|
| Frontend | Next.js 14, React 18, Tailwind CSS |
| Backend | Next.js API Routes, Server-Sent Events |
| Database | PostgreSQL via Prisma ORM |
| Auth | NextAuth.js with credentials provider |
| AI | OpenAI GPT-4o, Anthropic Claude (BYOK) |
| Build | Turborepo, TypeScript 5 |
| CLI | Commander.js, Chalk |
Divi is the AI agent at the heart of DiviDen. It operates with a 16-layer system prompt that gives it full contextual awareness:
| Layer | Context |
|---|---|
| 1 | Identity & operating mode |
| 2 | Custom rules |
| 3 | Conversation summary |
| 4 | Kanban board state |
| 5 | Queue state |
| 6 | CRM contacts |
| 7 | 3-tier memory |
| 8 | Recent messages |
| 9 | Current time |
| 10 | User learnings |
| 11 | Active focus (NOW panel) |
| 12 | Calendar events (next 7 days) |
| 13 | Email inbox (unread) |
| 14 | System capabilities |
| 15 | Action tag syntax |
| 16 | Platform setup assistant |
Divi can execute actions by embedding tags in its responses. Tags are automatically stripped before display β users only see natural language.
[[create_card:{"title":"Follow up with Acme","status":"leads","priority":"high"}]]
[[setup_webhook:{"name":"Google Calendar","type":"calendar"}]]
[[create_calendar_event:{"title":"Team standup","startTime":"2025-01-15T09:00:00Z"}]]
[[create_document:{"title":"Meeting Notes","content":"## Discussion...","type":"meeting_notes"}]]
[[send_comms:{"content":"Task complete β Acme proposal sent","priority":"normal"}]]
[[save_api_key:{"provider":"openai","apiKey":"sk-..."}]]
Once you add an API key, Divi becomes your setup assistant:
You: "Help me connect Google Calendar"
Divi: "I'll create a calendar webhook for you right now. Here's what I did: [creates webhook]. Now, to complete the connection, set up a Zapier zap with these steps..."
Divi knows what's configured and what's missing. It can create webhooks, save API keys, add calendar events, create documents, send comms messages, and guide you through external integrations step by step.
npx dividen init my-projectnpm install -g dividen
dividen init my-projectgit clone https://github.com/jonnyuniverse/dividenapp.git
cd dividen
npm install
npm run build- Integration Guide β Webhooks, auto-learn, APIs, and third-party integrations
- Publishing Guide β How to publish and deploy
- Template README β End-user project documentation
| Command | Description |
|---|---|
dividen init [dir] |
Scaffold a new DiviDen project |
dividen dev |
Start development server |
dividen start |
Start production server |
dividen status |
Check project health and configuration |
Contributions are welcome! Here's how to get started:
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/dividen.git - Install dependencies:
npm install - Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Build and verify:
npm run build && npm run typecheck - Commit your changes:
git commit -m 'Add amazing feature' - Push to your branch:
git push origin feature/amazing-feature - Open a Pull Request
# Install dependencies
npm install
# Start all packages in dev mode
npm run dev
# Build everything
npm run build
# Type-check
npm run typecheckMIT Β© DiviDen Contributors
DiviDen.ai β Coordinate humans and AI agents, together.