r/javascript • u/odinsweng • Oct 10 '24
New Javascript Framework to orchestrate multiple AI Agents. [Feedback Needed]
https://www.kaibanjs.com/2
u/odinsweng Oct 10 '24
Hey everyone,
A couple of friends and I spent the last three months working on KaibanJS.
Honestly, we’re not 100% sure it’s fully ready for launch. But we’d love to get your feedback on it.
The idea came from us trying to find a native JS solution for working with AI agents, and we couldn’t find anything that really fit well with the JS ecosystem… stuff like React, Next, State management, etc.
So, we decided to build it ourselves.
Because KaibanJS runs in the browser, we also built a cool UI... a Kanban board, kinda like Trello, that lets you visualize your agents as they work.
It's much better than having to look at AI agent logs in the console ;)
KaibanJS is designed to make working with agents easier for JS devs, without dealing with all the low-level stuff, but it’s flexible enough to handle more complex setups if needed. (We even use LangChain behind the scenes for some of the orchestration.)
Any feedback would be super helpful.
1
u/DifficultNerve6992 Oct 11 '24
Great news. Once it is production ready consider adding to the specialized directory for AI Agents https://aiagentsdirectory.com/submit-agent
1
u/odinsweng Oct 11 '24
Thanks for the heads up about the AI Agents directory. It's good to know there's a platform where we can showcase KaibanJS once it's production-ready. We will submited for sure :)
0
Oct 10 '24
[deleted]
0
u/odinsweng Oct 10 '24
Btw: Great feedback. I'll pay close attention to it. Any ideas of something big that we could build?
1
u/New_Comfortable7240 Oct 10 '24
Some interesting use cases:
a workflow to create agents! The user input a desired workflow in natural language and several agents build a proposed worflow in the tool, using a search tool to read latest documentation. User can ask for edits or approve. If approved returns the code to copy or files to download.
a workflow to translate kanban tasks (for example in jira) to agents in your tool! The user paste the content of a card and the workflow return the agent or the file to copy. Similar to previous one, would help people onboard to your tool easily.
a workflow to read a codebase and translate to your tool agents! For example, find TODO comments or code without coverage, or files incorrectly formatted, or tests failing. Then the tool creates an agent to solve them!
0
u/odinsweng Oct 10 '24
Thanks for the great ideas! I'm particularly interested in the Jira integration it could be a powerful example to develop.
-1
u/odinsweng Oct 10 '24
KaibanJS is designed to handle a variety of complex tasks using multi-agent collaboration. Here are some key use cases we've developed:
https://docs.kaibanjs.com/category/use-cases
Sports News Reporting: Automated gathering of real-time sports data and generation of detailed articles. Agents collect scores, stats, and key moments, then synthesize them into coherent reports.
Trip Planning: AI agents analyze preferences, recommend destinations, and create detailed itineraries, simulating a team of travel experts working together.
Resume Creation: Agents analyze a person's background (input conversationally), then handle data extraction, content writing, and formatting to craft compelling resumes.
Company Research: Multiple agents gather and analyze data on various aspects of a business - from models and funding to operations and market positioning.
Hardware Optimization for PC Games: Agents analyze game requirements, current hardware options, and pricing to recommend optimal CPU, GPU, and RAM combinations.
These examples showcase how KaibanJS breaks down complex tasks into specialized functions, all coordinated within a JavaScript environment. The multi-agent approach allows for more nuanced and efficient handling of these multi-step processes.
Would you like more details on how we implement any of these in KaibanJS?
5
u/ethanjf99 Oct 10 '24
i mean i think the point was HAVE you developed any of those in Kaiban? you need something to show
1
u/DifficultNerve6992 Oct 11 '24
Love it. Here is AI agents landscape map for those who are not fully aware of AI agents and Frameworks for building them https://aiagentsdirectory.com/landscape
If you have your framework or AI agents you can add for free to a specialized directory for AI Agents for additional audience https://aiagentsdirectory.com/submit-agent
1
u/odinsweng Oct 11 '24
Thanks a bunch for sharing these awesome resources! The AI agents landscape map is seriously cool, it really gives us a solid overview of the field. I'm super curious about how these AI agent frameworks might intersect with web development.
1
u/DifficultNerve6992 Oct 11 '24
Thanks. Working on sub categories now for even better structure, will be sharing shortly
1
1
2
Oct 25 '24
[removed] — view removed comment
1
u/odinsweng Oct 25 '24
Very good questions indeed. I'll try to give you some answers... please don't hesitate to follow up if I'm not clear enough
1/4
What are the key features or design principles that distinguish your framework from LangChain?
- KaibanJS is focused only in orchestrating multiple agents. Langchain has a much broader scope and it is indeed much complex to work with and understand. An interesting analogy may be... LAngchain is React... KaibanJS is NextJS.
- Using the Kanban methodology to orchestrate Agents make it more easier to understand by everyone. Yep... Must of us are use to management tools like Trello, Jira, Asana, etc. So applying this abstraction to Agents orchestration... make it more easier to understand by everyone. (I can have more arguments here but it cool be an entire essay for it hahahaha)
- Following the previous point KaibanJS API is simpler to understand and work with. Agents, Tasks, Tools, Teams. We that 4 primitives you can create a complex agentic system. Without having to worry about the minor details. Also you can go deeper if you want. But the deafults are mean to be easy to understand for a more universal public. (We took inspiration from crewAI on that)
- KaibanJS use the Flux principles for state management. Yep, we borrow this concept from React Component architectures and bringing up to AI Agents. The advantages of that is that you can orchestrate a lot of Agents is a solid and predictable way. Plus... you can take advantage in all the infra already build for it inside the JS ecosystem. (Zustand... for example... and all the tooling around the state management world)
- Because KaibanJS uses Zustand behind... You can plugged it in relatively easy with React components, and visualize the agents on your Front-end quickly. So building useful visualizations of the Agents and their collaboration processes. (The Kaiban Board is a good example) will be easier.
- We are trying to make KaibanJS work smoothly within the Browser and in NodeJS. I don't know how familiar you are with this but you will be surprise with the amount of AI tools in the Javascript ecosystem that are just optimized for one of the environments and breaks in the other, or make you have a hard time to make it work properly.
1
u/odinsweng Oct 25 '24
2/4
Oops, sorry, I think I mixed up points 1 and 2 in my previous answer. Let me know if you want more details!
1
u/odinsweng Oct 25 '24
3/4
How does the performance and scalability of your framework compare to LangChain for similar tasks?
We have tested KaibanJS with models including GPT-3.5, GPT-4, GPT-4o-mini, Gemini, Claude Sonnet, Mistral, and Llama. The performance of the agents is best with larger models like Claude Sonnet, but is poorer with smaller models like Mistral and Llama. This also depends on how effectively you can adjust the prompts for specific tasks and LLMs.
Is there a specific benchmark that you are interested in?
1
u/odinsweng Oct 25 '24
4/4
Is there a particular use case or type of application where you think your framework might excel compared to LangChain?
- Client-Side Deployment: KaibanJS is built specifically for JavaScript and integrates easily with React, NextJS and other Front-end frameworks.
- When you want to maximize the speed to value: With KaibanJS, setting up demos, prototypes, mvps is quick and straightforward. This lets developers showcase new ideas quickly, greatly accelerating the journey from concept to validation.
- UI Visualization of Agent Activities: A standout feature of KaibanJS is its robust state management system, which excels in helping developers visualize AI agents’ interactions and performance in real time through the UI.
Important Note: KaibanJS is just three months old. We're actively working on adding new features and refining existing ones based on feedback. Your input is welcome as we continue developing the framework.
12
u/DelKarasique Oct 10 '24
I feel like I'm blessed that I don't even know what ai agent is and why does they need to be orchestrated