Harrison Chase · LangChain · 2026/11/10

Case Studies How Stripe Built Kai, its Company-Wide AI Agent, on Deep

Case Studies How Stripe Built Kai, its Company-Wide AI Agent, on Deep Agents Sofia Sulikowski August 3, 2026 10 min Go back to blog Create agents Create agents Share Stripe is the global payments and financial infrastructure platform used by millions of busine

Case Studies How Stripe Built Kai, its Company-Wide AI Agent, on Deep Agents Sofia Sulikowski August 3, 2026 10 min Go back to blog Create agents Create agents Share Stripe is the global payments and financial infrastructure platform used by millions of businesses. To support the constant shipping and iterating of products at scale, they’ve built AI tooling that helps employees across Stripe be more productive. Stripe’s AI platform team is responsible for the stack that powers all the AI applications at the company. Their most visible product is Stripe’s Knowledge AI Platform , also known as Kai, a company-wide productivity agent built on the LangChain/LangGraph stack and the Deep Agents agent harness. The two-minute video below covers how Stripe built Kai in one week on Deep Agents. Building an in-house agent harness As agentic AI adoption accelerated, engineering teams across Stripe began building orchestration layers on top of their existing Ruby and Java stacks. Integrating these systems with Stripe’s internal infrastructure was relatively straightforward, but building a reliable, production-quality agent harness introduced additional challenges. Effective agent systems require more than connectivity. They also need strong performance, robust evaluation, and the ability to handle complex tasks consistently. Teams often found that their initial implementations worked for simpler use cases but needed further investment to deliver dependable results at scale. With Claude Code’s launch in late 2024, suddenly every Stripe employee wanted to build agents. But for non-engineers, the terminal, data access, and security components were significant barriers. Sharadh Krishnamurthy, Engineering Manager for the Agent Foundation team, and Anupam Upadhyay, Staff Software Engineer, saw an inverse approach: instead of pushing non-technical employees toward developer tooling, what if you met them where they were, with something purpose-built? In other words, "What if everybody had an always-on, production-ready assistant?" The answer became Stripe’s Knowledge AI Platform. A context-aware AI coworker for every Stripe employee Stripe’s Knowledge AI Platform is available to every employee. It is purpose-built for the work most Stripes actually do—synthesizing data, brainstorming, drafting documents, analyzing trends, and collaborating across functions—all in a single session-based interface that connects to Stripe's internal data warehouse, Slack, and Google Suite. A user starts a session, interacts through chat, and Kai produces artifacts, reports, dashboards, or documents that live alongside the conversation. As the chat continues, the artifacts evolve. It operates like a coding agent for non-engineers. As opposed to generic AI assistants, Kai comes preloaded with Stripe context through tools and skills. It knows how Stripe works and understands the company's internal systems, data sources, and norms. Users don’t need to explain their job function or their company to Kai before every task. And experts in various parts of the company contribute their domain knowledge through a library of skills with over 1000 skills from over 100 teams. Deep Agents gave Stripe the agent foundation, so the team could focus on their domain-specific workflows Kai's foundation is Deep Agents, LangChain's open-source agent harness. Deep Agents provides the foundation that wires together the tool-calling loop, middleware composition, streaming, and state management that would otherwise take months to build and harden from scratch. Stripe's layered architecture includes: Deep Agents as the base : The foundational layer handles all LLM interaction primitives, including request management, agent execution, and middleware composition. A Stripe-specific harness built on Deep Agents : This middle layer integrates Kai into Stripe's security posture, infrastructure, and internal services to create an opinionated environment. Configuration layer : On top of the harness, teams can configure their own custom Kai agents, specialized agent instances with different skill sets, behaviors, and personas, without touching the underlying harness. The Kai UI : The product experience that most Stripes interact with, connecting down through all three layers. "The Deep Agents layer solves all the non-Stripey problems, so that we can focus on solving the Stripey agent problems," explained Sharadh. "You can take a bunch of middleware off the shelf. The composable skill patterns, the composite backend, it provides the right structure, but still enough flexibility." What made Kai production-ready Anupam built Kai’s initial version in one week. The Deep Agents middleware that unlocked that speed were: Filesystem middleware : Kai is a production service running in the cloud, not a local process. Stripe built a virtual filesystem backed by S3 so that agents can read, write, and reference files as context across turns. Filesystems work well for LLM context because they turn that context into something the model can inspect, update, and organize over time. Stripe wraps every sandbox execute call with a "sync in / sync out" pattern: before execution, all relevant files are materialized into the sandbox; after execution, any new or modified files are synced back out to the virtual filesystem. As a result, the agent, and the LLM driving it, experience a coherent, persistent file environment across the full lifetime of the session. Sandbox middleware : Kai runs code execution through a sandboxed environment for two categories of work: analytics (writing and running Python to query data, produce charts) and processing arbitrary file formats (PDFs, presentations, structured documents). The sandbox is exposed to the agent as a tool, not as the execution environment for the agent itself. The agent runs outside the sandbox and calls into it, keeping execution boundaries clean and preventing a class of security concerns with LLM generated code. Summarization middleware : Essential for managing context across long-running, multi-turn sessions where accumulated context would otherwise degrade performance or hit model limits. Kai is especially good at multi-turn long sessions. To make the best use of available LLM context while balancing cost, Kai leverages various tuning knobs available via deepagents library, like summarization threshold, summarizer model and output size, etc. Most users run Kai sessions intermittently, so avoiding cache misses of large context size helps control costs. Skills: how Kai navigates hundreds of internal tools and skills Kai operates across hundreds of internal tools and workflows using skills. Skills in Deep Agents are structured, agent-executable modules. Each skill encapsulates how to accomplish a specific task, what tools to load, and how to approach a category of work. Stripe follows a federated approach where individual teams own and maintain their own skills. The base Kai agent ships with a set of foundational skills covering broad Stripe navigation, and additional tiered skills are loaded based on user profile and the specific Kai agent configuration in use. For example, a user in sales ops gets a different skill set than a user in finance; a user-level profile layer allows individuals to add more skills on top of their function defaults. With 500+ internal MCP tools available and a growing skills library, Kai cannot load everything into context. Agent Skills ’ allowedTools lists drive dynamic tool loading, creating a two-pass system where skill selection gates tool context, rather than loading all tools upfront. The selection relies on the LLM which already has the relevant context. "The LLM is spending effort figuring out which skills to load, so that is what we then rely on to load the relevant tools as well," explained Anupam. Certain foundational skills are pinned, persisting regardless of what the model decides to load or unload. This ensures consistent Stripe context and policy behavior at all times. With a 1024 character limit on frontmatter, the team discovered quality degradation of frontier models with more than 150 skills when combined with their system prompt. The number of skills remains a challenge, and the team is actively working towards better solutions for the future. 1 engineer, 1 week: how Stripe's Python bet paid off immediately Stripe spent over a decade building internal tooling, security layers, and deployment support around Ruby and Java. Adopting a Python-native stack meant rebuilding Stripe's internal service scaffolding around a new language, which was a large investment. Kai proved the ROI by demonstration. One engineer built Kai in a single week. The primitives from Deep Agents meant that the hard agent infrastructure was already solved. That speed proved that the time spent building internal Stripe support for Python was paid back immediately. "Kai completely solidified people's belief that Deep Agents is the way to go," emphasized Chrissie,

FDE 判断

这条信息对 FDE 的直接价值在于提醒交付人员持续关注模型、智能体与企业流程之间的变化。面对类似项目,应先确认客户的真实业务目标、数据边界、权限条件和验收指标,再选择工具并用最小场景验证结果,避免只追逐功能更新。