---
title: "How Stripe Built Kai on Deep Agents in 1 Week"
description: "Stripe's company-wide productivity agent Kai was built by one engineer in a week on LangChain's open-source Deep Agents harness."
url: "https://swe.quest/articles/how-stripe-built-kai-on-deep-agents-in-1-week-5e7920645288a8b2"
canonical: "https://www.langchain.com/blog/how-stripe-built-their-knowledge-ai-platform-on-deep-agents"
source: "LangChain"
published: "2026-11-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-agents","llms","system-design","developer-productivity"]
---

# How Stripe Built Kai on Deep Agents in 1 Week

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-11-10, 9 min read, Case study. Original: [https://www.langchain.com/blog/how-stripe-built-their-knowledge-ai-platform-on-deep-agents](https://www.langchain.com/blog/how-stripe-built-their-knowledge-ai-platform-on-deep-agents)

## Summary

Stripe's company-wide productivity agent Kai was built by one engineer in a week on LangChain's open-source Deep Agents harness. It uses a layered architecture: Deep Agents at the base, a Stripe-specific harness for security and infrastructure, a configuration layer for custom agents, and the UI on top. Key mechanics include an S3-backed virtual filesystem with sync-in/sync-out around sandbox calls, a sandbox exposed as a tool rather than as the agent's runtime, tunable summarization for long sessions, and skill-gated dynamic loading of 500+ MCP tools. Model quality degraded beyond about 150 skills, so the team is moving toward RAG or classifier prefiltering ahead of LLM skill selection, while adoption reached 83% weekly usage across the company.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- agent harness concepts
- Model Context Protocol

## Keywords

Deep Agents, LangChain, LangGraph, Kai, Stripe, MCP, Agent Skills, S3

## Related posts

- [The five components of building a "company harness"](https://swe.quest/articles/the-five-components-of-building-a-company-harness-32441ca325d05592.md): LangChain · 2026-11-17 · Easy · 5 min read · AI agents, Identity & auth, Sandboxing & isolation
  Internal company agents at LangChain (GTM Agent, OpenSWE, Content Studio) converge on five primitives for a multiplayer "company harness": living in Slack (with thread breakouts and a custom UI for backlogs), identity handled per tool as either on-behalf-of the user or fixed service credentials, two-tier global and per-user memory, sandboxed code execution with a secret proxy for authenticated requests, and scheduled or event-triggered runs.
- [How We Built LangChain’s Paid Media Agent](https://swe.quest/articles/how-we-built-langchain-s-paid-media-agent-c859415582fca684.md): LangChain · 2026-10-29 · Medium · 18 min read · AI agents, LLMs, System design, Ads
  LangChain's Paid Media Agent is a Slack-resident Deep Agent that merges ad-platform data with warehouse pipeline data, produces weekly per-platform PDF reports, answers follow-up questions, and proposes campaign changes for human approval.
- [Revamping Skills in Deep Agents](https://swe.quest/articles/revamping-skills-in-deep-agents-04e79ba47ae89b3f.md): LangChain · 2026-10-08 · Medium · 7 min read · AI agents, LLMs, Python
  Deep Agents now supports binding tools to Agent Skills, pinning skills at runtime, and reloading skills mid-thread, extending progressive disclosure for libraries that grow to thousands of skills.
- [Open SWE: An Open-Source Framework for Internal Coding Agents](https://swe.quest/articles/open-swe-an-open-source-framework-for-internal-coding-agents-1b0f7521a5a00040.md): LangChain · 2026-10-13 · Medium · 8 min read · AI agents, AI for coding, Open source, Sandboxing & isolation
  Open SWE is an MIT-licensed framework for internal coding agents, built on Deep Agents and LangGraph.
- [Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents](https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321.md): LangChain · 2026-10-08 · Medium · 6 min read · AI agents, Payments & fintech, Identity & auth, API design
  Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
