SuperAPI AI Directory

ai-legion

AI Legion is an LLM-based autonomous agent platform that provides a framework for multiple autonomous agents to collaborate on tasks. The project requires at least Node 10, requires renaming the .env.template in the root directory to .env and adding keys, and also requires enabling the Google Custom Search API for a Google Cloud account. After startup, users interact through the console with all current agents, and the input content is sent to them as messages. In the early stage, agents often make errors because they are unfamiliar with the operations, such as invoking actions without first requesting help, using raw text instead of actions in the correct format, and failing to wrap multi-line arguments with multi-line delimiters. This is a normal adjustment period, and most agents will learn from errors and recover, but the gpt-3.5-turbo agent sometimes falls into an infinite error loop. It is recommended not to leave it unattended, to avoid rapidly consuming tokens. The state of each agent is stored under the .store directory. You can selectively clear state by deleting a single file, an entire agent folder, or the entire .store; otherwise, after restarting, the agent will continue from where it left off last time. This mechanism is convenient for debugging: you can delete events after the point where a problem occurred in a specific agent's memory, modify the code and restart, so as to replay that moment until it is fixed; you can also have the agent implement a feature, then after completion restart and tell it that the feature has been loaded, and then ask it to try it.

Open website

About this tool

Purpose

AI Legion is an LLM-based autonomous agent platform that provides a framework for multiple autonomous agents to collaborate on tasks.

Main capabilities

  • Multiple autonomous agents can work together to complete tasks.
  • Interact through the console with all current agents, and the input content is sent to them as messages.
  • Agent state is persistently stored in the .store directory, and state can be selectively cleared to control the starting point of operation.
  • Supports replay during debugging: delete events after the point where a problem occurred, modify the code and restart, and replay that moment until it is fixed.
  • You can have the agent implement a feature, then after completion restart and tell it that the feature has been loaded, and then ask it to try it.

How to use

  1. Environment requirement: at least Node 10.
  2. Rename the .env.template file in the project root directory to .env and add keys.
  3. Enable the Google Custom Search API for a Google Cloud account, for example by visiting https://console.cloud.google.com/apis/library/customsearch.googleapis.com。
  4. Start the program.
  5. Interact with the agents through the console; any input content will be sent as a message to all current agents.

Applicable scenarios and limitations

  • Applicable scenarios: exploratory development and debugging that require multiple agents to collaborate on tasks.
  • Limitations and cautions: newly started agents often make mistakes and produce errors, for example trying to use actions before requesting help to understand the parameters, using raw text responses instead of actions in the correct format (or wrapping a code block containing valid actions in raw text), or using multi-line argument values without wrapping them with multi-line delimiters ( % ff9d7713-0bb0-40d4-823c-5a66de48761b ). This is a normal adjustment period when they are learning to operate themselves, and they can usually recover from errors, but the gpt-3.5-turbo agent sometimes falls into an endless error loop and cannot locate the problem. It is strongly recommended not to leave it unattended, because such infinite loops will quickly consume tokens, especially when stuck on high-token-consumption actions such as writeFile.
  • State management: each agent's state is stored in the .store directory. For example, Agent 1 has its own storage. You can selectively clear state by deleting any file, an entire agent folder, or the entire .store; otherwise, after restarting, the agent will continue from where it left off last time.

Information not yet provided

The project does not provide specific information such as fees, pricing, platform support scope, or performance commitments.