# Why We Rebuilt Microsoft Office From Scratch for AI Agents - Yijia Liang, Compound AI <!-- ref: @content/youtube/aie/2026-11-01-why-we-rebuilt-microsoft-office-from-scratch-for-ai-agents-y version: 1 updated_at: 2026-11-01T13:23:41.283Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=v0UkV5qS9E4)** *Synthesized from Yijia Liang's talk on AI Engineer, 2026-11-01.* Yijia Liang is a former Vice President at Coatue, where she spent about 3 years on late-stage private software investments, and is now building Compound AI. This is a solo conference talk with no host. ## Core Thesis Yijia Liang argues that the conditions behind the recent rise of personal agents (reliable background execution, proactivity, and integration with email and calendar) do not carry over to institutional finance. Deal work there involves multi-person teams, multi-week deliverables, and data rooms with tens of thousands of files. To make long-running agents viable in that setting, Compound built three things: multiplayer agents that join team email threads, a headless Office suite rewritten from scratch, and swarm-based context handling for very large file sets and workbooks. ## Key Insights - **Why personal agents took off, according to Compound's internal analysis:** (1) background agents and computer use became reliable enough to book restaurants or flights; (2) agents became proactive, for example reminding you of an anniversary or buying the flowers outright; (3) agents integrated with the context that matters most to people, meaning email, Drive, and Calendar. - **Why those factors fail in finance:** - The finance version of a "background task" means turning a data room into a full set of investment committee (IC) models, slides, and memos. That process normally takes **4 weeks** and several review rounds, and the goal is to compress it into a few days. - Managing directors do not want proactive agents burning tokens without being asked. - The relevant context can be a **15,000-file data room** or SharePoint holding petabytes of unstructured data built up over a firm's **40-year history**. - **Single-user AI doesn't fit deal teams.** Institutions that have deployed Claude or ChatGPT still use them in single-user plugins or web apps. Analysts then upload outputs to email or Teams to get feedback. Compound's approach puts every relevant person on one thread with one agent, so the agent holds shared context across the whole team. - **Every agent gets its own mailbox.** Finance work runs through Outlook, often in email chains of **20+ messages**, so each Compound agent has a built-in mailbox, much as people text each other on iMessage or WhatsApp. Liang says this is harder than connecting an inbox: - **Authentication:** every participant in a thread needs read/write access to the agent, and NDAs make privacy critical. - **Human-like behavior:** when several people reply in quick succession, the agent should not send a confirmation for each one. It needs deliberate delay so it doesn't spam the group. - **Off-the-shelf Office tooling failed evaluation.** Compound tested Excel, PowerPoint, and Word desktop plugins, computer-use agents on virtual machines, open-source packages like **OpenPyXL**, and commercial engines. None met its needs for running many tasks in parallel. - **The rebuild:** Because coding agents have made software much cheaper to write, Compound ran agents in loops with the objective of recreating Office. The effort consumed **1.5 trillion input/output tokens** and produced **over 8 million lines of code**. - For Excel, the team started from the open-source **IronCalc**. Real Office served as the oracle, and agents compared outputs against files scraped from the internet and files the team created. The result was about **800,000 lines of Rust**. - The same loop with Office as judge was repeated for PowerPoint and Word. - **Rust renderers** check that output is pixel-perfect, so what users see in Compound matches what opens in Office. Liang says firms only trust what they can open and send. - **Performance case for a headless engine:** Desktop Office is tied to a single processor, while headless engines can run tasks in parallel. Liang cites converting a **20 MB Excel file 4× faster**. Her view is that scaling agent work through desktop Excel and PowerPoint is the wrong path. - **Owning the editor enables a better review interface.** Liang built the talk's slide deck in Compound. She generated a first draft, then left comments on individual formatting elements, passing along what she had learned at Coatue about what makes a slide good. The same comment system works for teams; she says **a team of five can review a 100-page deck in a day** instead of spending weeks in a room. - **Owning the render-test-debug loop.** OpenPyXL has no renderer, so formatting checks come down to guessing or parsing cell colors and fonts. Microsoft's own interfaces expose very little. With its own engine, Compound can run validation loops much more often on multi-hour tasks such as building complex models. - **Breadth of context: swarms instead of vector databases.** For data rooms with **15,000+ files**, some over **20 MB**, Compound borrows from coding agents: - A lead agent scans the file directory. - Swarms of sub-agents read files with grep or similar methods and report findings. - The loop repeats until the result is good enough. - Every finding is tied to a quote in the source document so analysts can trust the numbers. - Liang says vector indexing is only needed for very specific use cases. - **Depth of context: engine-native workbook processing.** Finance users complain about **30 MB** models with **2 million formulas** and **five sensitivity tables** that take **5 minutes** to recalculate. Off-the-shelf ChatGPT or Claude would write OpenPyXL code that dumps the whole workbook into context, which is slow and expensive. Compound's engine parses the model and returns it in a compact, model-readable format, and exposes a richer set of APIs and tools to the agent. - **The stack Liang describes:** 1. Connected sources, with prebuilt connectors to SharePoint and Outlook. 2. Cited conclusions grounded in source documents. 3. Embedded firm-specific preferences: how a model should be built and what a deck should look like. The aim is for people to spend their time on judgment calls, such as whether it's a good deal, whether the numbers tie out, and whether the model looks right. - **Autopilot vs. copilot.** Some finance tasks, like compensation distribution, are already handled well by off-the-shelf products. Others, like a 50-page IC deck or a model built exactly to a PE or hedge fund professional's preferences, are still copilot-style, with humans deeply involved. - **Liang's analogy to coding:** She compares finance today to coding after the release of **Opus 4.5 last December**. Developers moved from next-line suggestions to delegating ambitious tasks, trusting the output once enough tests and checks were in place. She believes finance is at a similar inflection point. Her picture of the goal is a deal team that can trust every output from a data room and cover **10×** more deals. ## Actionable Takeaways 1. **Evaluate in order before building document tooling for agents:** desktop plugins, computer-use agents on VMs, open-source libraries (e.g., OpenPyXL), then commercial engines. If none support parallel, verifiable execution, consider a headless engine. 2. **Rebuild software with an oracle loop:** start from an open-source base (Compound used IronCalc for Excel), use the real product as the judge, compare outputs on a corpus of real-world and synthetic files, and add renderers (Compound's are in Rust) for pixel-level checks. 3. **Give each agent its own email identity** when it works inside team threads. Enforce per-participant read/write authentication, and add response delay so it doesn't send a confirmation for every message in a burst. 4. **For large file sets, skip vector indexing by default:** have a lead agent scan the directory, fan out sub-agent swarms that read files via grep, loop until satisfied, and require every finding to cite a quote in its source document. 5. **For large workbooks, don't dump raw cells into context.** Parse the workbook with an engine and expose a compact representation and targeted tool APIs to the model. 6. **Use inline comments for review:** generate a first draft, then comment on specific elements so agents can revise asynchronously and multiple reviewers can work in parallel. 7. **Treat autopilot as earned:** move tasks from copilot to autopilot only once rendering checks, validation loops, and source citations make outputs trustworthy. ## Notable Quotes > "Your managing director doesn't really want a rogue agent running around doing a bunch of things and burning tokens." — Yijia Liang > "We ran agents in multiple loops, spent 1.5 trillion I/O tokens, and over 8 million lines of code to rewrite Office from scratch." — Yijia Liang > "These firms only trust what they can upload and send." — Yijia Liang > "If you try to scale this with Excel and PowerPoint, I think you're going down the wrong path." — Yijia Liang > "With your own engine, you actually own the cycle of correct rendering, testing, and debugging." — Yijia Liang > "You no longer need to index everything in a vector database unless it's for a very specific use case." — Yijia Liang --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*