Deploy AGENTS.md

Deploy AGENTS.md is an instructions file for Codex, OpenCode from TryGhost/Deploy. It costs 1,304 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.

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/tryghost/deploy/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,304 This file is loaded in full into every session.
When invoked 1,304 The same file — it is already loaded in full.
Security scan A 0 findings. 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.1 $0.01304 $0.01304
Opus 5 $0.00652 $0.00652
Sonnet 5 $0.00261 $0.00261
Haiku 4.5 $0.00130 $0.00130

Measured today against content hash 59b1ef981dc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 today.

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 · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 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 20.20.0 is a deliberate required floor — engines: ">=20.20.0", .nvmrc, CI matrix 20.20.0/22/24. The Jenkins jobs run this plugin under a per-project Node version (jenkins-jobs/jobs/apps/projects.yaml): Daisy.js, Zuul, Stats-Service and the dispatchers on 20.20.0, Scheduler/UpdateCheck on 24 — but Ghost-Rollout on 18.20.2 and elastic-alerting/AppMonitor on 14.18.1 (legacy Ubuntu 18.04 / glibc 2.27 infra that can't run Node 18+). We require 20.20.0 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.
  • pnpm is pinned to the 10.x line (packageManager) on purpose — pnpm 11 requires Node >= 22.13 and would break the 20.20.0 CI leg. Don't bump it to 11 until the floor moves off Node 20.
  • 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 · 81 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. today 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 today), licensed MIT. It adds 1,304 tokens to every session, about $0.0065 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-09-04.