Coding agents inside Linear
Partitura
Give an issue to an agent in Linear. Follow the work in the same thread.
I wanted to delegate coding work where I already track it. Partitura takes a Linear agent session, prepares its repository, starts a coding worker and sends the worker's activity back to the issue.
01 / 03 · assigned in Linear
The short version
What was hard
The process around the model. A webhook can arrive twice, a service can restart mid-run, and a canceled worker can still have a reply in flight. I had to make delivery ownership, run recovery and cancellation agree. Each worker also needs tools without inheriting the gateway's credentials.
How I set the agents up
I split the work around services with explicit contracts: webhook intake, session ownership, worker drivers and activity delivery. The agents worked against fake RPC workers and real SQLite in tests, including interrupted runs and credential boundaries. OMP and T3 use the same run lifecycle.
How it turned out
The service handles signed Linear events, repository routing, isolated worker identities and progress delivery. Both OMP and T3 drivers are implemented, with persisted settings and recovery. I'm qualifying the complete deployed path from a Linear issue to a pull request separately from those source-level checks.
Architecture
Linear starts the session. SQLite stores ownership and recovery state, the authority runs its worker, and activity delivery sends progress back to Linear.
What's next
Qualify the deployed Linear-session-to-pull-request workflow with the selected providers and sandbox configuration.
Stack
The detailsWhy I built it, what it does and the decisions behind it
Why I built it
I use Linear to organize work and coding agents to carry it out. I wanted the issue, the agent's questions and the result together, without copying context between a tracker and a terminal.
OpenAI's Symphony was an inspiration. Partitura takes a different route through Linear webhooks and agent sessions, with OMP and T3 workers rather than implementing Symphony's draft contract.
What it does
- Checks webhook signatures and organization admission before claiming a delivery.
- Stores incoming work and run state in SQLite, recovering pending work before accepting new requests.
- Routes an issue to a configured repository and prepares a workspace for its session.
- Runs OMP over RPC or launches a per-session T3 Code service with its own state and bearer.
- Reports activities and questions to Linear, with retry and backoff for delivery.
- Resolves driver and model settings from issue labels, project labels and organization defaults, then persists the selection for retries.
- Provides an admin console for repositories, settings, run events and lifecycle actions.
Key decisions
Linear is the conversation
Why
The worker's activity returns to the agent session that started it, so the person assigning work can follow it in Linear.
What it cost
Linear's event and activity contracts shape the workflow. API failures need their own delivery queue.
Persist before starting work
Why
SQLite stores delivery claims and run ownership. Startup recovery finishes before ingress and reconciliation begin.
What it cost
The service owns a stateful database and recovery policy. Restarting a process alone isn't enough.
Separate workers from gateway credentials
Why
Isolated sessions use distinct Unix identities and private workspaces. MCP and Git brokers retain upstream credentials in the gateway.
What it cost
Production isolation needs the configured Linux worker environment. Same-user development mode isn't a security boundary.
Two drivers, one lifecycle
Why
OMP workers and T3 instances share session ownership, cancellation and activity projection.
What it cost
Driver contracts and deployed end-to-end behavior need separate qualification.