Working only on Linear: how cloud agents sped up my team's engineering workflow

We hand issues to a coding agent inside Linear. What it does on its own, what it has to show us, and what stays with the team.

At 6 a.m., the first users started noticing that a workflow tied to an ERP integration was slow. When my team picked up the issue in Linear, we didn't have to start by asking when the slowdown began or which part of the application was involved. Overnight monitoring had already detected the problem. Automated triage had collected the context, written down a hypothesis, and left us a place to start.

My team investigated, reinforced the cache, and moved some of the processing to a background queue so users didn't have to wait for it to finish. The system was responding normally again before 7:30 a.m. The automation hadn't fixed production while we slept. It had done enough investigative work that the team could spend the morning confirming the problem and making a decision.

We've seen bugs that used to take about three days get fixed in about four hours. That's an observation about some of our work, not a measured average across the team. The part I can show is where the waiting went. A useful investigation can start before somebody is free to pick it up. When it gets to a person, there should be something they can verify or a decision they can make.

What "working only on Linear" means at my company

I lead an eight-person engineering team. We had already cut back on recurring Scrum ceremonies and given engineers more ownership over the problems they take on. Putting an agent in each engineer's private chat would have made that work harder for everyone else to follow.

I put the agent in Linear instead. We call our Cyrus agent Carlinhos. Someone can delegate an issue, answer a question in its session, or stop a run. The investigation, decisions, PRs, and evidence stay with the issue. Another engineer can pick up the review without reconstructing the conversation from someone's terminal.

The code still lives in GitHub. Tests run where the source and fixtures are. I still open an editor and test changes in the product. "Only on Linear" describes where we coordinate the work, not where every command runs. For us, the useful property of a cloud agent is that it runs independently of the engineer's open editor. We run the worker on our own infrastructure. That setup still has availability limits.

The team decides before and after the run

From the first report to the release, everything is recorded on the issue.

  1. Customer feedback, monitoring or a bug report

  2. Triage puts the context and a next test in the issue

    Automation
  3. Is the expected behavior clear?

    Team

    If it isn't, ask in the issue and record the decision there.

  4. Delegate the issue, or resume the same session

    Team
  5. Resolve the repository and base, then work in an isolated worktree

    Agent
  6. Report what the run verified

    Agent

    Ready for review

    The feature ran and the required cases passed. Link the PR and the evidence.

    Partial

    Only part of it ran. Publish the evidence and name the gaps.

    Blocked

    The feature never ran. Report the blocker, with no acceptance media.

  7. Review the evidence and the PR

    Team

    If it needs changes or more evidence, it goes back to the same session.

  8. Integrate and release

    Team

What I delegate, and what I keep with the team

A Sentry event, a support ticket, or a report from a teammate can start the flow. One of our automated reports included a sanitized stack trace, frontend revision, route, app and browser version, breadcrumbs, and an explicit note about what information wasn't available. I want a report to propose the next test. For example, if we can't tell whether a bad value came from the API or the browser, the useful next step is to compare the response with the rendered value. Picking one cause too early can waste the time the automation saved.

For a narrow bug with a clear expectation, the issue can go straight to Carlinhos. For bigger work, I use skills I picked up from Matt Pocock's work. /wayfinder helps us decide where we're trying to go. /to-spec records the behavior we've agreed on. /to-tickets splits the spec into tasks and dependencies. I use /grill-with-docs when an apparent requirement conflicts with product documentation or when we need to decide if an old behavior is deliberate.

I mark work that can proceed without us as AFK. That includes reproductions, investigations, tests, and implementations with a settled rule. Work that depends on someone knowing the business, or deciding what the product should do, stays human-in-the-loop. I use native Linear dependencies to block implementation on those decisions. If an agent hits one midway through a run, it asks a question in the same session. It doesn't need to ask whether it can run a test or open an already authorized PR. It does need to ask before it invents an answer about who may see a record or how an exception should affect inventory.

A larger project made this split useful. We divided document AI work into retrieval, chat and citations, assisted edits, metadata, and integrated testing. One workstream owned the TypeScript/Python contract for sessions, scopes, streamed events, source links, proposed edits, and confirmation. Other agents could work against shared fixtures once the contract was explicit. We used stacked PRs where the changes depended on one another. The test setup used a deterministic provider and synthetic data. It could prove how an edit proposal, confirmation, or permission check behaved. It couldn't prove the quality of answers from a real model or replace authenticated acceptance in the editor.

What happens after somebody delegates an issue

Cyrus receives a signed Linear event. The app verifies who requested the work and checks access to the repositories. When someone replies to an existing session, their identity comes from the source comment, not from whoever started the session. This matters once anybody on the team can ask the agent to continue. We enabled verified active members within the installed scope and kept repository-level access rules.

Before the agent edits, the router chooses the repository and resolves the base. It can use the project, explicit instructions, and linked PRs. If those disagree or the required repository is missing, I want to know before a diff exists. On one product, the standard context is the API, web, and mobile repositories. The agent gets all three without asking. It changes only the repositories the issue needs. One bug looked like a web rendering problem and turned out to be a database invariant. Knowing where the rest of the flow lived saved us from patching only the client.

Each issue has an isolated Git worktree. A resume keeps the original Linear session, runner thread, worktree, and PR. I check for a tool command that ran in that worktree. A webhook acknowledgment tells me a message arrived, not that an interrupted investigation resumed. My team works in parallel, so the agent can't stash, clean, reset, or force-push its way out of a problem with somebody else's changes.

For normal implementation work, I authorize a scoped commit, a push to the issue branch, and opening or updating the linked PR. The agent checks for an existing PR first. A failed lookup is a blocker, not permission to make a duplicate. The publisher verifies the repository, head branch, target base, and commit. I also ask the agent to check the native Linear PR association separately. A pull request can be open and linked while the native diff view is unavailable. A URL in a comment doesn't prove either association or diff access.

The agent doesn't merge, deploy, push to a protected branch, or move the issue to Done. Our separate PR risk assessment reads the diff and metadata for the current revision. It can point a reviewer to a migration or a permissions change. It doesn't execute the product or approve the PR.

What the agent does on its own, asks about, and never does

For a normal implementation issue. Questions go in the same session, on the issue.

On its own

  • Reproduce the bug
  • Investigate the cause
  • Write and run tests
  • Implement a settled rule
  • Commit and push to the issue branch
  • Open or update the linked PR

Asks in the issue first

  • What the product should do
  • Who may see a record
  • How an exception affects inventory
  • Which repository or base, when the signals disagree

Never

  • Merge
  • Deploy
  • Push to a protected branch
  • Stash, clean, reset or force‑push
  • Move the issue to Done

What counts as proof of work

I want another engineer to be able to answer this question without asking the agent: What did you run, on what build, and what did it prove?

Start with the exact code. The comment lists the PR, base, and tested commit. If a web change needs a separate API revision, record both. For before-and-after evidence, use the same synthetic data and the same steps on the relevant baseline and candidate. If the head changes, run the applicable checks again. Don't describe a clip from the previous revision as evidence for the new one.

Use the project's real test environment. We install dependencies from a lockfile that matches the manifest. Our Playwright helper chooses the isolated Chromium service for that version. Different projects needed Playwright 1.61.1 and 1.63.0 at the same time. We provisioned both instead of changing either product's dependencies. The test runner and the application stay in the agent's sandbox. The browser runs in a separate restricted process with its own temporary profile and loopback-only networking. It doesn't use someone's browser session or talk to production. If only the web package in a monorepo declares Playwright, preflight checks it there.

Check each boundary independently. An open TCP port isn't enough. Our preflight checks whether the WebSocket can actually negotiate a Playwright connection. Then the test needs a working browser context, the right build, authenticated fixtures, and a feature it can reach. A CRM app once came up on a local port but couldn't get past access because the agent's clone lacked the project-approved environment. We built a dedicated local QA setup with a fresh copy of the synthetic test database. We didn't copy credentials from an engineer's clone. A login clip from before that fix proves nothing about the screen we meant to validate.

Record an action and its consequence. A required field should prevent the request, not merely display a warning. A filter needs a record that stays and one that disappears. A queue action should show the new state where the next person will find it. If there's a possible side effect, verify it separately. For a warehouse request, we checked that a missing reason sent no request. With the reason filled, one task appeared in the shared queue as pending, with the right order and quantity. The test also checked that no ERP message entered the outbox. That proved one web path. It didn't cover the other roles, partial and full handling, or the native app.

Test the native boundary when the workflow crosses it. In another warehouse flow, the web app created a grouped task. The API used by the mobile app returned the same task ID to the operator. That's useful integration evidence. It doesn't prove the operator can open that task on a device, see the right notes, or reconnect after going offline. When Android and iOS weren't usable for the scenario, the handoff kept native validation open. A narrower browser viewport is not a mobile app test either.

For a regression I might write: "Open the team editor on the baseline and the candidate. Use the same team with duplicate memberships and two distinct users with similar names. Find both, remove one, save, reopen, and make sure the other is still selected. Put both tested revisions in the issue. If all you could open was sign-in, say so and don't attach that clip as proof." The second user is the control. The result fails if removing one membership removes both.

Check the file, not the recording flag. We record the first focused run. In a custom Playwright script, the shared helper takes a screenshot before closing the context. It then closes the context and calls video.saveAs() to get the recording off the remote browser. recordVideo.dir alone doesn't put the file in the agent's worktree. We check that the finished file plays through. If export fails after the feature ran, keep the real screenshots and say the video is missing. We upload evidence to Linear as private attachments.

Leave a report someone can act on. The issue gets the steps, expected and observed results, screenshots, a playable video, and an inline Mermaid diagram. It also gets the fixture, assumptions, failed or skipped checks, and what still needs testing. A short diagram can explain a state transition or a branch in a rule. It can't substitute for seeing the feature run. Unit tests and API tests are worth citing as tests. We don't turn their terminal output into a fake product walkthrough.

That last rule came from a real handoff. We received a perfectly playable video of HTML built to display the results of a backend test. I withdrew it as feature evidence. The replacement was the warehouse recording described above. It showed real interaction and proved less than the original summary appeared to claim. I'll take the narrower, checkable claim.

What the publisher checks, and what people still have to check

The publisher distinguishes a delivery ready for review from a partial result and a blocker. For a UI delivery, it checks that the PR matches the session's code, that there are distinct print and video links, and that the comment has an inline Mermaid block. Those are checks on the handoff. The publisher can't tell whether the video shows the right product rule or whether the script used a representative case. An investigation with no code change doesn't need a token PR just to pass the format check.

A run proves only the steps it got past

Three runs of the same check, and what each one may put on the issue.

Blocker

Partial

Ready

The browser connectsNot just an open port

The PR's build is running

Signed in with test data

The feature is on screen

The action and its consequence check out

The video plays through

On the issue

Blocker. The blocker. No screenshots or video.

Partial. Real screenshots, and the missing video named.

Ready. PR, screenshots, video and diagram, for review.

A sidebar change exposed a bug in this part of the system. The agent had recorded the real product, uploaded two screenshots and a video, and put the links after the text in a bullet list. Our publisher only recognized a link on a line of its own. It treated the video as missing. The second recording attempt hit the Codex usage limit, and Linear displayed a generic runner error. The first video was already there.

I fixed the shared publisher instead of telling one agent how to format its next comment. The exact old response now runs through a regression test. When an agent has the right media but no Mermaid block, the publisher reports the missing diagram and doesn't re-record. If a real run produced a screenshot but no video, it publishes the partial result and may try once to recover the video in the same session. It should check for a playable recording from that commit first. A run that never reached the feature is a blocker and doesn't trigger a recording retry. A later quota error doesn't remove the partial result from the issue.

Why I still make a human validate it

The biggest risk in agent-written work is that the same misunderstanding can end up in the code, the tests, and the handoff. If the agent guesses the wrong meaning of a field, it can write an assertion for that guess, record a passing walkthrough, and give me a persuasive explanation of why it's right. Everything agrees because it came from the same assumption.

Eight hours in a status, read two ways

A ticket enters a status at 08:00, leaves at 12:00 and comes back at 14:00. The rule we wanted counts from the last entry.

In the status

inoutback

8 h since the last entryEligible at 22:00

8 h

8 h of visits added upEligible at 18:00

4 h4 h

A test that adds up the visits could pass against the wrong implementation.

We decide what the rule means before asking whether the code follows it. Here are three examples where that mattered:

  • Time in a status. For a workflow automation, I wanted eight elapsed hours since the last entry into a status. If a ticket enters at 08:00, leaves at 12:00, and returns at 14:00, it's first eligible at 22:00. A test that adds the two visits could pass against the wrong implementation. I also wanted one rule per source status, no routes into or out of triage, and the existing five-day finalization to keep working. The job must recheck the current status, rule, and entry before it writes. A stale job must not undo a manual move. The short browser run proved that a real one-minute rule saved and moved a test ticket. Controlled-clock and concurrency tests are how we exercise the eight-hour boundary, stale jobs, and reentry without waiting eight hours. A human review also caught a UI issue: the fields and saved rules showed status names without their standard icons and configured colors. We corrected the existing UI instead of creating a new workflow engine or a second set of components.
  • The creator of a record. In a CRM, the creator isn't necessarily the current owner or the person who imported the record. For the column and filter, the local run used two fictional people with the same display name. We created one organization as each person, showed and hid the column, and checked that the filter still matched the right author by ID with the column hidden. That run didn't give us the missing provenance of older records. If the history doesn't tell us who created one, a person must decide what a safe backfill would mean. An agent shouldn't silently turn the owner into the creator to make the empty cells go away.
  • Who belongs to a team. The right rule was one membership per (team_id, user_id), not one label per display name. The patch removed duplicate membership rows, added a PostgreSQL uniqueness constraint, and tested concurrent paths that add or edit memberships. The reported before-and-after web run kept two different users with similar names. Removing one didn't remove the other. A UI patch that just deduplicated the labels could look identical in one screenshot while leaving the bad rows intact. Deduplicating by name would create a different error.

I use human validation to answer questions that aren't settled by a passing script. Would somebody doing their job understand this empty state? Does pressing Escape put keyboard focus back where they need it? Does "apply to all" accurately describe an action that only applies to eligible tickets? Did we reuse the product's confirmation and error patterns? Is the proposed migration allowed to discard anything we can't get back?

For a bulk-label change, my team asked for List and Kanban coverage with mixed selections. The tests checked that an ineligible ticket kept its label, an ungrouped label survived, and Escape returned focus to the grid or card. A clip recorded with a local transport fixture could show all of that. It couldn't measure production latency. When the user-visible wait became a question, we kept it separate from the length of the clip.

I start my review from the issue before I read the agent's verdict. I pick a case that would fail if the agent misunderstood the rule. A filter test with two different names won't catch a lookup by name. An exit-and-reentry case will distinguish the two meanings of time in status. For a request that crosses clients, I'll try creating it as one role and consuming it as the other. I want to choose that example independently of the tests the agent wrote.

The human doesn't need to rerun every unit test. They need to judge the original intent, choose the highest-risk behavior to exercise, and decide what evidence is still missing. That includes architecture. On a six-part warehouse review, I asked the agent to compare each change with the approved requirements, then compare the changes with one another. Two PRs can pass in isolation and still introduce competing definitions of an inventory task, two outboxes, or different rules about which location is the source of truth. The test suite won't tell us that we chose the wrong owner for a concept unless we decided who the owner should be first.

Integration needs its own check too. For two related UI fixes, my team had the agent simulate both integration orders against the current base, account for a third overlapping fix, and test the combined tree. We also found that an open promotion PR intended to carry four authentication files would carry twenty if we integrated the other features first. That is a useful result an agent can calculate. Choosing what goes in the release, and in which order, is still our decision.

What happens after the review

I reserve time for an engineering cooldown. In one product, we reviewed nearly 500 commits to decide what to keep, remove, simplify, or consolidate. The assignment was to examine the Git history, documentation, and evidence of use, not to start refactoring. Some decisions depended on real data, migration history, or whether anyone still used an older path. The agent could investigate and write down the options. It couldn't turn missing evidence into an answer. Only after we agreed on the decisions did it make sense to write a new spec and implementation issues.

That's the workflow I wanted at my company. Give an agent the issue when the expected result is clear. Let it run the investigation or implementation while my team does other work. Make it return enough evidence for someone else to challenge its conclusion. Keep the decisions about product behavior, risk, and release with the people who will own the result.

My favorite handoff is one where I can open the issue, see exactly what changed, and spend my first ten minutes testing the hard part instead of working out where to start.