BioSage Terminal
Version 2.5 | Production Release
AI-Powered Medical Diagnostic Assistant - Terminal User Interface
Overview
BioSage Terminal is a sophisticated TUI (Terminal User Interface) application for medical diagnostics powered by AI. It leverages the ARGUS debate-based reasoning framework to provide evidence-based diagnostic suggestions through multiple specialist AI agents.
Features
-
Full ARGUS Debate Framework Integration:
- Moderator Agent: Orchestrates debate agenda and controls flow
- Specialist Agents: Infectious Disease, Cardiology, Neurology, Oncology, Autoimmune, and Toxicology experts
- Refuter Agent: Challenges weak evidence and generates rebuttals
- Jury Agent: Renders final verdicts via Bayesian aggregation
- CDAG: Conceptual Debate Graph tracks all propositions, evidence, and rebuttals
-
Evidence-Based Reasoning: Uses Bayesian posterior computation for calibrated confidence scores
-
Patient Management: Complete patient onboarding, vitals tracking, and case management
-
Persistent Storage: Local JSON-based storage for all patient data and cases
-
Beautiful TUI: Rich terminal interface with intuitive navigation using Textual framework
Installation
pip install biosage-terminal
# Install with preferred LLM provider
pip install biosage-terminal[gemini] # Google Gemini (recommended)
pip install biosage-terminal[openai] # OpenAI
pip install biosage-terminal[anthropic] # Anthropic Claude
pip install biosage-terminal[all-llms] # All providers
Quick Start
After installation, simply run:
biosage
Or check your API configuration first:
biosage --check-api
Configuration
API keys and model names are configured via environment variables. BioSage auto-detects available providers in this order: Gemini > OpenAI > Anthropic > Groq > Mistral > Cohere > Ollama
Environment Variables
# API Keys
export GEMINI_API_KEY=your_key_here # Google Gemini (recommended)
export OPENAI_API_KEY=your_key_here # OpenAI
export ANTHROPIC_API_KEY=your_key_here # Anthropic Claude
export GROQ_API_KEY=your_key_here # Groq
export MISTRAL_API_KEY=your_key_here # Mistral
export COHERE_API_KEY=your_key_here # Cohere
# Optional: Custom model names
export GEMINI_MODEL=gemini-1.5-pro
export OPENAI_MODEL=gpt-4o
export ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
export GROQ_MODEL=llama-3.1-70b-versatile
# For local Ollama (no API key needed)
export OLLAMA_MODEL=llama3.1
# Data storage directory (default: ~/.biosage)
export BIOSAGE_DATA_DIR=/path/to/data
You can also create a .env file in your working directory.
Navigation
| Key | Action |
|---|---|
d |
Dashboard |
o |
Patient Onboarding (New Case) |
r |
Run Diagnosis |
s |
Specialist Grid |
e |
Evidence Explorer |
Tab |
Switch tabs / Next field |
Enter |
Select / Confirm |
Esc |
Back / Cancel |
q |
Quit |
Data Storage
All data is stored locally in ~/.biosage/:
patients/- Patient records (JSON)cases/- Diagnostic cases with ARGUS debate resultsevidence/- Evidence and citationsreports/- Generated reportsaudit/- Audit trail of all actions
ARGUS Debate Architecture
BioSage Terminal uses the full ARGUS multi-agent debate framework:
- Moderator creates debate agenda for the diagnosis
- Specialist Agents (6 domains) gather domain-specific evidence
- Refuter Agent challenges evidence and generates rebuttals
- CDAG (Conceptual Debate Graph) tracks:
- Propositions (diagnosis hypotheses)
- Evidence nodes (supporting/attacking)
- Rebuttal nodes (challenges to evidence)
- Bayesian Propagation computes posterior probabilities
- Jury Agent renders final verdicts with:
- Verdict label (supported/rejected/undecided)
- Posterior confidence
- Clinical reasoning
Development
git clone https://github.com/biosage/biosage-terminal
cd biosage-terminal
pip install -e .[dev]
Changelog
v2.0.0 (Production Release)
- Production-ready release with stable APIs
- Full ARGUS debate framework integration
- Multi-provider LLM support (Gemini, OpenAI, Anthropic, Groq, Mistral, Cohere, Ollama)
- Complete patient management and case tracking
- Evidence-based Bayesian diagnostic reasoning
- Rich terminal UI with intuitive navigation
License
MIT License
Metadata
Release files for biosage-terminal 2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| biosage_terminal-2.5.tar.gz | 89.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biosage_terminal-2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 193.3 kB
Release files / biosage_terminal-2.5.tar.gz
| Download URL | biosage_terminal-2.5.tar.gz |
|---|---|
| Size | 89.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5e37f5d0b7b88ec907e7394782088b6dc20188c9ee63295b425f8f207aba936
|
|
BLAKE2b-256 checksum How to use checksums |
8156301a4e1dc11c0eea7506e43c794a51be062f8c4d609c146834eba83b3239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|
Release files / biosage_terminal-2.5-py3-none-any.whl
| Download URL | biosage_terminal-2.5-py3-none-any.whl |
|---|---|
| Size | 104.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
403e2f1a559ec6e0a020e4fab14672ef0d0bd9fd889a1fa67a83146d51cffb83
|
|
BLAKE2b-256 checksum How to use checksums |
265d6e5cef83fd1bced2c4f773ea4610ec2a81808b4bc5216f38b134138184a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|