How kaiban-ai/kaibanjs works
Main Components Identification
a) Core Framework Layer:
• Agent System (/src/agents)
• Store Management (/src/stores)
• Task Management
• Team Management
• Workflow Controller
b) Tools Layer (/packages/tools):
• Search Tools (serper, tavily, website-search)
• Document Processing (pdf-search, textfile-search)
• Integration Tools (github-issues, zapier-webhook)
• RAG Implementation (simple-rag)
c) Integration Layer:
• LLM Providers Support (OpenAI, Anthropic, Google, etc.)
• Framework Compatibility (React, Node.js)
• External Tool Integration
[Client Applications]
• ↑↓
[KaibanJS Core Framework]
• [Agent System]--|
• [Store System]--|
• [Task System]---|
• [Team System]---|
• ↑↓
[Tools Layer]
• [Search Tools]
• [Document Tools]
• [Integration Tools]
• [RAG Tools]
• ↑↓
[LLM Integration Layer]
• [OpenAI]
• [Anthropic]
• [Google]
• [Others]
Component Relationships
[Agent Store] ←→ [Task Store] ←→ [Team Store]
• ↑ ↑ ↑
[Workflow Controller]------------------'
[Agent] → [Tool Manager] → [Specific Tool Implementation]
• ↓
• [External Service/API]
[Workflow Events] → [Subscribers] → [State Updates]
Implementation Details to Highlight
• Redux-inspired state management architecture
• Event-driven communication between components
• Pluggable tool architecture
• Framework-agnostic core with framework-specific bindings
• Real-time monitoring and logging system