pi-treequest-parallel-processing
TreeQuest Parallel Processing - multi-provider AI orchestration for pi with parallel queries, smart routing, and agent coordination
Package details
Install pi-treequest-parallel-processing from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-treequest-parallel-processing- Package
pi-treequest-parallel-processing- Version
1.0.0- Published
- Apr 26, 2026
- Downloads
- 45/mo · 4/wk
- Author
- dasrebel
- License
- MIT
- Types
- extension, skill
- Size
- 17.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
🌲 TreeQuest Parallel Processing
A native pi extension for parallel AI processing - integrates TreeQuest Orchestrator for multi-provider parallel queries, smart routing, and multi-agent coordination.
✨ Features
- Parallel Execution: Run multiple AI queries simultaneously across providers
- Smart Routing: Automatically select optimal provider based on task type
- Multi-Agent Ensemble: Compare responses from multiple agents
- Health Monitoring: Real-time provider and agent status
- Cost Tracking: Monitor API costs across providers
🚀 Installation
# From npm (when published)
pi install npm:@your-name/pi-treequest-parallel-processing
# From git
pi install git:github.com/your-org/pi-treequest-parallel-processing@v1.0.0
📖 Usage
Commands
| Command | Description |
|---|---|
/tq-status |
Show TreeQuest status |
/tq-providers |
List AI providers |
/tq-agents |
List CLI agents |
/tq-health |
Test provider health |
/tq-help |
Show help |
Tools
| Tool | Description |
|---|---|
treequest_parallel |
Run multiple queries in parallel |
treequest_route |
Route single query optimally |
treequest_status |
Get system status |
treequest_health |
Test health |
treequest_ensemble |
Multi-agent comparison |
🔧 Configuration
TreeQuest requires API keys for various providers. Set them as environment variables:
export GROQ_API_KEY=your_key
export MISTRAL_API_KEY=your_key
export ANTHROPIC_API_KEY=your_key
# etc.
📊 Architecture
┌─────────────────────────────────────────────────────────────┐
│ TreeQuest Orchestrator │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Groq │ │ Mistral │ │ Claude │ │ Together │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │ │
│ └────────────┼────────────┼────────────┘ │
│ ▼ │
│ ┌──────────────────────┐ │
│ │ Parallel Processing │ │
│ │ & Smart Routing │ │
│ └──────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌───────────────┐
│ pi Extension │
└───────────────┘
📝 Example
// Run 3 queries in parallel
await treequest_parallel({
tasks: [
"What is quantum computing?",
"Explain photosynthesis",
"Define machine learning"
],
strategy: "balanced"
});
📜 License
MIT