---
title: "How we built Linear Agent"
description: "Linear Agent is constrained by boundaries rather than scripted paths: a fundamentals-focused system prompt, tools designed so invalid actions are impractical, and an explicit model of Linear's product concepts."
url: "https://swe.quest/articles/how-we-built-linear-agent-e2a4906b36843c76"
canonical: "https://linear.app/now/how-we-built-linear-agent"
source: "Linear"
published: "2026-08-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["ai-agents","llms","system-design"]
---

# How we built Linear Agent

A post on [Linear](https://swe.quest/sources/linear.md), published 2026-08-10, 7 min read, Case study. Original: [https://linear.app/now/how-we-built-linear-agent](https://linear.app/now/how-we-built-linear-agent)

## Summary

Linear Agent is constrained by boundaries rather than scripted paths: a fundamentals-focused system prompt, tools designed so invalid actions are impractical, and an explicit model of Linear's product concepts. Because the agent has many shallow product tools rather than a few deep ones like a coding agent, capabilities are packaged as "system skills" (metadata, prompt fragment, tools) that are preloaded from context or loaded on demand to keep context small. Linear deliberately avoided exposing the SDK, CLI or GraphQL API, trading breadth for predictability. A custom harness on a durable workflow engine supports dynamic tool injection that preserves the provider prefix cache, contextual tool-call approval, and suspending a parent agent while sub-agents run asynchronously.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- agent loops
- prompt caching basics ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

Linear Agent, Linear, system skills, prefix cache, durable workflow engine, Slack

## Related posts

- [Harness, Scaffold, and the AI Agent Terms Worth Getting Right](https://swe.quest/articles/harness-scaffold-and-the-ai-agent-terms-worth-getting-right-0e5aba5b0f70e57a.md): Hugging Face · 2026-05-25 · Easy · 12 min read · AI agents, LLMs, Model training
  A glossary of AI agent terms that are often conflated. The model is a stateless LLM.
- [Our approach to building the Agent Interaction SDK](https://swe.quest/articles/our-approach-to-building-the-agent-interaction-sdk-9a9972a058846fdd.md): Linear · 2025-08-01 · Medium · 7 min read · AI agents, API design, Identity & auth, Product engineering
  Linear integrates AI agents into its workspace as first-class users through a new OAuth actor mode (actor=app), which creates a dedicated agent user with its own token, developer-requested scopes and admin-controlled team access.
- [Context Engineering with Deep Agents: How To Remember Without Keeping Everything In Context](https://swe.quest/articles/context-engineering-with-deep-agents-how-to-remember-without-keeping-everything-1dc293ec006d2b0c.md): LangChain · 2026-11-10 · Medium · 9 min read · AI agents, LLMs
  Long-running agents suffer "context rot" as tool output, history and instructions accumulate, so Deep Agents moves context out of the active window via middleware hooks in the agent loop rather than deleting it.
- [You Should Write An Agent](https://swe.quest/articles/you-should-write-an-agent-1b4d0eb48fb350d8.md): Fly.io · 2025-11-06 · Medium · 10 min read · AI agents, LLMs, Python
  An LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function\_call, run the tool and append its output.
- [Building Long-Running Agents with ScaleDown and Deep Agents](https://swe.quest/articles/building-long-running-agents-with-scaledown-and-deep-agents-76e2d7318050ea78.md): LangChain · 2026-10-13 · Medium · 9 min read · AI agents, LLMs, Python
  The langchain-scaledown integration offloads context-management decisions in long-running agents (summarizing history, compressing tool results, extracting fields, classifying state) from frontier LLMs to ScaleDown's small, task-specific constrained decoding models, which ScaleDown reports are far faster and cheaper on these narrow tasks.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
