linear-cli: Instructions file for Codex

AGENTS.md

linear-cli AGENTS.md is an instructions file for Codex, OpenCode from schpet/linear-cli. It costs 1,042 tokens per session, scanned A, original, ISC.

A set of project instructions for developing a Deno command-line tool that uses Linear's GraphQL API. It covers permissions, typing, output format, diagnostics, and tests.

In plain words
What is it for?
Use it when editing the CLI, changing GraphQL queries or schema-related code, checking errors, running tests, or maintaining paginated JSON output.
Why use it?
It gives the coding agent project-specific rules so changes follow the expected tools, types, permissions, and JSON structure.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is schpet/linear-cli's own configuration. It tells Codex and OpenCode how to work on linear-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything linear-cli configures →

About the project

linear-cli is a command-line client for Linear that lets users list, create, and start issues and manage related workflow without leaving the terminal. It supports interactive and scripted use, works with Git and Jujutsu repositories, and is designed for both developers and AI agents. The catalogue entries extend the CLI with agent instructions, skills, a plugin, settings, and a hook.

schpet/linear-cli · 1,039 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to schpet/linear-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/schpet/linear-cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/schpet/linear-cli

Made for: Codex, OpenCode.

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-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/schpet/linear-cli/agents-md/github.svg)](https://agentmods.dev/instructions/schpet/linear-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/schpet/linear-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/schpet/linear-cli/agents-md/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-cli AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/schpet/linear-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/schpet/linear-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,042 This file is loaded in full into every session.
When invoked 1,042 The same file — it is already loaded in full.
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.01042 $0.01042
Opus 5.5 $0.00417 $0.00417
Sonnet 5.5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

Measured 1mo ago against content hash 29e4978616e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

linear-cli AGENTS.md 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 1mo 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.

AGENTS.md · 50 lines

How it starts

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

basics

  • this is a rust cli. the toolchain is pinned in rust-toolchain.toml. mise.toml pins the dist release tool; run mise trust once in a fresh checkout (until then mise refuses to load this directory, including its cargo shims)
  • crates/linear-cli is the cli (the linear binary plus a library the tests and examples use); crates/linear-schema holds the cynic types generated from graphql/schema.graphql, linear's graphql schema
  • xtask/ holds repository maintenance commands, run with cargo xtask <task> (an alias in .cargo/config.toml). it is not part of the release
  • format with cargo fmt --all, then before finishing a change run just check, which runs:
    • cargo fmt --all --check
    • cargo clippy --locked --workspace --all-targets -- -D warnings
    • cargo test --locked --workspace
  • run the cli from source with just dev <args> (cargo run -- <args>)
  • just sync-schema refreshes graphql/schema.graphql from linear's api
  • after changing commands, flags or help text, run just skill-docs to regenerate skills/linear-cli/SKILL.md and its references. edit skills/linear-cli/SKILL.template.md, not SKILL.md
  • release builds generate THIRD_PARTY_LICENSES.md (gitignored) with cargo xtask licenses and ship it in every archive. it reproduces the license files of every crate in Cargo.lock; a crate whose package ships no license file needs its upstream text added to licenses/supplemental/ and recorded in sources.json there, or the command (and CI, which runs it) fails
  • add an entry under ## [Unreleased] in CHANGELOG.md for user-facing changes
  • ask before adding a new dependency

layout of crates/linear-cli/src

  • src/cli/: clap definitions of every command, flag and help text
  • src/commands/: one module per command group, doing the work for a parsed command
  • src/graphql/operations/: cynic queries and mutations, one module per entity. the field order of a selection is the order of its --json output
  • src/refs/: resolving user input (issue ids, team keys, names, urls) to linear ids
  • src/config/ and src/auth/: .linear.toml, .env, LINEAR_* env vars, credentials and keyring storage
  • src/platform/: terminal, pager, editor, prompts, browser and other process integrations

Read the full file on GitHub · 50 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. 1mo ago Changed · +4 lines · +340 tokens per session 29e4978616e7
  2. 2mo ago First seen · 46 lines · 702 tokens per session scan A 267728a11759

Subscribe to this mod's changes

linear-cli AGENTS.md is an instructions file published in the GitHub repository schpet/linear-cli (1,039 stars, last pushed 14d ago), licensed ISC. It adds 1,042 tokens to every session, about $0.0042 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-08-30.

Related

linear-cli AGENTS.md compared with instructions from other repositories

linear-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
linear-cli AGENTS.mdschpet/linear-cliInstructions file1.0k14d agoISCA1,042Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode