Files
hope-voice-api/docker-compose.yml
T
Shane ab6b5254ef feat: context compaction + skills system
Compaction:
- GemmaLLM.chat() truncates ChatContext to last 30 items (~15 turns)
  before sending to LLM, preventing context window overflow on long
  conversations. Preserves system prompt and removes orphaned tool calls.

Skills:
- agent/skills_mcp.py: MCP server with skill_save, skill_recall,
  skill_list, skill_update tools backed by .md files in /skills
- skills/ dir bind-mounted into container, git-trackable
- System prompt instructs Hope to save repeatable procedures as skills
  and recall them before performing tasks she's done before
- Distinct from memory (facts) — skills are learned *procedures*
2026-08-22 16:42:16 -04:00

30 lines
1.1 KiB
YAML

services:
voice:
build: .
container_name: voice
network_mode: host
environment:
LIVEKIT_URL: "http://localhost:7880"
LIVEKIT_API_KEY: "${LIVEKIT_API_KEY:-devkey}"
LIVEKIT_API_SECRET: "${LIVEKIT_API_SECRET:-devsecret}"
AZURE_SPEECH_KEY: "${AZURE_SPEECH_KEY:?Set AZURE_SPEECH_KEY in .env}"
AZURE_SPEECH_REGION: "${AZURE_SPEECH_REGION:-eastus}"
AZURE_TTS_VOICE: "${AZURE_TTS_VOICE:-en-US-AvaNeural}"
GEMMA_BASE_URL: "${GEMMA_BASE_URL:-http://192.168.86.2:8023/v1}"
GEMMA_MODEL: "${GEMMA_MODEL:-gemma-4-e4b}"
GEMMA_API_KEY: "${GEMMA_API_KEY:-not-needed}"
WEB_MCP_ENABLED: "${WEB_MCP_ENABLED:-true}"
FIRECRAWL_BASE: "${FIRECRAWL_BASE:-http://192.168.86.2:3002}"
volumes:
- ./livekit.yaml:/etc/livekit.yaml:ro
- ./certs:/etc/voice/certs
- ./memory:/memory
- ./skills:/skills
healthcheck:
test: ["CMD-SHELL", "curl -sk https://localhost:8090/ -o /dev/null && curl -s http://localhost:7880/ -o /dev/null"]
interval: 15s
timeout: 5s
retries: 3
start_period: 20s
restart: unless-stopped