A lightweight typescript AI agents framework for building concurrent applications with strong flow control.
- Lock-less Architecture: Stateless agents operate without shared memory locks
- Multi-Core Performance: Utilizes worker threads for true parallelism
- Strong Flow Control: Managed conversation workflows with hooks
- Modular Design: Pluggable agents with tool integration support
- Async Processing: Non-blocking operations with promise-based APIs. Can be integrated with broadcast channel, kafaka, sqs, pubsub, etc.
- Round Robin: Simple task distribution
- Handoff: Agent-to-agent conversation transfer
- Tool Calling: Function execution with reflection
- Selector: Intelligent agent assignment
- Workflow: Managed multi-step processes
This is an email-like messaging system. Key design elements explained below.
Each entity (Manager/Agents) has its own virtual mailbox (persistent storage)
Messages have explicit types: NEW, FORWARD, REPLY
All communications are asynchronous and stored
NEW: End User initiates conversation with Manager
FORWARD: Manager routes messages to agents
REPLY: Agents respond to Manager (not directly to End User)
Final REPLY: Manager responds to End User
NPM: npm i async-agents-core or
YARN: yarn add async-agents-core
Try this AI native way to get started. Copy below files and paste them to ask AI.
-
Core code all in one file: https://github.com/ggzy12345/async-agents/blob/main/packages/shared/async-agents-core/project-ai.md
-
Example code all in one file: https://github.com/ggzy12345/async-agents/blob/main/packages/backend/async-agents-backend-example/project-ai.md
-
Example prompt: https://github.com/ggzy12345/async-agents/blob/main/packages/shared/async-agents-core/ai-prompt-examples.md
-
Example coding with AI:

