cli: Instructions file for Codex

AGENTS.md

cli AGENTS.md is an instructions file for Codex, OpenCode from planetscale/cli. It costs 19,506 tokens per session, scanned A, original, Apache-2.0.

Instructions for using the PlanetScale command-line tool, which manages PlanetScale databases from a terminal.

In plain words
What is it for?
Use them to list organizations, databases, and branches in machine-readable form, check authentication, and choose between CLI automation and PlanetScale's hosted tools.
Why use it?
They help an automated coding agent use the right command format, authentication checks, placeholders, and safety rules for a public repository.

Instructions file for CodexOpenCode ✓ vendor

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

This is planetscale/cli's own configuration. It tells Codex and OpenCode how to work on 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 cli configures →

About the project

PlanetScale CLI is a command-line tool for working with PlanetScale databases, including their branches and deploy requests. It is used by developers and database operators managing PlanetScale projects. The catalogue instruction helps coding agents operate PlanetScale through the CLI.

planetscale/cli · 671 stars · on GitHub · planetscale.com

Reuse

Borrowing it

Nothing to install: this file belongs to planetscale/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/planetscale/cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/planetscale/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 cli AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/planetscale/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/planetscale/cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19,506 This file is loaded in full into every session.
When invoked 19,506 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.19506 $0.19506
Opus 5.5 $0.07802 $0.07802
Sonnet 5.5 $0.03901 $0.03901
Haiku 4.5 $0.01951 $0.01951

Measured 8d ago against content hash 9230d8ace0ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 8d 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 · 1,104 lines

How it starts

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

PlanetScale CLI — agent guide

For any automated agent or script using pscale. Always pass --format json. Substitute placeholders from the user's request or from prior command output (org list, database list, branch list).

If you only have the installed pscale binary and this guide is not already in your context, load it and check auth:

pscale --skill
pscale auth check --format json

Use direct CLI automation for shell commands and scripts. Use the hosted PlanetScale MCP server for MCP clients.

This file documents how to invoke pscale. For database assessment, safety review, and operational workflows, install the PlanetScale skills pack (planetscale-pscale-cli-automation covers CLI automation; planetscale-safe-orchestrator runs the full review). In application repositories, add a separate project AGENTS.md with org, database, branch, and approval rules (see skill planetscale-mcp-agent-operating-model in that repo).

Public repository safety

This repository is public. Do not include internal or sensitive information in commits, commit messages, pull request titles, or pull request descriptions. Do not name or link private repositories, internal issues or pull requests, Slack conversations, customer details, credentials, or private infrastructure. Include references only when the referenced resource is public.

Concepts

PlanetScale is a serverless database platform for MySQL (via Vitess), PostgreSQL, and Neki (sharded Postgres). Resources are namespaced: an organization (org) owns databases, and each database contains branches — isolated copies of schema (and, for Postgres and Neki, data) that work like git branches. The default branch is typically main (production). Most commands target a database + branch and take --org to say which organization they belong to. Throughout this guide, <org>, <database>, and <branch> are placeholders for those names — pick a branch with "ready": true from branch list.

Read the full file on GitHub · 1,104 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. 8d ago Changed · +45 lines · +1,015 tokens per session 9230d8ace0ea
  2. 9d ago Changed · +11 lines · +146 tokens per session 4c3ed2de772e
  3. 18d ago Changed · +3 lines · +157 tokens per session 189d995dbdc1
  4. 25d ago Changed · +5 lines · +310 tokens per session 8b0b6d283e1b
  5. 28d ago Changed · +6 lines · +73 tokens per session 138bc1947a31
  6. 1mo ago Changed · +14 lines · +275 tokens per session 292195af4c76
  7. 1mo ago Changed · +8 lines · +164 tokens per session 7995e4510742
  8. 1mo ago Changed · +16 lines · +416 tokens per session 0c841e47d4f6
  9. 1mo ago Changed · +37 tokens per session 1854fb69e994
  10. 1mo ago First seen · 996 lines · 16,913 tokens per session scan A b213886c2f9e

Subscribe to this mod's changes

cli AGENTS.md is an instructions file published in the GitHub repository planetscale/cli (671 stars, last pushed yesterday), licensed Apache-2.0. It adds 19,506 tokens to every session, about $0.0780 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

cli AGENTS.md compared with instructions from other repositories

cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli AGENTS.mdplanetscale/cliInstructions file671yesterdayApache-2.0A19,506Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode