daily.dev
Read post

How we built a Linear coding agent: the hard parts

daily.dev built Huginn, a coding agent integrated into Linear that automates the full workflow from ticket to PR. The post covers the hard engineering problems encountered: wrapping Claude Code and Codex as child processes with their undocumented streaming formats, building a three-tier fallback parser for structured LLM output, debugging session continuity failures caused by working directory changes, and using Linear labels as a crash-resilient state machine. The team also describes their 'Digital Twin Universe' (DTU) testing approach — in-memory replicas of Linear, GitHub, and KMS running in Docker containers — which made a 99% AI-generated codebase viable. Known limitations include ongoing output parsing fragility, rough BYOK credential handling, and poor fit for tight iterative or architecturally complex tasks.

    #testing#claude-code
Mar 23•10m read time•From daily.dev
Post cover image
Table of contents
Wrapping CLI agents as child processesThe output parsing warSession continuity and the CWD trapState machine on Linear labelsWhat a 99% AI-generated codebase actually meansWhat's still jankyThe moment it clicked
193.2K Impressions6 Comments
daily.dev's image
daily.dev

66 Followers

•

317 Upvotes

idoshamun's user avatar
Ido Shamun
@idoshamun
Joined Jul 28. 2018
178.2K
daily.dev's profile

daily.dev

Verified

I'm to blame if something goes wrong here 🙈

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard