Agentic Linear tool. Read, write, view and plan Linear all things linear utilizing agents. Treats Linear issues as markdown files you can edit, diff, and apply — the same way you already work with code basically. Ships as a CLI and an MCP server sharing one library core.
Two shapes:
- Ad-hoc ops —
list,show,set,comment,new,archive,pull/edit/push,diff,rawGraphQL escape hatch. - Declarative planning — author a project + its issues + their relationships as a directory of markdown files, then
lebop plan applyrealizes the whole graph in Linear in one idempotent pass.
# Install (macOS / Linux, x64 / arm64; verifies SHA256 against the release):
curl -fsSL https://raw.githubusercontent.com/N0xMare/lebop/main/scripts/install.sh | bash
# Authenticate with a Linear Personal API Key (Settings → API in Linear):
lebop auth login
# Try it:
lebop teams
lebop list --assignee me --state-type started --limit 10The installer drops a single self-contained binary (no Bun runtime needed) at ~/.local/bin/lebop if writable, otherwise /usr/local/bin/lebop (sudo). Override with LEBOP_INSTALL_DIR=…. Pin a specific version with LEBOP_VERSION=v0.0.2.
From source (Bun required):
git clone https://github.com/N0xMare/lebop && cd lebop
bun install && bun link
mkdir -p "$HOME/.local/bin"
ln -sf "$HOME/.bun/bin/lebop" "$HOME/.local/bin/lebop"
# add ~/.local/bin to PATH if it isn't already (matches the binary installer)Per-user config lives at ~/.lebop/config.yaml; auth at ~/.lebop/auth.json (mode 0600); local cache at ~/.lebop/cache/<repo-hash>/. Your repo working tree stays pristine — all runtime state is in ~/.lebop/.
Full setup, config, and command reference: docs/spec.md.
lebop teams
lebop projects [--team KEY] [--state STATE]
lebop list --assignee me --state-type started
lebop list --project "Relayer Hardening" --label type:featurelebop show UE-321 # print inline, no cache write — the right "just show me this"
lebop show UE-321 --json # structured output for programmatic uselebop set state UE-321 "In Progress"
lebop set priority UE-321 urgent # name or 0..4
lebop set labels UE-321 +urgent -area:backend # delta syntax
lebop set assignee UE-321 @me
lebop set links UE-321 +blocks:UE-322 +related:UE-323 # 5 link kinds
lebop comment add UE-321 --body "LGTM"lebop pull UE-321..UE-329 # or space-separated list, or single id
# ... edit files under ~/.lebop/cache/<hash>/issues/UE-321/description.md ...
lebop status # git-like: see what's modified
lebop push --dry-run # preview mutations
lebop push # apply (CAS-protected; --force to bypass)lebop push runs the linter first — warnings print to stderr, --strict blocks. After success the cache stays clean immediately, no --refresh needed.
lebop new --title "Chain-aware gas pricing" \
--project "Relayer Hardening" \
--state Backlog \
--priority high \
--label type:feature \
--description "Use eth_feeHistory to size initial bids."
lebop archive UE-321 UE-322 # reversible from the Linear UIAuthor the plan in markdown on disk:
plans/rpc-failover/
├── _project.md # name / team / description / body
├── epic.md # top-level issue (can have sub-issues via `parent:`)
├── design.md # has `parent: epic` → renders as a sub-issue in Linear
├── impl.md # same
└── bench.md # links, labels, priorities, estimates
Each *.md file has YAML frontmatter for structured fields and markdown body for the description:
---
title: "Design failover priority algorithm"
state: Backlog
priority: high
estimate: 3 # points (optional)
labels: [type:feature]
parent: epic # slug of another file, or bare UE-XXX
blocks: [impl] # local slug OR external UE-XXX
related: [UE-250]
---
Approach doc. Multi-RPC failover selection rules, …Then realize it in Linear:
lebop plan validate plans/rpc-failover # parse + resolve refs; no Linear writes
lebop plan lint plans/rpc-failover --fix # catch markdown-renderer gotchas first
lebop plan apply plans/rpc-failover --dry-run # preview
lebop plan apply plans/rpc-failover # create project + issues + links; writes linear_id back
lebop plan diff plans/rpc-failover # local-vs-remote drift after changes
lebop plan pull plans/rpc-failover --force # overwrite local with remote
lebop plan pull plans/rpc-failover --include-new # also import remote-only issuesRe-apply is idempotent — unchanged files stay unchanged. Parents get created before children (topological). Slug links auto-rewrite to UE-XXX once issues exist. Relations (blocks / blocked_by / related / duplicates / duplicated_by) honor Linear's single-record-per-pair semantics.
See docs/spec.md for the full frontmatter schema, apply semantics, and edge cases.
lebop diff UE-321 # unified diff of local cache vs live remote
lebop raw 'query { viewer { id email } }' # any GraphQL lebop doesn't wrap
echo '{"id":"UE-321"}' | lebop raw 'query($id:String!){issue(id:$id){title}}' --variables-json -lebop lint # scans ~/.lebop/cache/<hash>/ by default
lebop lint path/to/some.md --fix # explicit paths; --fix applies safe rewrites
lebop lint --strict # exit non-zero on warnings (pre-commit gate)Rules catch Linear's markdown landmines (table-cell 1. breaking rows, text\n--- silently becoming a setext H2, etc.) plus optional repo-scoped rules (bracketed issue refs, path rewrites, custom regex formats) driven by per-repo config.
Plan files are git-tracked source of truth, but linear_id: is written back into each file by plan apply. If two teammates both run plan apply on the same plan directory before the writeback commits land in git, you get duplicate issues in Linear (each apply creates fresh ones with no shared identifier).
Workflow for shared plans:
- One person ("first-applier") runs
lebop plan apply <dir>. - Immediately commit the writeback (
git add <plan-dir>→ commit → push). - Everyone else pulls that commit before touching the plan.
- From then on,
apply/diff/pullby anyone on the team targets the same Linear entities.
If two people already applied in parallel: archive one set via lebop archive <ids...> + lebop raw projectArchive, then rewrite the plan files to reference the keepers' linear_id: values.
~/.lebop/config.yaml is optional — lebop works with just auth. Config extends behavior per-repo:
default_team: UE # global fallback (single-workspace setups)
# Multi-workspace? Set per-workspace defaults instead — keyed by Linear
# workspace slug (the urlKey shown in `lebop auth list`):
workspace_team_defaults:
unlink-xyz: UE
noxor: NOX
workspaces:
UE:
url_prefix: https://linear.app/unlink-xyz # needed by L004 (bracket issue refs)
repos:
/Users/you/dev/some-repo: # absolute git-root path
team: UE # team override for this repo
conventions:
bracket_issue_refs: true # L004 linter rule
path_rewrites: # R001 linter rule
- { from: "crates/", to: "protocol/backend/crates/" }
required_formats: # R002 linter rule — regex-based
- { pattern: '\bpr-(\d+)\b', suggest: '[#$1]', message: "Use [#N] form" }Team metadata is cached at ~/.lebop/cache/<hash>/_team/<TEAM>.yaml with a 1h TTL; auto-refreshes on name-resolution misses (e.g., a project you just created).
lebop ships a user-level skill plus three slash commands that teach Claude Code agents when and how to use the tool:
| File | Role |
|---|---|
agents/skills/lebop/SKILL.md |
Invocation guide: verb-selection table, pull→edit→push loop, plan workflow, team-collaboration hazard, Linear quirks |
agents/commands/lebop-pull.md |
/lebop-pull slash command |
agents/commands/lebop-push.md |
/lebop-push slash command |
agents/commands/lebop-lint.md |
/lebop-lint slash command |
The content is platform-agnostic markdown — Claude Code uses the bundled
./bin/install-claude installer; other agents can be pointed at these
files however they expose skills/rules/prompts. See agents/README.md.
Install via symlinks (so git pull stays in sync with no re-install):
./bin/install-claudeRestart Claude Code or open a new session to pick up the skill.
bun link places the binary at ~/.bun/bin/lebop, which is only on the PATH of interactive shells — not subprocesses spawned by agents like Claude Code. Two options:
Option A — symlink into a universally-on-PATH directory (recommended):
ln -sf "$HOME/.bun/bin/lebop" /opt/homebrew/bin/lebop # macOS w/ Homebrew
# or on Linux:
# sudo ln -sf "$HOME/.bun/bin/lebop" /usr/local/bin/lebopOption B — shell-PATH only (interactive terminals only):
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.zprofile
# then restart your shell and any agent parent processesOption A is required if you want agents started BEFORE you edited your shell config to find lebop.
Best for agents, sufficient for humans. lebop is built around the agent use case (bulk markdown editing, declarative plan apply, renderer-aware lint, CAS-protected push, MCP server). It deliberately skips interactive ergonomics that @schpet/linear-cli does well — issue start (state + branch), pr (gh-cli wrapper), browser-open shortcuts, jj/git issue inference.
@schpet/linear-cli |
Linear MCP server | lebop |
|
|---|---|---|---|
| Shape | Interactive CLI | Hosted MCP | Agentic CLI and MCP, bulk + declarative |
| Round-trip | Per-command | Per-tool-call | Pull-edit-push, plan-diff-pull |
| Mutation batching | Sequential | Sequential | One call per plan or one multi-alias push |
| CAS / staleness | None | None | updatedAt check; --force to bypass |
| Markdown lint | None | None | 8 rules (L001-L006 universal + R001-R002 repo-scoped) |
| Declarative planning | Not a goal | Not exposed | Hero feature |
| GraphQL escape hatch | Yes | No | Yes (raw) |
| Local cache | No | No | Yes (~/.lebop/cache/) |
issue start / branch / pr |
Yes | No | Deliberately skipped — pair with linear-cli |
For agent-driven work, lebop replaces both linear-cli and the Linear MCP. For solo human work, pair lebop (bulk + plan + agent + CAS) with linear-cli (interactive single-issue flows).
See docs/spec.md for the full motivation, design decisions, command reference, plan workflow, lint rule catalog, Linear API facts, discovered quirks, and roadmap to public release.
docs/spec.md— single source of truth: architecture, setup, full CLI reference, plan workflow, lint rules, Linear API facts, discovered quirks, v1.0 roadmap.
MIT — see LICENSE. Contributions welcome; see CONTRIBUTING.md.