linear.app · Free post · Building AI products · Execution, roadmaps & process

How we built Linear Agent

LinearAug 10, 20267 min
Sourcelinear.app
KindFree post
PublishedAug 10, 2026
Originallinear.app ↗
N:

Linear shares how they built Linear Agent by inverting traditional software engineering principles. Rather than scripting rigid behavior, they defined flexible boundaries through system prompts, tool design, product knowledge encoding, dynamic skill loading, and a custom execution harness. This approach balances AI's spontaneity with safety, allowing the agent to handle unanticipated tasks while preventing costly mistakes.

01Key takeaways

  • Define agent boundaries through system prompts, tool design, and product knowledge rather than rigid scripts to enable flexible, context-aware behavior.
  • Encode constraints into tool design and parameters instead of prompts—this makes invalid actions impractical and scales better as models improve.
  • Teach agents product-specific knowledge through explanations of data relationships and best practices, not just tool access.
  • Use dynamic skill loading to manage context window and cognitive load while supporting broad capabilities across your product.
  • Build custom execution harnesses when off-the-shelf libraries don't support your orchestration needs like contextual approvals or async sub-agents.
  • Trade some capability breadth for predictability and safety by avoiding low-level primitives that increase failure modes.

02Key sections

System Prompt as Directional Guardrails
The prompt establishes communication style, hard boundaries on sensitive topics, product taxonomy understanding, and feature usage heuristics. This high-level guidance allows context-aware behavior while preventing harmful outputs.
Tool Design Encodes Constraints
Rather than spelling out limitations in prompts, constraints are baked into tool parameters and design. This makes invalid actions impractical and leaves room for the agent to become more capable as models improve.
Teaching the Agent Product Knowledge
Unlike coding agents with deep primitives, Linear Agent needs shallow, product-specific tools paired with explanations of data relationships and best practices. Each skill bundles metadata, prompt fragments, and tools for a specific capability.
Dynamic Skill Loading Manages Context
System skills are loaded on-demand based on the user's request and context, keeping each thread focused while supporting broad capabilities. The agent can load additional skills mid-run as it discovers new requirements.
Custom Harness for Orchestration Control
Linear built their own execution layer to support dynamic tool injection, contextual approval logic, and asynchronous sub-agent execution—patterns that off-the-shelf libraries don't elegantly support.
Trading Breadth for Predictability
By avoiding low-level primitives like direct SDK access, Linear limits the agent's action space to reduce failure modes and unpredictable behavior, accepting occasional refusals for safety.
“AI inverts that logic, at least somewhat. Much of Linear Agent's value lies in doing work we didn't anticipate in ways we never explicitly defined.”Linear · linear.app
“Rather than engineering a fixed path for Linear Agent, we defined the boundaries within which it could find its own.”Linear · linear.app

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.