TOXP CLI - Team Of eXPerts parallel reasoning with multiple LLM agents and AWS Bedrock
Project description
TOXP - Team Of eXPerts
Parallel reasoning CLI and Python library using multiple LLM agents. TOXP spawns N independent reasoning agents to tackle complex queries, then synthesizes their outputs through a coordinator agent into a coherent, high-confidence answer.
Features
- Parallel Reasoning: Spawn 2-32 independent reasoning agents
- Intelligent Synthesis: Coordinator analyzes agreements, contradictions, synthesizes best answer
- Confidence Levels: Low/Medium/High confidence ratings
- Streaming Output: Real-time coordinator synthesis
- Session Logging: Markdown logs with token counts and cost estimates
- Python API: Use
run_query()directly from your own code - 1M Context: Optional 1M token context window for supported models (Opus 4.6)
Prerequisites
- Python 3.10+
- AWS credentials with Bedrock access:
aws configure --profile your-profile
- Claude model access in AWS Bedrock console
Installation
# Using uvx (no install needed)
uvx toxp "Your question"
# Or install permanently
uv tool install toxp # recommended
pipx install toxp # alternative
pip install toxp # in current env
Upgrading
uv tool upgrade toxp # if installed with uv
pipx upgrade toxp # if installed with pipx
pip install -U toxp # if installed with pip
Setup
toxp config set aws-profile your-profile
toxp config show
Quick Start
toxp "Solve: x^2 + 5x + 6 = 0"
echo "Explain recursion" | toxp
toxp -v "Analyze quicksort" # verbose
toxp --quiet "What is 2 + 2?" # only answer
toxp --output answer.txt "Question"
toxp --context-1m "Summarize this very long document..."
Python API
from toxp import run_query, QueryResult, validate_credentials
# Simple usage
result = await run_query("What is 2+2?")
print(result.final_answer, result.confidence)
# With overrides and callbacks
result = await run_query(
"Explain recursion",
config_overrides={"num_agents": 8, "temperature": 0.7},
callbacks=MyCallbacks(),
cancel_token=my_cancel_event,
)
# Check credentials before running
validate_credentials()
Configuration
Stored at ~/.toxp/config.json:
toxp config show # view all
toxp config get model # get value
toxp config set num-agents 24 # set value
toxp config reset # reset defaults
| Key | Default | Description |
|---|---|---|
aws-profile |
default |
AWS profile |
region |
us-east-1 |
AWS region |
num-agents |
15 |
Parallel agents (2-32) |
temperature |
0.9 |
Agent temperature |
coordinator-temperature |
0.7 |
Coordinator temperature |
model |
claude-sonnet-4-5 |
Model ID (supports Opus 4.6) |
max-tokens |
8192 |
Max tokens per response |
max-concurrency |
auto |
Max concurrent API requests |
context-1m |
false |
Enable 1M token context window beta |
log-enabled |
true |
Enable session logging |
log-retention-days |
30 |
Days to keep logs |
Environment variables: TOXP_AWS_PROFILE, TOXP_REGION, TOXP_NUM_AGENTS
CLI Reference
toxp [OPTIONS] [QUERY]
Options:
-q, --query TEXT Query string
-n, --num-agents INT Agents (2-32)
-t, --temperature FLOAT
-c, --max-concurrency N Max concurrent API requests
--aws-profile TEXT
--region TEXT
--context-1m Enable 1M token context window beta
-o, --output FILE
-v, --verbose
--quiet
--help
How It Works
- Query sent to N reasoning agents (T=0.9)
- At least 50% must succeed
- Coordinator synthesizes responses
- Final answer with confidence level
Troubleshooting
# Credentials expired
aws sso login --profile your-profile
# Rate limiting
toxp config set num-agents 8
# Debug
toxp -v "Your question"
Development
pip install -e ".[dev]"
pytest -v
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toxp-0.7.1.tar.gz.
File metadata
- Download URL: toxp-0.7.1.tar.gz
- Upload date:
- Size: 78.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af2c8f88cbb2680acbd58b9a5fc67a9fc00766dc4915bce732ba048f3ac88f6
|
|
| MD5 |
9ac1f3562830f3df817534b815666781
|
|
| BLAKE2b-256 |
2175024169bba58c6e559447498eedf59f2c3471190637644f2a17e9304d0c05
|
Provenance
The following attestation bundles were made for toxp-0.7.1.tar.gz:
Publisher:
release.yml on raghuvaran/team-of-experts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
toxp-0.7.1.tar.gz -
Subject digest:
5af2c8f88cbb2680acbd58b9a5fc67a9fc00766dc4915bce732ba048f3ac88f6 - Sigstore transparency entry: 1281926072
- Sigstore integration time:
-
Permalink:
raghuvaran/team-of-experts@7e2eccff4f267096ab7b93706fd00be5e09f2b39 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/raghuvaran
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7e2eccff4f267096ab7b93706fd00be5e09f2b39 -
Trigger Event:
push
-
Statement type:
File details
Details for the file toxp-0.7.1-py3-none-any.whl.
File metadata
- Download URL: toxp-0.7.1-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
433a6ccdbd52b1046781d0bca76b9099aeb6aa6877820825b47752031e1bbead
|
|
| MD5 |
7142fac8cb66828856b3b2fbcdb5fb94
|
|
| BLAKE2b-256 |
70f4d2c7eed2ed609143eab08638ef23024a2c9a8daccd084670600c2e91f0b3
|
Provenance
The following attestation bundles were made for toxp-0.7.1-py3-none-any.whl:
Publisher:
release.yml on raghuvaran/team-of-experts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
toxp-0.7.1-py3-none-any.whl -
Subject digest:
433a6ccdbd52b1046781d0bca76b9099aeb6aa6877820825b47752031e1bbead - Sigstore transparency entry: 1281926126
- Sigstore integration time:
-
Permalink:
raghuvaran/team-of-experts@7e2eccff4f267096ab7b93706fd00be5e09f2b39 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/raghuvaran
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7e2eccff4f267096ab7b93706fd00be5e09f2b39 -
Trigger Event:
push
-
Statement type: