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.
npx agentmods add instructions/linearis-oss/linearis/agents-mdgit clone --depth 1 https://github.com/linearis-oss/linearisWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02381 | $0.02381 |
| Opus 5 | $0.01190 | $0.01190 |
| Sonnet 5 | $0.00476 | $0.00476 |
| Haiku 4.5 | $0.00238 | $0.00238 |
Grade A, and why
linearis 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Identity
Linearis is a CLI tool for Linear.app that outputs JSON only (except help/usage text). It is designed for both human users and LLM agents, optimized for minimal token usage and maximum structure.
- Runtime: Node.js ≥ 22, ES Modules, TypeScript strict mode
- Package manager: npm
- Formatter/Linter: Biome (
npm run check) - Tests: Vitest (
npm test) - GraphQL codegen:
npm run generate(never editsrc/gql/)
Audience
This file is for AI coding agents working on the Linearis codebase. For user documentation, see README.md. For human contributor guidelines, see CONTRIBUTING.md.
Quick Commands
npm install # install deps, codegen, and lefthook (via prepare hook)
npm test # unit tests (vitest)
npm run build # compile to dist/
npm run generate # regenerate GraphQL types from .graphql files
npm run check # biome format + lint (auto-fix)
npm run check:ci # biome format + lint (CI, no fix)
npm run generate:usage # regenerate USAGE.md
Commit Rules
- Conventional Commits required (enforced by commitlint via lefthook).
- Issue/PR refs in commit body when applicable:
Closes #n,Refs #n,Part of #n. - No AI co-author trailers. Do not add
Co-authored-byfor AI assistants.
See CONTRIBUTING.md for the full commit types table and examples.
Architecture (5 Layers)
CLI Input → Command → Resolver → Service → JSON Output
│ │ │
createContext GraphQL GraphQL
(UUID) (data)
| Layer | Directory | Client | Responsibility |
|---|---|---|---|
| Client | src/client/ |
— | Thin API wrappers, no logic |
| Resolver | src/resolvers/ |
GraphQLClient |
Human ID → UUID conversion |
| Service | src/services/ |
GraphQLClient |
Business logic, CRUD via GraphQL |
| Command | src/commands/ |
GraphQLClient via createContext() |
CLI orchestration only |
| Common | src/common/ |
— | Shared types, errors, output, auth |
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.
- 2d ago First seen · 243 lines · 2,381 tokens per session scan A f967bf420dbf
linearis AGENTS.md is an instructions file published in the GitHub repository linearis-oss/linearis (248 stars, last pushed 3d ago), licensed MIT. It adds 2,381 tokens to every session, about $0.0119 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-30.
Other instructions, from other repositories
linear-cli AGENTS.md
Instructions for schpet/linear-cli, covering basics, permissions, error handling, cli flags and tests.
linctl CLAUDE.md
Instructions for KyaniteHQ/linctl, covering claude.md, domain language — read before naming anything, build / test / lint (go-task), generated graphql client and live & integration tests.
linear-cli CLAUDE.md
Instructions for schpet/linear-cli, a project described as: linear without leaving the command line: list, start, and create PRs for linear issues. agent friendly.
intelligent-terminal rust.instructions.md
Concise Rust coding conventions for this repository.
InvestSkill GEMINI.md
Instructions for yennanliu/InvestSkill, covering investskill — gemini cli setup & usage guide, installation & setup, quick start, navigate to the investskill directory and start gemini cli (loads gemini.md automatically).
she-love-me CLAUDE.md
Instructions for 863401402/she-love-me, covering claude.md and 唯一工作流.