← 开源
eumemic

ai-legion

An LLM-powered autonomous agent platform

AI EngineeringBuild agent workflow (SDK)TypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.44k
Star
172
Fork
+1
本周
6
贡献者
创建于 2023-04-10 · 更新于 2026-10-15 · 今日第 10324 名
主要开发者
eumemicMalikMAlnaTheBitmonkey

eumemic/ai-legion 排名第 10,324,有 1,438 个星标。

同类别比较

eumemic/ai-legion 排名第 10,324,此处有 8 个同类条目;6551Team/opentwitter-mcp 排名第 10,321。

同类别比较
名称排名指标
writer/writer-framework10,295
语言:
Python
星标数:
1,451
分叉数:
102
简介:
No-code in the front, Python in the back. An open-source framework for creating data apps.
dleemiller/WordLlama10,298
语言:
Python
星标数:
1,450
分叉数:
49
简介:
Things you can do with the token embeddings of an LLM
jamesturk/scrapeghost10,316
语言:
Python
星标数:
1,440
分叉数:
86
简介:
👻 Experimental library for scraping websites using OpenAI's GPT API.
6551Team/opentwitter-mcp10,321
语言:
Python
星标数:
1,439
分叉数:
102
简介:
Twitter/X Data · User Profiles · Tweet Search · Follower Events · KOL Tracking
hollance/CoreMLHelpers10,337
语言:
Swift
星标数:
1,434
分叉数:
188
简介:
Types and functions that make it a little easier to work with Core ML in Swift.
alan345/AI-Fullstack-SaaS-Boilerplate10,341
语言:
TypeScript
星标数:
1,433
分叉数:
223
简介:
Fullstack SaaS Boilerplate built with tRPC, Fastify and React
remorses/kimaki10,346
语言:
TypeScript
星标数:
1,432
分叉数:
117
简介:
all opencode features deeply integrated inside Discord. each project is a channel. each session a thread
mnemox-ai/tradememory-protocol10,357
语言:
Python
星标数:
1,430
分叉数:
172
简介:
Decision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, tamper-evident SHA-256 chain with RFC 3161 anchoring, 20 MCP tools.
关键参数与规格
关键参数与规格
参数值
语言TypeScript
类别AI Engineering
子类别Build agent workflow (SDK)
星标数1,438
分叉数172
贡献者6
创建日期2023-04-10
更新日期2026-10-15
1 天星标数0
7 天星标数1
排名10,324
上次排名5,689
排名变化-4,635
7 天星标排名9,842
上次 7 天星标排名9,906
7 天星标排名变化64
总星标排名8,365
上次总星标排名8,354
总星标排名变化-11
README 摘录

AI Legion: an LLM-powered autonomous agent platform A framework for autonomous agents who can work together to accomplish tasks. Rename the file at the root of the project to and add your secrets to it: You'll also need to enable the Google Custom Search API for your Google Cloud account, e. Running Start the program: Interact with the agents through the console. Anything you type will be sent as a message to all agents currently. Action errors After spinning

up a new agent, you will often see them make some mistakes which generate errors: Trying to use an action before they've asked for on it to know what its parameters are Trying to just use a raw text response instead of a correctly-formatted action (or raw text wrapping a code block which contains a valid action) Trying to use a multi-line parameter value without wrapping it in the multiline delimiter ( ) This is a normal period of adjustment

as they learn to operate themselves. They generally will learn from these mistakes and recover, although agents sometimes devolve into endless error loops and can't figure out what the problem is. It's highly advised never to leave an agent unattended, since such infinite loops can eat through your tokens quickly (especially if they're stuck on a high-token-count action such as ). Agent state Each agent stores its state under the directory. Agent 1, for example, has You can simply

delete any of these things, or the whole agent folder (or the whole ) to selectively wipe whatever state you want between runs. Otherwise, agents will pick up where you left off on restart. A nice aspect of this is that when you want to debug a problem you ran into with a particular agent, you can delete the events in their memory subsequent to the point where the problem occurred, make changes to the code, and restart them to effectively

replay that moment until you've fixed the bug. You can also ask an agent to implement a feature, and once they've done so you can restart, tell them that you've loaded the feature, and ask them to try it out.

常见问题

记录了多少星标和分叉?

eumemic/ai-legion 有 1,438 个星标和 172 个分叉。

仓库排名是多少?

eumemic/ai-legion 排名第 10,324。

记录的语言和类别是什么?

eumemic/ai-legion 有 1,438 个星标,语言为 TypeScript,类别为 AI Engineering。

哪个仓库排名最接近?

eumemic/ai-legion 与 6551Team/opentwitter-mcp 比较,后者排名第 10,321,有 1,439 个星标。

README

AI Legion: an LLM-powered autonomous agent platform

A framework for autonomous agents who can work together to accomplish tasks.

Setup

You will need at least Node 10.

npm install

Rename the .env.template file at the root of the project to .env and add your secrets to it:

OPENAI_API_KEY=... # obtain from https://platform.openai.com/account/api-keys
# the following are needed for the agent to be able to search the web:
GOOGLE_SEARCH_ENGINE_ID=... # create a custom search engine at https://cse.google.com/cse/all
GOOGLE_API_KEY=... # obtain from https://console.cloud.google.com/apis/credentials
AGENT_DELAY=... # optionally, a delay in milliseconds following every agent action

You'll also need to enable the Google Custom Search API for your Google Cloud account, e.g.

Running

Start the program:

npm run start [# of agents] [gpt-3.5-turbo|gpt-4]

Interact with the agents through the console. Anything you type will be sent as a message to all agents currently.

Action errors

After spinning up a new agent, you will often see them make some mistakes which generate errors:

  • Trying to use an action before they've asked for help on it to know what its parameters are
  • Trying to just use a raw text response instead of a correctly-formatted action (or raw text wrapping a code block which contains a valid action)
  • Trying to use a multi-line parameter value without wrapping it in the multiline delimiter (% ff9d7713-0bb0-40d4-823c-5a66de48761b)

This is a normal period of adjustment as they learn to operate themselves. They generally will learn from these mistakes and recover, although gpt-3.5-turbo agents sometimes devolve into endless error loops and can't figure out what the problem is. It's highly advised never to leave an agent unattended, since such infinite loops can eat through your tokens quickly (especially if they're stuck on a high-token-count action such as writeFile).

Agent state

Each agent stores its state under the .store directory. Agent 1, for example, has

.store/1/memory
.store/1/goals
.store/1/notes

You can simply delete any of these things, or the whole agent folder (or the whole .store) to selectively wipe whatever state you want between runs. Otherwise, agents will pick up where you left off on restart.

A nice aspect of this is that when you want to debug a problem you ran into with a particular agent, you can delete the events in their memory subsequent to the point where the problem occurred, make changes to the code, and restart them to effectively replay that moment until you've fixed the bug. You can also ask an agent to implement a feature, and once they've done so you can restart, tell them that you've loaded the feature, and ask them to try it out.

排名相邻
同类项目