Skip to content →
  1. Linear in practice
  2. How Cal.com automated bug fixing in Linear
Sign upOpen app

How Cal.com automated bug fixing in Linear

Low-priority bugs often get deprioritized and build up in the backlog as a result. When Matt Litherland joined Cal.com as Head of Product, exactly that had happened. They had close to 600 small bugs waiting in triage, with engineers burning too much time working through them on a support rotation.

Left unanswered, small bugs add up to big problems, so Cal.com rebuilt their bug management workflow using Automations and Linear’s cloud coding agent. Within a few weeks, the burgeoning backlog was reduced to zero.

Here’s what it looks like in practice.

Simplify bug intake using Slack⁠

They set up a Slack channel called #talk-to-linear. Anyone at the company who spots a bug or a rough edge, often while using the product in their daily work, can hop into this channel and flag it with a screenshot and a quick message, like:

@linear, I noticed that this label reads ‘events’ when it should be saying ‘links.’ Please fix.

Linear turns the report into an issue in the Product Engineering team’s triage, using the original message as context, and links back to Slack so any subsequent conversations stay connected.

Use Automations to size the problem⁠

Automations are a feature in Linear that loop in an agent on a task, either on a schedule or in response to a trigger. In this case, a new bug landing in triage was the trigger.

Cal.com’s automation picks up the bug, assesses the complexity of the task, and scores it from 1 to 8, 1 being very simple, like a copy change on the website, 8 being very complex.

For simpler fixes, the automation checks whether the bug qualifies for “Fastlane,” a GitHub automation Cal.com set up to automatically merge low-risk PRs.

Loop in a coding agent to draft the fix⁠

Next, the automation delegates the bug to Linear’s cloud coding agent, which works away in a sandbox and delivers back a draft PR.

The agent is guided by a set of instructions to make the changes more visible to the rest of the team. When working on a UI change, for example, the agent must include before-and-after screenshots, and when the draft PR is ready, an update is posted into the #support channel, tagging the relevant team and the engineer on rotation.

Verify the PR with a second automation⁠

Opening a PR this way kicks off a second automation. This one is designed to run checks before the PR is merged.

It verifies that CI has passed and any findings from the AI review agent have been addressed, and reports back to the product support Slack thread.

PRs that continue to meet Fastlane criteria can merge automatically. Otherwise, the engineer on the support rotation can review the prepared fix and merge it, all from Linear.

What this workflow enables⁠

With this in place, a “see it, fix it” culture becomes possible. Anyone at Cal.com can flag a small annoyance and know it will be fixed within hours rather than sitting in triage for months, while engineers stay focused on bigger product work instead of burning their week on support rotation.