Deploy: Instructions file for Codex

AGENTS.md

Deploy AGENTS.md is an instructions file for Codex, OpenCode from TryGhost/Deploy. It costs 1,309 tokens per session, scanned A, original, MIT.

A project instruction guide for TryGhost/Deploy, a TypeScript plugin that deploys Ghost projects to servers over SSH. It records required commands, tests, and code boundaries.

In plain words
What is it for?
Use it when installing dependencies, building, type-checking, linting, running unit or end-to-end tests, or changing deployment code.
Why use it?
It helps coding agents change the project without breaking its deployment behavior, package setup, or testing expectations.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tryghost/deploy/agents-md"><img src="https://agentmods.dev/badge/instructions/tryghost/deploy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,309 This file is loaded in full into every session.
When invoked 1,309 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.01309 $0.01309
Opus 5.5 $0.00524 $0.00524
Sonnet 5.5 $0.00262 $0.00262
Haiku 4.5 $0.00131 $0.00131

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

Security

Grade A, and why

Deploy 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.

AGENTS.md · 83 lines

How it starts

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

AGENTS.md

@tryghost/deploy is a Shipit plugin that deploys internal Ghost projects to servers over SSH. TypeScript compiled to CommonJS, pnpm, Vitest. See README.md for what it does and how consumers use it.

Commands

pnpm install              # uses the pinned pnpm (packageManager field) via Corepack
pnpm build                # tsc → dist/ (the published, compiled output)
pnpm typecheck            # tsc --noEmit
pnpm lint                 # oxlint + oxfmt --check
pnpm lint:fix             # oxlint --fix + oxfmt
pnpm test                 # lint + typecheck + unit
pnpm test:unit            # Vitest unit suite, with coverage (gated >=80%)
pnpm test:e2e             # full deploy against throwaway Docker containers

Boundaries — do not break these

  • lib/deploy.ts is a runtime contract, not just this repo's tooling. It shells the dependency install command (yarn / npm / pnpm install) on the remote servers it deploys to, chosen from shipit.config. Jenkins-deployed services depend on this exact behaviour. Don't "modernise" or change it; the unit tests (yarn install --production, npm install) and the e2e installs lodash tests exist to pin it. This is separate from how this repo builds itself (which is pnpm).
  • Source is TypeScript in index.ts / lib/*.ts; the published package is the compiled dist/ (main/types point there, files ships only dist). dist/ is gitignored and built by pnpm build — in CI, before publish (prepublishOnly), and inside the e2e runner. Don't edit or commit dist; change the .ts source and rebuild.
  • Node 22.23.4 is a deliberate required floor — engines: ">=22.23.4", CI matrix 22.23.4/24. Local development follows .nvmrc. The Jenkins jobs run this plugin under a per-project Node version (jenkins-jobs/jobs/apps/projects.yaml): Daisy.js/Zuul/dispatchers/Stats-Service on 22.23.4 (the Ghost(Pro) server runtime), Scheduler/UpdateCheck/elastic-alerting on 24 — but Ghost-Rollout on 18.20.2 and elasticsearch-query-exporter on 14.18.1 (legacy Ubuntu 18.04 / glibc 2.27 infra that can't run Node 18+). We require 22.23.4 anyway: those sub-20 jobs will fail to install a new version until the infra team upgrades them (in progress) — a known, accepted tradeoff, not a bug. Do not lower engines to "support" Node 14/18. Raise the floor only when no Jenkins job that can run this plugin is left below the new version.
  • GitHub Actions must be pinned to full commit SHAs (org policy rejects floating tags — every job fails in seconds otherwise). Keep the # vX.Y.Z comment next to each SHA.

Read the full file on GitHub · 83 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. 2d ago Changed · -43 tokens per session 1e511394c82a
  2. 8d ago Changed · +2 lines · +48 tokens per session b63d53f75992
  3. 1mo ago First seen · 81 lines · 1,304 tokens per session scan A 59b1ef981dc5

Subscribe to this mod's changes

Deploy AGENTS.md is an instructions file published in the GitHub repository TryGhost/Deploy (7 stars, last pushed yesterday), licensed MIT. It adds 1,309 tokens to every session, about $0.0052 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-09-04.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens