Production-ready multi-source intelligence swarm for AI-powered research
Overview โข Features โข Installation โข Usage โข Configuration โข API โข Roadmap
$ bioswarm run --query "latest AI technology trends 2026" --depth 3
๐ BioSwarm v3.5 - Starting intelligence swarm...
โ
SQLite database initialized
โ
Search clients ready
๐ค Spawning specialist agents...
โ
Swarm execution complete!
๐ Execution summary ready
๐ Exports written: Markdown, JSON, HTML, CSVBioSwarm Engine is a production-ready, multi-source intelligence CLI built in Rust. It orchestrates specialist AI research flows to gather fresh intelligence, persist execution history, and export usable reports.
Current strengths:
- โก Production CLI flows for run, resume, export, history, and status
- ๐ Resumable runs with SQLite-backed checkpoints
- ๐ Multi-format exports in Markdown, JSON, HTML, and CSV
- ๐ฏ Confidence scoring and executive summary generation
- ๐๏ธ Persistent history with searchable run records and trend deltas
- ๐งช Tested baseline with integration and snapshot coverage
| Feature | Description | Status |
|---|---|---|
| ๐ค Swarm Research Execution | Multi-agent business intelligence orchestration | โ |
| ๐๏ธ SQLite Persistence | Schema migrations, checkpoint/resume, run history | โ |
| ๐ค Multi-Format Exports | Markdown, JSON, HTML, CSV with report templates | โ |
| ๐ Resume Flow | Recover and continue from stored checkpoints | โ |
| ๐ Trend Analysis | Delta summaries across multiple runs | โ |
| ๐ฏ Confidence Scoring | Per-run and aggregated confidence signals | โ |
| ๐งน Deduplication | Duplicate insight cleanup in output generation | โ |
| ๐ Fresh Research Support | Fireworks generation with optional Exa freshness layer | โ |
| ๐ก๏ธ Schema Migrations | Automatic database upgrades on startup | โ |
| ๐งช Testing | Integration tests + snapshot tests | โ |
| ๐ REST API Server | HTTP entrypoint for automation | โ |
| ๐ Provider-flexible model backends | Fireworks, Ollama, OpenAI-compatible runtime switching | โ |
git clone https://github.com/sayuru-akash/bioswarm-engine.git
cd bioswarm-engine
cargo build --release
cargo test- Rust 1.75+ (Install)
- API keys:
- Fireworks AI for text generation
- Exa AI optional, for fresher research/search enrichment
export FIREWORKS_API_KEY="your_key_here"
bioswarm run --query "AI market trends 2026"bioswarm run \
--query "sri lanka fintech opportunities" \
--depth 3 \
--formats markdown,json,html,csv \
--output-dir ./reports \
--database-path ./bioswarm.db
bioswarm history --limit 20
bioswarm status
bioswarm export --execution-id "<id>" --formats markdown,json
bioswarm resume --execution-id "<id>"# Fireworks
export FIREWORKS_API_KEY="fw_..."
bioswarm run --query "AI market trends" --backend fireworks --model accounts/fireworks/models/kimi-k2-instruct
# Ollama
export OLLAMA_API_KEY="local-or-placeholder"
bioswarm run --query "AI market trends" \
--backend ollama \
--model kimi-k2.5:cloud \
--api-base-url http://127.0.0.1:11434/v1 \
--api-key-env OLLAMA_API_KEY
# OpenAI-compatible
export OPENAI_API_KEY="sk-..."
bioswarm run --query "AI market trends" \
--backend openai-compatible \
--model gpt-4.1-mini \
--api-base-url https://api.openai.com/v1 \
--api-key-env OPENAI_API_KEY| Command | Description |
|---|---|
run |
Execute a new swarm |
resume |
Resume from a saved checkpoint |
export |
Export an existing run |
history |
List past runs |
status |
Show current status and checkpoints |
# Required
export FIREWORKS_API_KEY="fw_..."
# Optional
export EXA_API_KEY="exa_..."
export DATABASE_PATH="./bioswarm.db"
export OUTPUT_DIR="./outputs"
export RATE_LIMIT_RPM=60
export BIOSWARM_DEPTH=2
export RUST_LOG=infofireworks_api_key = "fw_..."
exa_api_key = "exa_..."
rate_limit_rpm = 60
database_path = "bioswarm.db"
output_dir = "outputs"
depth = 2
formats = ["markdown", "json", "html", "csv"]
backend = "fireworks"
model = "accounts/fireworks/models/kimi-k2-instruct"
api_base_url = "https://api.fireworks.ai/inference/v1"
api_key_env = "FIREWORKS_API_KEY"BioSwarm includes an HTTP API server for automation:
./target/release/bioswarm-server| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/api/v1/swarm/run |
POST | Execute swarm |
/api/v1/swarm/status |
GET | Get current status/checkpoints |
CLI / API
โ
Orchestrator
โ
Agent execution + checkpointing
โ
Search + generation clients
โ
SQLite persistence + export pipeline
Core files:
src/main.rsCLI entrysrc/server.rsAPI serversrc/database.rspersistence + migrationssrc/orchestrator.rsswarm execution + checkpointingsrc/exports.rsexport writerstests/integration and snapshot coverage
Planned next improvements:
- richer provider-specific capability negotiation
- stronger retry/backoff behavior for live provider calls
- richer report presentation and executive dashboards
- stronger CI/release polish
- deeper structured extraction from model outputs
Important: roadmap items above are next-step improvements beyond the currently shipped backend-flexible runtime support.
MIT