# TOOLS — Available Integrations & Capabilities

> Every tool, integration, and external service Tes and the Ghost Agents can access.

---

## Communication Channels

### Telegram

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Bot Handle** | `@tes_BSG_bot` |
| **Secret** | `TELEGRAM_BOT_TOKEN` (env) |
| **Capabilities** | Send/receive messages, notifications, commands |

Used for: Real-time alerts, command interface, mobile-first interactions with Scott.

### Twilio (SMS/Voice)

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secrets** | `TWILIO_ACCOUNT_SID`, `TWILIO_AUTH_TOKEN`, `TWILIO_PHONE_NUMBER` (env) |
| **Features** | SMS (active), Voice (pending) |

Used for: SMS alerts, 2FA, scheduled notifications, future voice calls.

---

## AI / LLM Services

### OpenAI

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secret** | `OPENAI_API_KEY` (env) |
| **Models** | GPT-4o, GPT-4o-mini, o1, o1-mini |

Used for: Primary reasoning engine, code generation, analysis, natural language processing.

### xAI (Grok)

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secret** | `XAI_API_KEY` (env) |
| **Models** | Grok-2, Grok-3 |

Used for: Alternative reasoning, cross-validation, real-time information.

### Abacus.AI RouteLLM

| Field | Value |
|-------|-------|
| **Status** | ✅ AVAILABLE |
| **Endpoint** | `https://routellm.abacus.ai/v1` |
| **Secret** | `ABACUSAI_API_KEY` (env) |
| **Models** | route-llm (auto-routing), Claude, GPT, Gemini, Llama, DeepSeek, Qwen |

Used for: Multi-model routing, cost optimization, model diversity. The primary LLM backbone for the platform.

---

## Media Generation

### ElevenLabs (Voice)

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secrets** | `ELEVENLABS_API_KEY`, `ELEVENLABS_VOICE_ID` (env) |
| **Capabilities** | Text-to-speech, voice cloning, multi-voice synthesis |

Used for: Agent voice output, podcast generation, video narration, Tes's voice.

### HeyGen (Avatar Video)

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secret** | `HEYGEN_API_KEY` (env) |
| **Capabilities** | Avatar video generation, lip-sync, multi-avatar |

Used for: Sales demos, video content, Tes avatar, agent visual representation.

---

## Development & Source Control

### GitHub

| Field | Value |
|-------|-------|
| **Status** | ✅ CONFIGURED |
| **Secret** | `GITHUB_PAT` (env) |
| **User** | `srmbsrg` |
| **Capabilities** | Repository access, code push/pull, issue management |

Used for: Source control, CI/CD triggers, code review automation.

---

## Internal Platform Tools

### Dark Factory (Code Generation)

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |
| **Location** | `/dark-factory` |
| **API** | `/api/dark-factory/*` |

Capabilities:
- Natural language → production code pipeline
- Multi-stage: Intent → Schema → Code → Test → Validate → Deploy
- Weft engine with template library
- Multi-LLM selection
- Version history

### Ghost Control (Command Center)

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |
| **Location** | `/ghost-control` |

Capabilities:
- Module management (enable/disable)
- Agent hierarchy visualization
- Heartbeat monitoring
- Configuration & settings
- Operations dashboards

### Sentinel (Security Monitor)

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |
| **API** | `/api/gfs/sentinel` |

Capabilities:
- Anomaly detection
- Compliance rule enforcement
- Audit trail maintenance
- Behavioral fingerprinting
- Security event logging

### Agent Memory System

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |

Capabilities:
- Persistent per-agent memory
- Cross-agent message passing
- Escalation protocol routing
- Decision archive (forever retention)
- Human feedback archive

### Intelligence Briefs

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |
| **API** | `/api/intelligence-brief` |

Capabilities:
- Weekly executive summaries
- Cross-domain pattern synthesis
- Proactive recommendations
- Trend analysis

### AI Companion System

| Field | Value |
|-------|-------|
| **Status** | ✅ BUILT |
| **API** | `/api/ai-companion` |

Capabilities:
- Per-user AI companion instances
- 5-stage maturity growth (Infant → Elder)
- XP-based progression
- Persistent memory per companion
- Diary entries, milestones

---

## Database

| Field | Value |
|-------|-------|
| **Type** | PostgreSQL (Prisma ORM) |
| **Status** | ✅ CONFIGURED |
| **Secret** | `DATABASE_URL` (env) |

Capabilities:
- Full schema management via Prisma
- Migration support
- Multi-model relationships
- Transaction support

---

## File Storage

| Field | Value |
|-------|-------|
| **Type** | AWS S3 |
| **Status** | ✅ CONFIGURED |
| **Secrets** | `AWS_BUCKET_NAME`, `AWS_FOLDER_PREFIX` (env) |

Capabilities:
- Presigned upload URLs
- Public & private file access
- Multipart upload for large files
- CDN-ready public URLs

---

## Secret Management

All secrets are stored in environment variables (`.env`) and never exposed in code. The secrets file at `~/.config/abacusai_auth_secrets.json` is read-only and auto-regenerated.

**Never hardcode secrets. Never log secrets. Never expose secrets in client-side code.**

---
