AI Engineer

The Agents Were Fine. Everything Around Them Broke. - Joey Wang, Harvey

1855 summary words 8 min summary Watch video

Start with the signal

8 min read

Summary

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: As agent use scales, model capability is no longer the primary bottleneck; the durable product is the operational harness that gives any agent secure access, shared context, reliable follow-through, capacity controls, and a path to merge.
  • Why it matters: This is a concrete, high-scale account of an internal agent control plane encountering the exact orchestration failures—duplicate work, resource starvation, merge bottlenecks, and runaway automations—that emerge once agents can launch work autonomously.
  • Best use: Use it as a design review for an agent platform: prioritize post-generation workflows, universal callable controls, queue fairness, deduplication, budgets, and merge-system capacity before expanding autonomous execution.

Executive Summary

Joey Wang describes Spectre, Harvey's cloud agent platform, as a layer beneath interchangeable coding agents rather than a competitor to Cursor, Claude Code, Codex, or ChatGPT. Spectre provides the shared operational environment those agents need: repositories, credentials, real-stack testing, tickets and alerts, project-level instructions, PR workflows, auditability, and merge controls. Harvey reports more than 10,000 agent-authored PRs and roughly 460 users in the prior month, with usage expanding beyond code into Slack-based data questions and marketing-content production.

The central operational insight is that writing code is only the beginning. The highest-value workflow is the follow-up loop: after an agent opens a PR, it should observe CI failures, attempt fixes, validate against a realistic stack, post evidence to the PR, and place the result into the normal human review queue. When Harvey enabled this broadly in early October, four out of five agent PRs merged into its backend had passed through that loop.

Making every UI action callable by agents and CI unlocked much higher throughput, but it also exposed control-plane failures. An alert storm started roughly 900 duplicate tasks in four hours; later, a single engineer launched about 950 command-line tasks in three hours, filling the cluster and starving all other work. Harvey addressed these with alert deduplication and a fair-launch queue, but a subsequent 60% jump in company PR volume made the merge queue itself the next bottleneck.

The talk is especially useful because it treats autonomous agents as a systems-design problem rather than a prompting or model-selection problem. Wang's practical rules are to own the work after code generation, expose every meaningful action as an agent-callable API, and impose limits on what users, alerts, and automations can launch. He also flags unresolved questions: proving PR correctness before human review and maintaining merge throughput when agents continuously create work.

Key Takeaways

  • Claim: A scalable agent platform should be agent-agnostic and serve as the cloud execution/control layer beneath users' preferred coding interfaces. | Evidence: Spectre is designed to be invoked from Cursor, Claude Code, Codex, ChatGPT, Slack, local terminals, sandboxed agents, and CI rather than rebuilding secrets, real-stack testing, and workflow support separately inside each tool. | Implication: Avoid coupling core workflows to a single frontier-agent UI. Build stable execution, credential, and policy interfaces that multiple present and future agent clients can call. | Caveat: This approach requires a sufficiently capable shared platform for identity, secrets, repository access, environment provisioning, and policy enforcement; merely adding integrations does not create that layer.
  • Claim: The key difference between an agent that writes code and one that delivers value is ownership of the post-code workflow, especially automated CI follow-up. | Evidence: Spectre can take an alert, generate a fix, create a real copy of Harvey's stack, post proof on the PR, read CI failures, push follow-up fixes, and send the completed PR into the ordinary review queue. After a broad rollout in early October, four out of five agent PRs merged into Harvey's backend had gone through this follow-up loop. | Implication: Prioritize closed-loop execution—validate, observe failure, remediate, and revalidate—over maximizing initial code-generation quality alone.
  • Claim: Shared project context and audit trails are required to make many different agents behave consistently and safely. | Evidence: Spectre projects store team guidance such as how to test a difficult service and which flags should not be changed; team members can pin trusted skills, and the platform records who ran what. Every agent assigned to a project reads the same context. | Implication: Treat project instructions, trusted capabilities, execution provenance, and common checks as platform primitives, not knowledge distributed across individual engineers' laptops. | Caveat: Written guidance can standardize behavior but does not itself guarantee enforcement; critical restrictions still need runtime checks and permissions.
  • Claim: Every meaningful action should be exposed as a callable primitive, because agent adoption accelerates when agents can orchestrate the platform directly rather than rely on a human UI. | Evidence: Harvey adopted the rule, "If a person can click it, an agent can call it," covering task start, follow-up-loop activation, auto-merge arming, and page publishing. By October, the CLI was starting about 6,500 tasks monthly, and some users started hundreds of tasks without opening the web application. | Implication: Design the UI as one client of the control plane; expose first-class APIs/CLI tools so local agents, cloud agents, workflows, and CI can compose the same operations. | Caveat: Universal programmability also makes accidental or excessive fan-out much easier, so these APIs must be designed together with quotas, idempotency, and admission control.
  • Claim: At-scale agent systems fail through workload amplification and resource contention, not only through bad model outputs. | Evidence: A release bug generated hundreds of workspace alerts; a workflow tagged Spectre on every alert, creating roughly 900 agents pursuing the same issue in four hours. Later, one engineer issued about 950 CLI tasks in three hours, filling the cluster and blocking everyone else's work. | Implication: Build deduplication, idempotent investigation keys, per-source launch caps, tenancy isolation, and backpressure before allowing alerts or agents to create unbounded work. | Caveat: Harvey changed multiple factors while improving reliability, so Wang cannot attribute all gains to one specific fix.
  • Claim: Fair scheduling and visible admission control are product features, not backend implementation details, once humans and autonomous workloads share capacity. | Evidence: Harvey introduced a fair-launch queue: each task receives a visible place in line, interactive users receive priority, and users receive a fair share while borrowing spare capacity. In a reported 300-task burst test, task-launch latency fell from nearly 2 seconds to 70 milliseconds. | Implication: Separate interactive and background workloads, make queue position and scheduling policy legible to users, and prevent a single laptop, automation, or tenant from monopolizing shared compute. | Caveat: The platform's overall completion rate improved but was not fully solved; Wang notes that there was still room to grow.
  • Claim: Success in agent code generation will shift the bottleneck downstream to integration and merge capacity. | Evidence: At the end of October, Harvey's PR volume rose about 60% in one month. Merges that formerly took 15–30 minutes exceeded an hour, and the merge queue repeatedly had to be disabled. Wang says Harvey has not yet solved this problem; only about one merge in 20 includes proof that it works before a human reviews it. | Implication: Do not measure agent productivity solely by tasks or PRs produced. Instrument review load, CI throughput, integration failures, merge-queue wait time, and evidence quality as primary system constraints. | Caveat: This is explicitly an unresolved problem at Harvey, not a validated architecture recommendation.

Detailed Brief

Observed adoption and expanding work types

  • Claims: Once a shared harness exists, users bring work types the platform team did not initially plan to support.; The fastest-growing source of work was autonomous automation rather than a person initiating a request.
  • Evidence: Harvey reported more than one agent starting per minute on average, around the clock, and approximately 460 distinct users in the previous month.; Usage moved beyond coding: users asked data questions in Slack, and a marketing user supplied a prototype and talk track to request a product-video storybook.; About 110 people had automations running in the prior month; examples included responding to an alert, reviewing a PR, and drafting a post.
  • Caveats: The examples demonstrate internal adoption and breadth, not externally validated quality, ROI, or safety performance for each non-code workflow.
  • Implications: Plan for general work orchestration rather than a narrowly branded "coding-agent" product once shared identity, execution, and tool access are available.; Measure workload mix and autonomous-originated work separately, since automation can become the dominant driver of demand.

Guardrails and infrastructure lessons

  • Claims: Runaway automations need automatic shutdown and bounded authority from day one.; Infrastructure overhead can dominate model inference time.
  • Evidence: Harvey configured automations to disable themselves after five consecutive failures and allowed them to carry a budget or expiry date.; Repository checkout averaged more than one minute per task, which Wang says exceeded the time spent on model thinking; the proposed remedy was keeping repository copies available on machines for tasks to borrow.
  • Caveats: Persistent repository copies introduce freshness, isolation, storage, and secret-handling concerns that the talk does not address.
  • Implications: Give autonomous jobs explicit stop conditions, spend limits, expiration, and failure circuit breakers.; Profile the full agent lifecycle—checkout, environment boot, dependency setup, test execution, CI, and merge—not just model latency.

Notable Concepts & Terms

  • Spectre: Harvey's internal cloud agent platform and control plane, intended to run beneath multiple interchangeable agent interfaces.
  • Harness: The surrounding operational system for repository access, secrets, environments, policies, testing, PR creation, review, and merging; Wang argues it becomes the actual product.
  • Follow-up loop: An automated PR-completion workflow in which the agent reads CI failures and iterates on fixes until a PR is ready for standard review.
  • Projects: Shared contextual workspaces that provide agent-readable team instructions, trusted skills, and execution history.
  • Fair-launch queue: An admission-control scheduler that gives tasks an explicit queue position, prioritizes interactive work, and prevents a single workload source from consuming the cluster.
  • Alert deduplication: Joining repeated alerts to an already-open investigation instead of spawning a new agent task for every alert occurrence.
  • Automation guardrails: Failure circuit breakers, budgets, and expiry dates that constrain scheduled or event-driven agents operating without active human supervision.
  • Merge bottleneck: The downstream integration constraint created when agent-generated PR volume grows faster than CI and merge-queue capacity.

Operator Notes / Why Ken Should Care

  • Audit whether every agent-triggerable workflow has idempotency keys and deduplication logic; prioritize alert- and event-originated pathways.
  • Define an explicit workload-admission policy before increasing parallelism: per-user, per-project, per-automation, and global concurrency limits; reserve capacity for interactive tasks.
  • Add budgets, TTLs, and consecutive-failure shutdown rules to all unattended automations, with clear ownership and alerting on automatic disablement.
  • Make post-PR completion a product metric: track CI-fix iterations, validation evidence attached to PRs, review wait time, merge-queue delay, and integration failure rate.
  • Treat agent clients as replaceable. Consolidate secrets, policy checks, audit logs, execution environments, and scheduling behind stable platform APIs rather than inside a preferred IDE or model vendor.

Source/Metadata

  • Title: The Agents Were Fine. Everything Around Them Broke. - Joey Wang, Harvey
  • Transcript words: 1828
  • Duration seconds: 777
  • Timestamp note: No usable timestamps or chapters were present in the supplied transcript.
Full transcript 1811 words · 8 min read
0:00

Let me start with one number from last month. On average, more than one agent has started on our platform every single minute, day and night. And honestly, the agents were the easy part. Hi, I'm Joey. I build Spectre, the cloud agent platform we built inside Harvey. After 10,000 PRs, the biggest lesson I can share is this. The thing that broke was an agent. It was everything around them. So what does one submit add up to? 10,000 PRs that an agent wrote. And it isn't just a team playing with a toy. Last month, about 460 different people at Harvey used it. And over the summer, it stopped being only a book code.

0:54

People started asking a data question in Slack and getting answers back. My favorite. Recently, someone on our marketing team dropped a prototype and a talk track into Slack. And asked for a storybook for a product video. Once the harness exists, people bring the work that you never planned for. So, a promise upfront. This is not a talk about models, evals, or leaderboard. This is talk about hardness. Odd things around the model. Checking out the repo, holding the key, opening the PR, getting the merge. When we first wrote about Spectre back in April, we put it like this. At some point, a hardness becomes the product.

1:43

Now whenever I tell people this, I get the same question. Why on earth would you build this when Cloud Code or Cursor already exists? My answer. We don't compete with them. We run them. And here's how I see it, as my own view. Agents on your laptop are powerful, but they don't scale. You can realistically run 5 to 10 of them. Plus that, you need Cloud. And Cloud needs our secrets, our real stack, our alerts and tickets, one set of rules and enough capacity that nobody gets starved. No single tool owns that for us, so we build layer. And that layer is exactly what broke. So I want to tell you three stories today. How we stopped competing on writing code.

2:33

How we let any agent drive. And we're broke, once they did. The first story starts with the question we keep hearing. More of our engineers were using Cursor and they ask, How do I get our secret there? How do I test against our real stack? We could have rebuilt all that inside Cursor. And then again for next two. And the one after that. Instead, answer became one sentence. Just ask Cursor to use Spectre. And that's really the whole idea. People will always have a favorite agent. And the favorite keeps changing. So pick yours. Cloud code, Codex, Cursor, ChatGPT. Slack are your own hands. Start on your laptop. Push the session to the cloud. Pull it back.

3:25

That's how Spectre sits underneath all of that. Because once the code was written, the real work starts. Picture a PR state. Alert files in Slack at 2 in the morning. An agent picks up. Nobody type a thing. It writes a fix, spins up real copy of our stack, and posts the proof on the PR. When CI fails, the follow-up loop reads the failure and pushes another fix while everyone still sleeps. By morning, the PR sits in one review queue under the same rule as other PR, whichever agent wrote it. The owner gets a notch. And only once their working day starts. And once approved, an agent can auto-merge it.

4:17

If you only build one of those stages that I described, build the follow-up loop. We switched on for everyone in early October. And that month, 4 out of 5 agent PRs merged into our backend PR had been through it. That's the difference between an agent that writes code and an agent that finishes the job. And then there's the knowledge. Every team has that one person who knows exactly how to test the tricky service, which flag you never touch. And that knowledge lives in their hat or their laptop. So we gave it hope. Projects. People write down what matters. Adrian write down what they learn. Team pins the skills they trust. And there's a record of who ran what.

5:09

Any agent working in the project reads the same page. My personal view. Whichever agent you pick, the audit trail and the checks should be the same. The second story is about rule. Back in May. If you want Spectre to do something, you open a browser tab or tag in Slack. The whole month, exactly one task came out from terminal. So we made a rule. If a person can click it, an agent can call it. Start a task. Turn on the follow-up loop. Arm auto-merge. Publish a page. Or from CLI. Which means your laptop agent can call it. An agent inside the sandbox can also call it. Even CI can call it too. And then people ran with it.

5:59

By October, the command line was starting about 6500 tasks a month. The web app didn't shrink. Everyone else just grew around it. Task started from the terminal or merging more peers than tasks started in browser. And a new kind of user showed up. People who started hundreds of tasks a month and never opened the app at all. And this is where it gets fun. In October, I had a big task. So I bought a call code session and asked to be the coordinator. It split the tickets into 10 different milestones. Get one for me and the rest to Spectre with hundreds of tasks. Each has its own sandbox to validate end-to-end.

6:47

Then at the end of October, our IT gave everyone tragedy beauty dots. Mine now watch Spectre for me. It lists the questions Spectre is waiting on, draft my answers, and once I say yes, send them back. I actually DM to my friends like that. I just use cursor, cloud code, or whatever to spam Spectre now. Well, that's the dream, but it's also the problem. A quick detour. When we look at where our task time actually went, the slowest step wasn't model thinking. It was good. Just checking out every repo we own took over a minute on average. The fix would keep a copy of every repo on every machine. And let each task borrow it. The third story is the one where it broke.

7:40

In mid-August, a release goes out with a bug. That bug triggers the alert that files once per workspace. So one bug becomes hundreds of alerts, all landing in one single Slack channel. Someone has set up a workflow that tags our agent on every alert. And every tag started a task. On a normal day, those tasks start at about 50 tasks. That day, in about 4 hours, they started around 900. 900 agents are chasing the same bug until there wasn't room left for a single note. The fix was almost boring. A repeat alert now joins the investigation that's already open. Two months later, it happened again. And this time, it wasn't a bug.

8:30

On October, the engineer did exactly what we've been asking everyone to do. Handwork to Spectre. About 950 tasks from the command line. In about 3 hours. Nothing in our platform can work. The cluster filled up and everyone else work set in line behind one laptop. That's not a user problem. That's our problem. Four days later, we had a real fix. A fair launch queue. Now, starting a task gives you a place in line. And the dispatcher started when there's room. People sitting at the keyboard goes first. Everyone gets a fair share and can borrow more than the cluster is quite. And whenever you start a task, you can see a place in line.

9:23

When we hit it with a 300 task burst in low task. The task lead went from almost 2 seconds to 70 milliseconds. So, did it work? When it's the best day of every week. Back in August, two certain tasks and about one in 10 didn't finish. Then in November 4th, more than twice that. It's much better in the finish line. But we still have some room to grow. I will be honest. We changed several things at once. So, I cannot tell you which fix mattered the most. But the burst kept getting bigger. And the platform kept up. And just when that was under control, the model neck moves. At the end of October, our dev platform team raised the alarm.

10:16

PRs across the company had jumped around 60% in a single month. A merge that used to take 15 to 30 minutes was taking over an hour now. And the merge queue kept having to be switched off. So now, a PR rebates onto main. We run CI and merge if it's green. If main breaks, everyone CI breaks with it. Ultimately, we haven't cracked this one yet. But before I go, there's one more thing. While we were busy fixing off it, something else was quietly growing. Most of what I've been showing you start with the person asking. The fastest growing source of the work on Spectre doesn't. These are automations. Agents that wake up on schedule, on an event, and just do the work.

11:11

TrialJet alert, review the PR, write the post. Last month, about 110 people had automation running. And we learned to give them a guardrail on day one. If one fails five times in a row, it switches itself off. And it can carry a budget or expiry date. Because when no one's watching, an agent can start thousands of tasks too. So here's what I'm chasing next. And I don't have an answer yet, honestly. What if every Slack channel had its own agent that never locks off? One that follows the competition and start work on its own? What if every PR proof it works before a human even look at it? Today, only one merge in 20 carries that kind of proof.

12:03

And how do you merge when agents never stop opening PRs? Ask me again in six months. I will tell you what broke. If you're building something like this when you work, here's three things I'd do again. Own what happens after the code is written. Make every action something an agent can call. And cap what an agent, human, or alert can start before they find out what they can do with it. And one last thought. That's my own view. Engineers can write code with whichever agent they like. The work that's lost is the harness that runs it, checks it, and get it merged. Thank you so much for watching. Come find me on linking if you're building similar things.

12:54

Come find me on2015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015201520152015

12:56

Thank you.

Reading tools

Type to find a passage

Appearance
Ask this transcript

Add a note