lite squad
Tool for working with a team of LLMs. Because sometimes two, or five, heads are better than one.
Usage
Install with pip:
pip install litesquad
Use in browser:
litesquad --web
Use at command line:
litesquad "plan such and such project"
litesquad "such and such" --quick # get a quick answer, bypassing the squad
litesquad takes a few minutes to run when running in default (deep) mode. There's a lot of LLM calls going on under the hood.
Query is distributed to worker LLMs (gemini and sonnet direct, plus deepseek, mistral, and llama via OpenRouter). Another LLM acts as a critic that gives feedback to the workers. They revise their response. An intermediate representation of these responses is extracted to pull the content, and this is then converted into categories/clusters of suggestions. A final judge (opus) converts these suggestions into a final coherent answer for the user.
So. Many. APIs.
To run properly, litesquad currently needs API keys for Gemini, OpenAI, Anthropic, and OpenRouter. One OpenRouter key reaches the whole openrouter.ai catalog (deepseek, mistral, llama, grok, qwen, ...), which is how the worker roster grows wide without a key per provider. You can store your API keys in .env.
Todo: replace with OpenRouter API key only.
Basic tests
To see if api keys are working (from activated env): python -m litesquad.check_keys
Check on specific models: litesquad --check
Offline test: litesquad --smoke --mock
Caveats
This provides an interface to a swarm of LLMs to try to generate a better answer than when using a single LLM. There is no tool-usage such as web calls from the LLMs. Just reasoning.
With apologies to squad.
What about Fusion?
After I pushed a recent litesquad version, I found out about OpenRouter's Fusion.
It has the same goal as litesquad, and a fairly similar architecture, but is built by a professional team that can maintain the product as their primary goal.
When I did testing of litesquad vs Fusion, they both produced good results. Often Fusion is better (its agents can crawl the web which is very nice). On some questions, I prefer the output of litesquad (for instance when I'm exploring answers to more open-ended topics and there is clearly no single best answer). I plan to use them both.
My guess is there will be a squadron of these applications within a couple of years. It's just too obvious a need, and an intrinsically interesting problem.
Metadata
Release files for litesquad 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| litesquad-0.0.4.tar.gz | 35.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| litesquad-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.6 kB
Release files / litesquad-0.0.4.tar.gz
| Download URL | litesquad-0.0.4.tar.gz |
|---|---|
| Size | 35.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30b4f265442a67e626a4fcfccf96a0c49ded2d21f87b017e50715c60f646a933
|
|
BLAKE2b-256 checksum How to use checksums |
a626987d84f799e8a11e3b418dea5518c57f79ce60ed528edab9919e9d52ef16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / litesquad-0.0.4-py3-none-any.whl
| Download URL | litesquad-0.0.4-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04f4ab13c8633a3b0767a119ed7d83f3ea59f1333127698c41c83fb814019925
|
|
BLAKE2b-256 checksum How to use checksums |
8313e214fc717c6e78c98caf012960dde6155bdd66a8fdc221b66a4b059038b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|