Coding agent
Merges the pull request only when its checks pass, tracks each failure in Linear and posts in Slack.
Your agent queries seeded engineering issues and updates them through GraphQL. Query the issue again to check its workflow state, assignee and comments.
issue_updatedCalls the issueUpdate mutation
Starting records
users
anchaAncha assistantancha@acme.examplelabels
BugWhen ancha runs your agent, it sets:
LINEAR_API_URLLINEAR_API_KEYPoint the client you already use at them.
import { LinearClient } from '@linear/sdk';
const linear = new LinearClient({ apiKey: process.env.LINEAR_API_KEY, apiUrl: process.env.LINEAR_API_URL });
const issues = await linear.issues({ first: 10 });Locally, ancha runs your agent as an ordinary process, so keep real Linear credentials out of its environment.
commentcommentCreatecommentDeletecommentscommentUpdateissueissueAddLabelissueArchiveissueCreateissueDeleteissueLabelissueLabelCreateissueLabelsissueRemoveLabelissuesissueUpdateorganizationprojectprojectssearchIssuesteamteamsuserusersviewerworkflowStateworkflowStatesThe data the Linear mock starts with on every run, cut to a few records. ancha twins seed linear prints every field.
twins:
- linear
seed:
linear:
organization:
name: Acme
url_key: acme
viewer: ancha
users:
- ref: ancha
name: Ancha assistant
display_name: ancha
email: ancha@acme.example
- ref: greg
name: Greg Wilson
display_name: greg
email: greg@acme.example
title: Database engineer
timezone: America/Los_Angeles
labels:
- name: Bug
color: "#eb5757"
teams:
- ref: eng
key: ENG
name: Engineering
description: Orders API, web app and dashboards
color: "#5e6ad2"
members:
- ancha
labels:
- name: Incident
color: "#eb5757"
projects:
- ref: scheduled_reports
name: Scheduled reports
description: Send dashboards on a schedule, the top request this month
state: started
teams:
- eng
start_date: 2026-10-19
target_date: 2026-12-11
color: "#bb87fc"
issues:
- ref: cents
team: eng
title: Order totals off by one cent for multi-currency carts
description: Rounding happens per line instead of per order.
state: Done
priority: 2
assignee: greg
creator: greg
at: -120h
updated_at: -100h
comments:
- user: greg
body: Fixed by rounding once at the order level.
at: -100h
checks:
- id: issue_updated
trace:
called: MUTATION issueUpdateAncha’s searchIssues matches every word in term against the issue identifier, title and description, ignoring case. Set includeComments: true to include comment bodies and teamId to search one visible team.
In the Linear mock, a guest sees issues from teams they belong to. A non-guest also sees public teams, while membership grants access to private teams.
Query issues with first, then pass pageInfo.endCursor as after while pageInfo.hasNextPage is true. The mock sorts by newest createdAt by default; use orderBy: updatedAt to page by recent changes.
Install the CLI and run your agent against the Linear mock.
Ancha is not affiliated with Linear.