Skip to content
Blogs
Decagon logo

Decagon

Engineering blog · decagon.ai/resources/blog

27posts0this week0watchers

Feature trails

7
Feature trailActive

Real-time Text-to-Speech Inference Scaling

Decagon has significantly scaled its real-time text-to-speech (TTS) inference by rebuilding the pipeline on the M* modular inference framework. This involved stage decomposition, packed inputs, cache and batch-state integration, causal decoder history management, CUDA Graphs, and validation. The new approach enables stage-aware scheduling and true tensor batching, leading to higher capacity and reduced latency. Key improvements include packed prefill for variable-length prompts, paged KV caching. Decagon has now developed Chord, a post-trained speech model specifically for customer conversations, which improves naturalness, engagement, and resolution rates. Chord utilizes a dedicated pipeline for conversational data, verbatim transcription, and a tokenizer-free diffusion model for enhanced steerability and detail preservation. Production deployment is handled via Modal.

6 posts · 2026

Timeline

Feature trailActive

Audio-native Speaker Change Detection

Decagon is developing advanced audio-native semantic speaker-change detection capabilities. This system aims to reliably identify when a new participant joins a conversation, distinguishing relevant changes that require agent intervention (e.g., for security or fraud prevention) from irrelevant audio events (e.g., background noise, announcements). The system leverages speaker embeddings and multimodal LLMs, with a focus on constructing robust benchmarks and employing supervised fine-tuning to optimize for conversation-level false-positive rate and recall. This capability enhances the security and operational efficiency of voice agents.

1 post · 2026

Timeline

Feature trailActive

Voice Activity Detection (VAD) and Turn Detection

Decagon is evolving its voice AI capabilities by focusing on conversational design and voice profiles that reflect brand identity, moving beyond just technical fundamentals like latency and accuracy. The company emphasizes principles of efficient task completion, natural and clear communication, robust error recovery, empathetic interaction, and deep user understanding. This includes aligning Text-to-Speech (TTS) voice characteristics (formal/casual, energetic/calm, mature/youthful, warm/profess). This post details improvements to Voice Activity Detection (VAD) and turn detection by introducing Bayesian methods for improved calibration and a hazard statistic for more robust turn-ending decisions, resulting in fewer broken turns and reduced transcription errors.

1 post · 2026

Timeline

Feature trailActive

AI Support Agent Platform

Decagon is evolving its AI Support Agent Platform by introducing Duet Apprentice and enhancing agent detection capabilities. This includes developing sophisticated voice and chat detection models to distinguish personal AI agents from human callers, crucial for businesses to manage these interactions effectively. The platform aims to provide agents with deeper business understanding through enterprise onboarding materials and continuous learning from team messaging platforms. The Personal Agent Gateway facilitates policy enforcement for agent interactions, including access control and escalation, and verifies customer authorization. The evolution also includes the Personal Agent Consent & Trust Protocol (PACT) for secure agent-to-agent communication and permission management.

39 posts · 2025–2026

Timeline

20252026
Feature trailActive

PgBouncer Debugging and Migration

Decagon successfully migrated from GCP's managed connection pooler to self-managed PgBouncer. This migration uncovered a latent bug in PgBouncer related to TLS buffering and packet handling, which caused connection stalls and pool exhaustion. The issue was mitigated by shortening the application name parameter and an upstream fix was contributed to PgBouncer to address the event loop deadlock. The investigation traced the bug through SQLAlchemy, PgBouncer, OpenSSL, and the Linux kernel's epoll interface.

1 post · 2026

Timeline

Feature trailActive

Prompt Engineering Optimization

Decagon is developing systematic approaches to prompt engineering optimization, moving beyond manual iteration. The GEPA (Reflective Prompt Evolution) framework, built on DSPy, uses LLM reflection to automatically improve prompts. Key findings from production deployment include identifying an optimal sample size range (20-100 examples), the critical need for frontier LLMs as reflection models, and the effectiveness of length constraints as regularization to prevent prompt bloat and improve generation. This post details the application of a GAN-like adversarial game to prompt optimization, where a generator and judge are pitted against each other, with GEPA optimizing their prompts based on failure analysis. The system achieved a 34% human fool rate, demonstrating improved realism without model fine-tuning, highlighting the value of adversarial optimization for discovering failure modes and improving prompts, with a methodological takeaway that realism must be validated outside the game.

2 posts · 2026

Timeline

Feature trailActive

Holiday Season Reliability and Resilience

Decagon's AI agents are engineered for consistent performance, reliability, and resilience, especially during peak demand periods like the holiday season. The platform utilizes a scalable, multi-tenant architecture with elastic capacity that scales within seconds, isolation of real-time tasks, tiered storage for low latency, and per-tenant throttling for fairness and resilience. Disaster recovery is achieved through instant failover across multiple LLM and voice providers, defense in depth across the stack, and inherited SLAs from infrastructure partners. Operational discipline includes proactive capacity planning, a code freeze during peak season, and 24x7 monitoring.

1 post · 2026

Timeline