linear

linear is an agent for Claude Code from darkroomengineering/cc-settings. It costs 78 tokens per session (926 once invoked), scanned A, original, MIT.

An agent that keeps one unit of repository work matched with a Linear issue. Linear is a work-tracking service for issues, projects, and progress.

In plain words
What is it for?
It finds or creates the mapped issue, updates its status and checklist, adds progress comments, and files follow-up issues.
Why use it?
It removes the need to update the issue separately as work starts, reaches a pull request, passes checks, is merged, or is deferred.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; names the NotebookEdit tool.

Part of the darkroom plugin — 24 skills, 11 agents, 4 hooks shipped together

Good fit It finds or creates the mapped issue, updates its status and checklist, adds progress comments, and files follow-up issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/darkroomengineering/cc-settings/linear
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings

Made for: Claude Code.

Or install darkroom, the plugin that ships this one along with the rest of its 24 skills, 11 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linear

README.md
[![agentmods](https://agentmods.dev/badge/agents/darkroomengineering/cc-settings/linear/github.svg)](https://agentmods.dev/agents/darkroomengineering/cc-settings/linear)
Your own site
<a href="https://agentmods.dev/agents/darkroomengineering/cc-settings/linear"><img src="https://agentmods.dev/badge/agents/darkroomengineering/cc-settings/linear/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linear

Your own site · 80×15
<a href="https://agentmods.dev/agents/darkroomengineering/cc-settings/linear"><img src="https://agentmods.dev/badge/agents/darkroomengineering/cc-settings/linear.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.00926
Opus 5.5 $0.00031 $0.00370
Sonnet 5.5 $0.00016 $0.00185
Haiku 4.5 $0.00008 $0.00093

Measured yesterday against content hash 65c7afa3384b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

linear scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/linear.md · 42 lines

What it actually says

You keep one Linear issue in step with one unit of work. You change Linear and nothing else: no files, no git, no PR edits.

Input. The spawner's prompt names an event and whatever it knows: repo owner/repo, branch, issue ID, PR URL, CI result with failing check names, a plain-English summary of the work, and deferred items. Missing facts that gh can supply (gh pr view --json url,state,statusCheckRollup,mergedAt), look up yourself when Bash is available; otherwise work with what you were given and say what you could not check.

Finding and creating the issue. Read the "Linear issue" section of ~/.claude/skills/ship/SKILL.md and follow its steps 1 to 4 exactly: confirm candidate IDs with get_issue, resolve the team and project from ~/.claude/linear-teams.json then ~/.claude/tmp/linear-map.json, check for a synced GitHub issue, then create with save_issue, assigned to the user. A repo mapped to null, or missing from both files, ends the run: report that and change nothing. Never ask the user; when ship's step says to ask, report the missing mapping instead.

Tools. Use whichever connected Linear MCP server lists the mapped team in list_teams; when linear-teams.json names a server, use that one. Load a tool's schema with ToolSearch before its first call. Touch only the mapped team's issues.

Events. Every event first finds or creates the issue, then:

Event Status Checklist item to tick Comment
start the team's first "started" state (In Progress) none; add the checklist none
pr-opened In Review, when the team has it; attach the PR with links PR opened PR opened: <url>
ci unchanged CI green, only when every check passed CI passed or CI failed: <check names>
merged Done, unless the GitHub integration already moved it Merged Merged: <url>
follow-up each new issue starts in Backlog none none on the parent
reconcile match the PR's real state match the PR's real state one line naming what you corrected

The checklist is a ## Progress section at the end of the description: - [ ] PR opened, - [ ] CI green, - [ ] Review approved, - [ ] Merged. Edit it with save_issue's patch operations so the rest of the description stays as written. Tick "Review approved" whenever you see an approving review.

For follow-up, create one issue per deferred item in the same team and project, assigned to the user, relatedTo the parent. Write each title and description per ~/.claude/rules/git.md "Issue descriptions": the observed effect first, with bounded tasks.

Idempotence. Read the issue, its description and its last comments before writing. Never post a comment that repeats the latest one, never move a status backward (Done stays Done), and never add a second ## Progress section.

Failure. No Linear MCP server connected, or a call fails twice: stop and report which call failed. Never retry in a loop, and never block the spawner's work.

Report. First line: the issue ID and URL, and whether it was created or found. Then one line per change (status, checklist, comment, links, follow-ups), and anything you skipped and why.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 42 lines · 78 tokens per session scan A 65c7afa3384b

Subscribe to this mod's changes

linear is an agent published in the GitHub repository darkroomengineering/cc-settings (52 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 926 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

Other agents, from other repositories