plane-cli AGENTS.md

Project instructions for PlaneCLI, a Python command-line tool for managing Plane.so projects, work items, cycles, documents, labels, and related records. A CLI is a text-based interface for running commands.

In plain words
What is it for?
Use them when adding or changing PlaneCLI commands, fuzzy lookup of resources by name or ID, project-management features, tests, linting, formatting, or documentation.
Why use it?
They define the commands, code layout, formatting rules, and checks needed to develop the tool consistently.

Instructions file for CodexOpenCode

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 instructions/cpatrickalves/plane-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/cpatrickalves/plane-cli

Made for: Codex, OpenCode.

Per session 1,512 This file is loaded in full into every session.
When invoked 1,512 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01512 $0.01512
Opus 5 $0.00756 $0.00756
Sonnet 5 $0.00302 $0.00302
Haiku 4.5 $0.00151 $0.00151

Measured yesterday against content hash 6381530750fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plane-cli AGENTS.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Documents (Pages): SDK support is incomplete; `commands/documents.py` calls the HTTP API directly with `requests` + `X-Api-Key` via `run_sdk(requests.get, ...)`.
AGENTS.md · 69 lines

How it starts

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

PlaneCLI

A Python CLI for Plane.so (SaaS or self-hosted) that manages projects, work items, cycles, modules, documents, labels, states, intake queues, and comments. Its defining feature is fuzzy resource resolution: any resource can be referenced by name, identifier (ABC-123), or UUID. Built with cyclopts, Rich, rapidfuzz, cashews, and the official plane-sdk.

Language

All docs, comments, and commit messages in English.

Commands

Everything runs through uv; common tasks are wrapped in the Makefile.

make install                       # uv sync (dev environment)
make test                          # uv run pytest tests/
make lint                          # ruff check src/
make lint-fix                      # ruff check --fix src/
make format                        # ruff format src/ tests/
make check                         # lint + test — run before committing
make run ARGS="wi ls -p Frontend"  # run the CLI

Single test: uv run pytest tests/test_resolve.py::test_name -v. Line length 100, Python >= 3.11, ruff selects E, F, I, W.

Structure

src/planecli/
  app.py           # Root cyclopts App; main() entry point; sub-app registration
  commands/        # One module per resource (list/show/create/update/delete). New features go here.
  utils/resolve.py # Resolution layer: resolve_<x>/resolve_<x>_async (UUID → identifier → fuzzy name)
  utils/fuzzy.py   # rapidfuzz token_sort_ratio, threshold 60
  api/             # client.py (PlaneClient singleton); async_sdk.py (async wrapper)
  cache.py         # cashews disk cache; one cached_list_<x> per resource
  formatters/      # output() / output_single() — table to stderr, JSON to stdout
  exceptions.py    # PlaneCLIError subclasses with message/hint/exit_code

Request flow: command → resolve → async SDK wrapper → (cache | Plane SDK) → formatter. See docs/architecture.md.

Conventions

  • Never call the sync Plane SDK directly from a command. Wrap single calls in run_sdk(fn, *args) and paginated lists in paginate_all_async(list_fn, ...). For concurrent batches use create_client() (a fresh client per thread — don't share the singleton's requests.Session). See ADR-0001.
  • Reads go through the cache layer. Resolvers and list commands call cached_list_<x>(...), which returns plain dicts (not Pydantic models). After any create/update/delete, call await invalidate_resource("<resource>", workspace, project_id). See ADR-0004.
  • Error handling. Wrap SDK calls in try/except PlaneError and raise handle_api_error(e). Raise ValidationError/ResourceNotFoundError for user-facing problems. Exit codes: Auth=2, NotFound=3, API=4, Validation=5.
  • --json flag. Every read/mutate command takes json: bool = False and passes as_json=json to the formatter. Table output stays on stderr so --json 2>/dev/null yields clean JSON. See ADR-0005.
  • Lazy imports. Import SDK models and cache helpers inside the command function to keep CLI startup fast (sub-app registration in app.py uses # noqa: E402 deliberately).
  • cyclopts idioms. Sub-apps declare aliases via name=["module", "modules"]; subcommands via @app.command(name="list", alias="ls"); short flags via Annotated[str, Parameter(alias="-p")]. Numpydoc parameter docstrings become --help text.

Read the full file on GitHub · 69 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. yesterday First seen · 69 lines · 1,512 tokens per session scan A 6381530750fa

Subscribe to this mod's changes

plane-cli AGENTS.md is an instructions file published in the GitHub repository cpatrickalves/plane-cli (20 stars, last pushed 14d ago), licensed MIT. It adds 1,512 tokens to every session, about $0.0076 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.