---
title: "Long-Running AI Agents Need a Standing Brief"
description: "Long-running AI agents work toward a goal for weeks, not one turn. Cognition's next shift is jobs over tasks — and a job needs a brief that outlives the session."
author: "MDflow"
date: 2026-11-25
reading_time: "17 min"
canonical_url: https://mdflow.cz/blog/long-running-ai-agents-standing-brief
md_url: https://mdflow.cz/blog/long-running-ai-agents-standing-brief.md
---

# Long-Running AI Agents Need a Standing Brief

*Published November 25, 2026 · 17 min read*


A 40x increase in merged pull requests over about twelve months, against 2.7x growth in engineering headcount. That is the chart **Walden Yan**, co-founder and chief product officer at Cognition, opened with in a talk published on the [AI Engineer](https://www.youtube.com/watch?v=U92J5mCDLMc) channel on 18 November 2026. The interesting claim is not the multiple. It is what Yan says produced it — almost none of which is prompting. And it is the question the talk leaves open: what the **long-running AI agents** doing that work are supposed to read once the session that briefed them is gone.

The headline most teams take from a number like that is "buy a coding agent". The talk says the opposite: you have to go change the way you build. And the most portable change in it has nothing to do with Cognition's infrastructure budget.

> **TL;DR** — Cognition's throughput came from infrastructure, not prompting: every service running locally under Docker Compose, machines rebuilt hourly, agents maintaining their own testing skills. The shift Yan says comes next is from giving agents *tasks* to giving them *jobs* — standing goals an agent works toward for weeks, picking its own steps and escalating only what needs a human. A job that outlives the session needs its goal, metric definition, escalation boundary and decision log written somewhere durable the agent can read and append to — a markdown workspace like [MDflow](https://mdflow.cz) is one answer. [Start free](/login).

## What Cognition actually changed

**The 40x is downstream of plumbing, not of better prompts.** Yan's account of the "software factory" is the familiar one — by default everything is self-driving, pull requests go from initial bug report to merge and monitoring without a human, and human judgment arrives as an escalation. What makes the talk useful is the list of things that had to be true first.

- **Testing moved off the cloud.** Where they used to test against staging environments, live servers and a staging database, they migrated every service to run locally with Docker Compose, with mocked versions of every third-party service, all inside a single virtual machine every Devin instance has access to. No coding agent at the company needs to touch live services to test a change.
- **The machines are disposable and current.** Those VMs are rebuilt every hour from the latest version of the code. When a build breaks — and a rapidly changing codebase breaks them — Devin is the first responder on the snapshot.
- **The agent maintains its own test knowledge.** Agents have to be taught how to test your codebase, and the way you test changes as the codebase does. Yan's point is that a cloud agent can self-maintain that loop: Devin writes and updates its own skills for testing, so the instructions do not rot in a file someone forgot to edit.
- **The org chart changed too.** Larger teams were broken into pods of two or three engineers with vertical responsibility — customer bug reports, QA, product management — each engineer running their own Linear board and sending the implementation to an agent. The explicit reasoning, from a conversation with the team in March 2026: anything that can be described and implemented can be sent to Devin, so an engineer who only picks tickets off a board and forwards them to an agent is, in Yan's words, not going to be set up for success.
- **The interface is Slack.** A customer sends a video of a bug; it is forwarded into an internal channel; Devin is tagged; it comes back with a pull request *and* a video showing the fix working. Yan's framing is that development has been abstracted to evidence — you send the proof back to the customer without opening an IDE or GitHub.

Several engineers at Cognition have moved to iPads, which Yan notes is also the more secure option, since a developer laptop is where the secrets are.

None of this is cheap, and most teams will not reproduce it. It is worth stating plainly because it is the precondition for everything in the rest of the talk: the agent can only be given a long leash because the environment it runs in is reproducible, isolated and rebuilt constantly.

## From tasks to jobs

**The shift Yan flags as next is from telling an agent what to do to telling it what you want to be true.** The example given is backend performance. The task version is a ticket. The job version is: *I want to improve the P99 latency of my application* — and the agent responds by adding the telemetry to find out where latency is today, setting up alerts for where it needs to be, breaking down every task required to move the number, creating the Datadog alerts, posting weekly reports to Slack and sending daily updates to your phone.

Note what happened there. None of the instrumentation, alerting or reporting was in the instruction. The human supplied an outcome; the agent supplied the procedure, *including the procedure for knowing whether it is working*.

Yan's generalisation is a provocation worth repeating: anything in your company you think is not measurable, find a way to measure it. Click latency. The bounding boxes of elements that shift during layout, if your application shifts. Onboarding retention. And then the rule — how much of what you do as an engineer boils down to a single number, and if it does, set an agent to optimise that number 24/7.

Two examples back it:

**Inference kernels.** Cognition was among the first recipients of Nvidia's Vera Rubin class of GPUs, for which, Yan says, kernels did not yet exist. They allocated an agent a permanent set of those GPUs and gave it the throughput number to maximise. Over about a week it found and tested strategies on its own; the best ones went to a human engineer for final approval; eight or nine things were discovered this way. Yan's reported result is throughput moving from worse than the new GB300s to significantly better than the previous GB300 class.

**An Android app nobody had the headcount for.** An engineer, Samuel, proposed using the existing iOS application as a blueprint and telling Devin to maintain end-to-end parity with it. Not as one session: permanent hooks against the codebase monitoring the iOS app, listening to the Slack channels carrying user feedback, live QA testing pixel for pixel against iOS, escalating only the decisions that mattered. Over 44 days this produced a working application, with most days carrying no human message at all and merging upward of 40 to 50 pull requests on those days.

That last example is the one that will divide readers, and it should. Our own [Why AI Software Factories Fail](/blog/why-ai-software-factories-fail) argues from benchmark evidence that models optimise for passing tests rather than for a codebase a maintainer would keep, and ends on the uncomfortable conclusion that you are still stuck reading the code. A 44-day run merging dozens of agent-written pull requests a day with barely any human messages is a direct challenge to that. Yan anticipates the objection — "it's not a slop application" — but the talk offers the throughput and the parity testing as the evidence, not a maintainability measure. Both things can be true: the environment Cognition built makes the loop safe to run, and nobody has yet shown what the resulting codebase is like to change in a year.

## Why long-running AI agents need a standing brief

**If the agent picks the steps, the only thing left for you to author is the goal and its boundaries — and that artefact has to outlive the session.** This is the gap the talk implies but does not solve. A job that runs for 44 days cannot live in a prompt. Context windows roll over, sessions end, models get swapped, and the second week's agent has no memory of what the first week's agent already tried.

What a standing brief has to carry, in order of how often its absence hurts:

1. **The goal as an outcome, not a procedure.** "Keep the Android app at parity with iOS" rather than a list of screens. The whole point of a job is that the steps are the agent's to choose.
2. **The definition of the metric.** P99 latency measured where, over what window, excluding which paths. Without this the number silently changes meaning between sessions and the agent optimises a different thing each week. This is the same failure that [enterprise agents hit with KPI definitions](/blog/why-enterprise-ai-agents-fail), and the harder version of it in [your moat is your data model](/blog/your-moat-is-your-data-model): the convention is the requirement, and it exists nowhere in your database.
3. **The escalation boundary.** What the agent may change alone, and what goes to a human. Cognition's GPU run sent the best strategies for final approval; the Android run escalated "only the most important decisions". Where that line sits is a judgment someone made once and will not remember next month. It belongs in writing, next to the goal — the written half of [approving the job rather than the step](/blog/ai-agent-approvals-job-not-step), which argues the harder case that the agreement should be immutable and enforced by the services themselves. A boundary in a document is findable, not enforced.
4. **The decision log.** Eight or nine kernel strategies were found; the ones that did not work are as valuable as the ones that did, and they are the first thing a fresh session will waste a day rediscovering. [Agent archaeology](/blog/agent-archaeology) is the same observation from the review side.
5. **Where it reports.** The destination of the weekly summary, and the format, so the report is comparable to last week's rather than reinvented.

Four of those five are prose. They are not configuration, they are not code, and no linter can check them. They are the kind of thing that currently lives in whoever set the job up, which works until that person is on holiday during week three.

## Which teams benefit most

1. **Teams running an agent against a number** — latency, cost per request, test coverage, bundle size — where the metric definition and the list of rejected approaches are the actual institutional knowledge.
2. **Parity and migration work**, where one system is the blueprint for another and the brief is a living statement of what "the same" means.
3. **Small teams with ambitions bigger than their headcount**, which is Cognition's framing of the Android case: the job exists precisely because nobody was going to be assigned to it.
4. **Anyone running agents across model upgrades**, where the brief is the only thing that survives switching the model underneath.
5. **Regulated or audited teams**, where the escalation boundary has to be written down before it is exercised, not reconstructed afterwards.
6. **Teams with several agents on the same goal** — a builder, a reviewer, a QA agent — all of which need the same definition of done.

## How MDflow fits

**The boundary first: [MDflow](https://mdflow.cz) does not run, schedule, trigger or monitor agents.** Nothing here replaces Devin, the hourly VM rebuilds or the Slack hooks. MDflow is the place the brief lives — the durable, shared, agent-readable half of the job that currently evaporates with the session.

**What lines up today**

- **Plain markdown both sides can read.** Documents are markdown files, and every shared document has a raw `.md` twin that begins with YAML frontmatter (title, canonical URL, markdown URL, visibility), so an agent fetches and cites the brief in one request. The goal a teammate reads is the goal the agent retrieves.
- **Retrieval by purpose.** A folder description is MDflow's primary ranking signal: [`mdflow_get_context`](/docs/mcp) ranks folder descriptions above folder names and document titles. A folder described as *"standing agent jobs: the goal, the metric definition, the escalation boundary and the decision log for each"* is what an agent finds when it restarts and needs to know what it is doing. See [Folder Descriptions as Agent Context](/blog/folder-descriptions-agent-context).
- **The agent writes the log itself.** The [MCP server](/docs/mcp) and the [HTTP API](/docs/api) both write as well as read — create a document, replace a body, move it — so the agent that tries a strategy and discards it can record that instead of losing it at the end of the session. See [Let AI Agents Write to Your Knowledge Base](/blog/ai-agents-write-to-knowledge-base).
- **Every agent write leaves a previous version behind.** Version-history capture covers every write path, including the HTTP API and the MCP server, with a line-by-line diff and a non-destructive restore, so a brief an agent rewrote badly is recoverable. On a personal account, `/log` is the cross-document feed that answers what agents and integrations did, with each row attributed to the token that did it.
- **One shared copy with real permissions.** [Teams](/features/markdown-for-teams) gives a Team account its own workspaces with per-member no access / read-only / read-write-delete, and Team access tokens (`mdt_…`) bound to one account and to named workspaces, capped read-only or read-and-write, re-checked against live membership on every request. The Team MCP server at `/api/team/mcp` exposes 16 `mdflow_team_*` tools including a `mdflow_team_get_context` that ranks folder descriptions first.

> **Connect Claude to MDflow:** open the [MDflow connector](https://claude.ai/directory/mdflow) in Claude's Connectors Directory, click **Connect to Claude**, and sign in — no URL or token to paste. One connection covers claude.ai, the Claude desktop and mobile apps, and Claude Code signed in with a Claude subscription. Team workspaces use an `mdt_` Team access token instead, with the bearer-header client configurations listed in the [MCP docs](/docs/mcp).

**Where the report card is worse.** Four honest gaps, all of which matter more for a job than for a task:

- **No scheduling and no triggers.** MDflow stores the brief; it will not wake an agent up on Tuesday, watch a metric, or fire on a pull request. The hooks in Cognition's Android run are not something a markdown workspace provides.
- **Nothing is measured.** The metric definition can live in a document; the metric cannot. Numbers come from your telemetry, and a document that states yesterday's figure is a stale document the moment it is written.
- **History is not reachable by an agent.** Active Team members can compare and restore versions of a Team document in the editor, but version history is not exposed over the API or MCP, so an agent cannot ask what changed in its own brief or when. On personal documents it is narrower still: private to the owner, and Pro-only.
- **Personal tokens are not scoped.** An `mdf_` personal access token is account-wide, read *and* write, with no read-only option and no per-workspace restriction. An agent that should only ever consume its brief still gets more than that on a personal account; only Team tokens are scoped.

**Where we are headed** — direction, not a dated commitment. The folder description stays the primitive worth investing in, because a standing job is exactly the case where an agent has to find the right context without being told the filename. Beyond that: narrower read-only credentials outside Team accounts, history the tools writing the documents can also read, and shortening the distance between an agent deciding something and the document that records the decision.

## The bottom line

The part of Cognition's story that does not transfer is the infrastructure. The part that does is the authoring problem it exposes. Once an agent is given an outcome instead of a procedure, the only thing a human still writes is the brief — what the goal is, what the number means, where the agent's authority stops, and what has already been tried and rejected.

That document is currently nowhere. It is in a Slack thread, in the head of whoever set the job up, or in a prompt that scrolled out of the context window three weeks ago. Putting it in one durable place that the agent can read with its own credentials and append to when it learns something is not the hard part of what Yan is describing. It is just the part nobody has done yet.

Yan's closing line was that most teams are limited by the amount of ambition they have. The smaller version of that: before you give an agent a job, write the job down somewhere it can find it next month.

[Start free](/login), [connect an AI agent](/docs/mcp), or [read the API docs](/docs/api).

## Frequently asked questions

### What is a long-running AI agent?

An agent that holds a standing goal across many sessions rather than completing one request and exiting. Instead of being told what to do, it is given something to be true — improve a latency number, keep two applications at feature parity — and it decides the steps, adds its own measurement, runs for days or weeks, and escalates only the decisions a human has to make. Walden Yan of Cognition calls this giving an agent a job rather than a task.

### What is the difference between a task and a job for an AI agent?

A task names the steps and ends when they are done; a job names an outcome and persists. Yan's example of a job is telling an agent you want better P99 latency and having it add the telemetry to find out where latency is today, set up alerts, break the work into tasks, create the Datadog alerts and send recurring reports — none of which was in the instruction. The agent picks the steps, so what you write down has to be the goal and its boundaries, not a procedure.

### How did Cognition get 40x more merged pull requests?

Not by buying a coding agent. In a talk published on 18 November 2026, Yan reported a 40x increase in merged pull requests over about twelve months against 2.7x engineering headcount growth, and attributed it to infrastructure changes: every service made to run locally under Docker Compose with mocked third-party services inside a single virtual machine, those machines rebuilt hourly from the latest code, agents writing and maintaining their own skills for how to test the codebase, and teams restructured into small pods with vertical ownership.

### What should a standing brief for an AI agent contain?

Five things that a chat prompt cannot hold: the goal stated as a measurable outcome, the definition of the metric so the number means the same thing every week, the boundary between what the agent may change alone and what it must escalate, a decision log of approaches already tried and rejected, and where the agent reports. The brief has to be readable and writable by the agent itself, because a job that runs for weeks outlives any one session's context window.

### Where should a long-running agent's goal and decision log live?

Somewhere durable, outside the session, that the agent can both read and write with its own credentials. A chat thread is lost when the context window rolls over, and a ticket is written for humans. A shared markdown workspace reachable over an HTTP API or an MCP server works, because the same text a teammate reads is the text the agent retrieves and appends to — which is the problem MDflow is built for, though MDflow does not run or schedule the agent itself.

## Further reading

- Walden Yan, [the AI Engineer talk this post is built on](https://www.youtube.com/watch?v=U92J5mCDLMc) — published 18 November 2026, on what Cognition changed internally to reach 40x merged pull requests.
- Cognition, [*Don't Build Multi-Agents*](https://cognition.com/blog/dont-build-multi-agents) — Yan's earlier argument that context must be shared and that actions carry implicit decisions; the single-threaded-judgment case we unpack in [Why Multi-Agent Pipelines Fail](/blog/why-multi-agent-pipelines-fail).
- [Devin](https://devin.ai) — the agent referred to throughout the talk.
- MDflow: [Loop Engineering](/blog/loop-engineering-agent-control-loops), [The Agent Autonomy Ladder](/blog/agent-autonomy-ladder), [Long-Horizon Agent Evals](/blog/long-horizon-agent-evals), [Agent Archaeology](/blog/agent-archaeology), [Why AI Software Factories Fail](/blog/why-ai-software-factories-fail), and the [MCP](/docs/mcp) and [API](/docs/api) docs.

