A common way to work with a coding agent is to hand it a ticket, wait for a pull request, review it and repeat. At AI Engineer Code Summit 2026, three talks pointed at a different unit of work. Walden Yan of Cognition said it plainly: "We want you to just be giving your agent goals that they can work toward over long durations of time."
Here is what I took from his talk, and from two others that fit around it.
From tasks to goals
In Walden's slide example, someone asks Devin to reduce p99 endpoint latency. The agent does not just open a PR. It sets a target, 840ms down to 500ms, with a compute budget of 5,000 compute units approved. It scans the code and opens 14 issues, including batched order lookups, missing indexes, an alert if P99 goes over one second, and a weekly report. Then it keeps monitoring. In the slide's example update, p99 latency is down 65% with no regressions.
The latency isn't the point. The unit of work changed. A ticket can end with a pull request. A standing goal gives the agent a metric to monitor and improve over time.
That only works if there is a number. Walden's advice: "Anything in your company that you think isn't measurable, find a way to measure it." His examples were layout shift and onboarding retention. I would add flaky tests. If it has a number, an agent can work on it around the clock.
He also said Cognition's merged PR throughput rose 40X over about 12 months while engineering headcount grew 2.7X. That is his claim, and I can't check it. I'm treating it as context, not evidence.
Goals still need a leash
A goal with no limits is just a bigger way to get surprised. Luke Alvoeiro of Factory talked about how to give agents standing goals safely.
Factory calls them workstreams. A workstream is a standing goal with an orchestrator, an identity, an environment and shared memory. It takes in signals like failed CI and bug reports, triages them against the goal, writes a spec, opens and manages a PR, and watches review and CI results.
The part I liked most is that autonomy is earned in levels:
- At L1, the workstream pauses for human review at the spec, at the PR, and before merge.
- At L4, changes merge automatically by default.
- People decide when a workstream moves up a level.
Luke's line: "What matters a lot more is the progression." The level you start at matters less than how you move up from it.
Factory's own numbers show where this ends up. In the talk, workstreams produced 52% of Factory's shipped PRs. Its Slack bug-report workstream merged 53 PRs per week and its flaky-test workstream about 40. They also track a "regret-free merge rate": changes that merge without a revert or a follow-up fix.
Their advice for starting is modest. Name the signals you already have, pick the most time-consuming one, and start it on an L1 workstream. In Luke's words, "Every team already has them."
Not every step needs a model
Chibi Vikram and Kevin Bernstein of UiPath made a point that gets lost in the excitement about long-running agents. A reliable system is not one agent in charge of everything. Their pattern:
- Deterministic automation for steps you already know.
- A model only at the points where judgment is needed.
- A person where the stakes are high.
This also makes a goal-driven agent easier to trust. Fewer steps depend on a model's judgment, so fewer steps can quietly go wrong.
My take
Three things connect these talks for me.
First, the number comes before the agent. Anything important should be measured and handed to an agent to improve continuously. I wrote that in my own notes during Walden's talk, and I still think it is the part teams skip. They want the agent first and hope the metric follows. If you can't say what "better" means in a number, you can't give the agent a goal, and you can't tell whether it succeeded.
Second, I would not start with full autonomy. I'd pick one number we already track, give an agent that goal at L1 with a budget, and raise its autonomy only once the evidence is there. Luke's point about progression is the part I'd copy. It turns "do we trust it?" from a feeling into a decision with a record behind it.
Third, evidence has to cover more than the final number. An agent can hit a target in a way you'd never approve. That is why I care about checking how an agent got there as well as where it ended up. A goal-driven agent that runs for days needs that kind of review more than a ticket-driven one does.
I have also been thinking about a Slack-first setup, where a message channel is the single place work gets assigned to agents. Cognition's talk made that feel closer to practical.
The open question for me is which metric you would hand over first. I'd choose something boring, like flaky tests.
Credit: talks by Walden Yan (Cognition), Luke Alvoeiro (Factory), Chibi Vikram and Kevin Bernstein (UiPath) at AI Engineer Code Summit 2026.