KaibanJS is a JavaScript-native framework for building and managing multi-agent systems with a Kanban-inspired approach.
KaibanJS is a JavaScript-native framework for building and managing multi-agent systems with a Kanban-inspired approach.
KaibanJS
The JavaScript Framework for Building Multi-agent Systems.
Harness the power of specialization by configuring AI agents to excel in distinct, critical functions within your projects. This approach enhances the effectiveness and efficiency of each task, moving beyond the limitations of generic AI. In this example, our software development team is powered by three specialized AI agents: Dave, Ella, and Quinn. Each agent is expertly tailored to its specific role, ensuring efficient task handling and synergy that accelerates the development cycle.
```js import { Agent } from 'kaibanjs'; const daveLoper = new Agent({ name: 'Dave Loper', role: 'Developer', goal: 'Write and review code', background: 'Experienced in JavaScript, React, and Node.js', }); const ella = new Agent({ name: 'Ella', role: 'Product Manager', goal: 'Define product vision and manage roadmap', background: 'Skilled in market analysis and product strategy', }); const quinn = new Agent({ name: 'Quinn', role: 'QA Specialist', goal: 'Ensure quality and consistency', background: 'Expert in testing, automation, and bug tracking', }); ``` Tool IntegrationJust as professionals use specific tools to excel in their tasks, enable your AI agents to utilize tools like search engines, calculators, and more to perform specialized tasks with greater precision and efficiency. In this example, one of the AI agents, Peter Atlas, leverages the Tavily Search Results tool to enhance his ability to select the best cities for travel. This tool allows Peter to analyze travel data considering weather, prices, and seasonality, ensuring the most suitable recommendations.
```js import { Agent, Tool } from 'kaibanjs'; const tavilySearchResults = new Tool({ name: 'Tavily Search Results', maxResults: 1, apiKey: 'ENV_TRAVILY_API_KEY', }); const peterAtlas = new Agent({ name: 'Peter Atlas', role: 'City Selector', goal: 'Choose the best city based on comprehensive travel data', background: 'Experienced in geographical data analysis and travel trends', tools: [tavilySearchResults], }); ``` _KaibanJS supports all LangchainJS-compatible tools, offering a versatile approach to tool integration. For further details, visit the [documentation](https://github.com/kaiban-ai/KaibanJS)._ Task Result PassingEnable sophisticated workflows by passing results between tasks, allowing agents to build upon each other's work. This feature is essential for creating complex, multi-step processes where each task's output becomes input for subsequent tasks. In this example, a content creation team demonstrates how tasks can share and build upon results, creating a seamless workflow from research to final content production.
``` … ``` _Task results are automatically passed between tasks using the `{taskResult:taskN}` syntax, where N represents the task's position in the workflow (1-based indexing). For more details and advanced usage, visit our [Task Result Passing Guide](https://docs.kaibanjs.com/how-to/Task-Result-Passing)._ Memory ManagementKaibanJS provides sophisticated memory management at the team level, giving you control over how task results flow through your workflows. This feature allows you to optimize performance and manage context in complex multi-agent systems. Here's an example of configuring team memory:
```js const team = new Team({ name: 'Content Creation Team', agents: [researcher, writer, editor], tasks: [researchTask, writingTask, editingTask], memory: true, // Enable automatic access to all previous task results }); // Or disable memory for explicit result management const performanceTeam = new Team({ name: 'High-Performance Team', agents: [analyst, processor], tasks: [analysisTask, processingTask], memory: false, // Require explicit result references }); ``` _For detailed information about memory management, visit our [documentation](https://docs.kaibanjs.com/core-concepts/08-Memory)._ Multiple LLMs SupportOptimize your AI solutions by integrating a range of specialized AI models, each tailored to excel in distinct aspects of your projects. In this example, the agents—Emma, Lucas, and Mia—use diverse AI models to handle specific stages of feature specification development. This targeted use of AI models not only maximizes efficiency but also ensures that each task is aligned with the most cost-effective and appropriate AI resources.
``` … ``` _For further details on integrating diverse AI models with KaibanJS, please visit the [documentation](https://github.com/kaiban-ai/KaibanJS)._ Robust State ManagementKaibanJS employs a Redux-inspired architecture, enabling a unified approach to manage the states of AI agents, tasks, and overall flow within your applications. This method ensures consistent state management across complex agent interactions, providing enhanced clarity and control. Here's a simplified example demonstrating how to integrate KaibanJS with state management in a React application:
```js import myAgentsTeam from './agenticTeam'; const KaibanJSComponent = () => { const useTeamStore = myAgentsTeam.useStore(); const { agents, workflowResult } = useTeamStore((state) => ({ agents: state.agents, workflowResult: state.workflowResult, })); return ( ); }; export default KaibanJSComponent; ``` _For a deeper dive into state management with KaibanJS, visit the [documentation](https://github.com/kaiban-ai/KaibanJS)._ Integrate with Your Preferred JavaScript FrameworksEasily add AI capabilities to your NextJS, React, Vue, Angular, and Node.js projects. KaibanJS is designed for seamless integration across a diverse range of JavaScript environments. Whether you're enhancing user interfaces in React, Vue, or Angular, building scalable applications with NextJS, or implementing server-side solutions in Node.js, the framework integrates smoothly into your existing workflow.
```js import React from 'react'; import myAgentsTeam from './agenticTeam'; const TaskStatusComponent = () => { const useTeamStore = myAgentsTeam.useStore(); const { tasks } = useTeamStore((state) => ({ tasks: state.tasks.map((task) => ({ id: task.id, description: task.descriptAdd a remote HTTP MCP research example without a search API key
Hindsight long-term memory integration
[ARCHITECTURE/DOC] Improve Task Execution Model and Documentation
[Feature] External coding agents (Claude Code, OpenCode) as first-class KaibanJS agents
🌱 AI Garden: An open experiment where AI agents build a shared world
GNAP: git-native coordination for KaibanJS's multi-agent Kanban workflows
[kaiban-ai repo for new KaibanJS based framework]
Agentic Portal & Observability Platform Suggestion
[Feature] Introduce a "Skills" architecture for agents