Harvey's Cloud Agent Infrastructure, embodied by Spectre, has evolved into a collaborative cloud agent platform. Spectre provides a durable, isolated, and collaborative environment for executing agent runs, moving beyond local coding agents. It integrates with existing systems like GitHub, Datadoc, and Linear, offering reviewable artifacts and enabling cross-functional collaboration. Key technical primitives include durable run records, ephemeral workers, sandboxed execution, a robust harness for orchestrating agent runs, and a centralized model inference client library for managing AI model performance reliably across millions of daily requests. This library encapsulates multiple features and relies on a distributed key-value store, an in-house proxy service, and a custom-built model health tracker to enable scalable, fault-tolerant interaction with AI model inference servers and maximize their availability. The system implements active load balancing and monitoring of LLM resources across all environments to optimize utilization and maintain consistent performance and a reliable user experience. A centralized quota & rate limiting system using a Redis-backed approximate sliding-window token bucket algorithm prevents server degradation and handles bursty traffic. A thin proxy forwards model requests made outside of the Kubernetes cluster back through the cluster to the model servers, compatible with the OpenAI API spec, adding security and instrumentation. Granular observability and strict burn rate alerts around SLAs ensure rapid response to model-related incidents. Detailed accounting of every prompt and output token consumed is collected via an in-house telemetry events pipeline and exported to Snowflake.
All Harvey trails