linear-cleanup

linear-cleanup is a command for coding agents from Elnora-AI/elnora-linear. It costs 30 tokens per session (850 once invoked), scanned A, original, Apache-2.0.

A command for auditing Linear, a project-management and issue-tracking service, for missing labels, inactive issues, duplicates, incorrect status, orphaned issues, and issues that cannot be acted on.

In plain words
What is it for?
Use it to review a team’s issues, suggest labels, handle stale or duplicate work, identify missing relationships or projects, and choose which fixes to apply.
Why use it?
It brings common issue-quality problems into one review and proposes corrections before changing anything. Changes use a dry run by default and require explicit confirmation.

Command

Part of the linear-workspace plugin — 1 skill, 6 commands, 5 agents shipped together

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.

agentmods
npx agentmods add commands/elnora-ai/elnora-linear/linear-cleanup
Clone the repo
git clone --depth 1 https://github.com/Elnora-AI/elnora-linear

Or install linear-workspace, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 5 agents.

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-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/commands/elnora-ai/elnora-linear/linear-cleanup.svg)](https://agentmods.dev/commands/elnora-ai/elnora-linear/linear-cleanup)
Your own site
<a href="https://agentmods.dev/commands/elnora-ai/elnora-linear/linear-cleanup"><img src="https://agentmods.dev/badge/commands/elnora-ai/elnora-linear/linear-cleanup.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.00850
Opus 5 $0.00015 $0.00425
Sonnet 5 $0.00006 $0.00170
Haiku 4.5 $0.00003 $0.00085

Measured 4d ago against content hash b99362b7023d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

linear-cleanup 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 4d ago.

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.

commands/linear-cleanup.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linear cleanup

Audit Linear issues in {{scope}} and propose fixes. Walks six checks, summarizes findings, and asks per-category before any mutation. All elnora-linear mutations default to dry-run — explicit --yes is required to commit.

The six checks

1. Missing required labels

elnora-linear issues list --team "<scope>" --limit 100 --output json \
  | jq '.[] | select((.labels // []) | map(.name) | any(startswith("Type:")) | not)'

For each issue missing the team's required label prefixes (see references/label-policy.json or elnora-linear teams get <key>), suggest labels from title/description keywords. Repeat the startswith check for every required prefix on the team (Layer:, Source:, etc.).

2. Stale issues (no activity 30+ days)

elnora-linear cleanup --team "<scope>" --inactive-days 30 --action comment --output text

Dry-run by default. Offer: comment / close / cancel / skip. Apply chosen action with --yes.

3. Potential duplicates

elnora-linear issues list --team "<scope>" --limit 200 --output json

For each pair of issues with >70% title similarity, surface them as candidates. Suggest elnora-linear relations create --type duplicate-of or merge.

4. Wrong state

elnora-linear projects list --team "<scope>" --output json
elnora-linear issues list --team "<scope>" --limit 200 --output json

Cross-check each issue's state against its project's status (a Completed project shouldn't have In Progress issues; a Backlog project shouldn't have In Progress issues). Flag mismatches.

5. Orphaned issues (no project)

elnora-linear issues list --team "<scope>" --limit 200 --output json \
  | jq '.[] | select(.project == null)'

For each orphan, suggest the most likely project based on title/description vs elnora-linear projects list --output json.

6. Unactionable issues

elnora-linear issues list --team "<scope>" --limit 200 --output json

Read the full file on GitHub · 81 lines

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. 4d ago First seen · 81 lines · 30 tokens per session scan A b99362b7023d

Subscribe to this mod's changes

linear-cleanup is a command published in the GitHub repository Elnora-AI/elnora-linear (7 stars, last pushed 3d ago), licensed Apache-2.0. It adds 30 tokens to every session and 850 once invoked, about $0.0002 per session on Opus 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-08-31.