Polyglow: Instructions file for Codex

AGENTS.md

Polyglow AGENTS.md is an instructions file for Codex, OpenCode from zbzailabs/Polyglow. It costs 2,285 tokens per session, scanned A, original, MIT.

Project instructions for Polyglow, a static multilingual editorial website built with Astro, Markdown or MDX content, Tailwind CSS, and search tools.

In plain words
What is it for?
Use it when editing the Astro theme, localized routes, editorial content, styling, search, SEO metadata, or view transitions.
Why use it?
It records the site's structure, technical requirements, and restrictions so agents can change pages and content without breaking its build or independent operation.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zbzailabs/polyglow/agents-md"><img src="https://agentmods.dev/badge/instructions/zbzailabs/polyglow/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,285 This file is loaded in full into every session.
When invoked 2,285 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.02285 $0.02285
Opus 5.5 $0.00914 $0.00914
Sonnet 5.5 $0.00457 $0.00457
Haiku 4.5 $0.00229 $0.00229

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

Security

Grade A, and why

Polyglow 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 2mo 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 · 212 lines

How it starts

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

Polyglow Agent Guide

Purpose

This file tells coding agents how to work in this repository. Keep engineering workflow, commands, repository structure, deployment, and contribution rules here. Keep visual tokens and UI appearance rules in DESIGN.md.

Polyglow is an Astro 7 static multilingual editorial theme. The current default locale is English, public routes keep locale prefixes, and / redirects to /en/. The repository must remain usable without private services, databases, Cloudflare credentials, analytics IDs, ad IDs, payment credentials, or wallet addresses.

Stack

  • Astro 7 with output: "static", trailingSlash: "always", and compressHTML: true to preserve the existing HTML whitespace behavior.
  • Tailwind CSS v4 through @tailwindcss/vite and CSS-first runtime tokens.
  • MDX content collections backed by astro:content glob loaders.
  • @astrojs/markdown-satteri as the Markdown and MDX processor.
  • Custom Pagefind integration in src/integrations/pagefind.ts.
  • astro-icon with a Lucide allowlist configured in astro.config.mjs.
  • astro-seo for standard SEO metadata.
  • Astro ClientRouter for view transitions.
  • @astrojs/partytown for optional Google Tag Manager.
  • Optional Google AdSense through src/components/widgets/Adsense.astro.
  • Optional x402 metadata through src/components/widgets/X402.astro.
  • Optional x402 Cloudflare gateway through src/x402/cloudflare-worker.ts.
  • Astro image optimization through OptimizedPicture.astro.
  • Optional Cloudflare Workers Static Assets deployment.

Required Commands

  • Install dependencies: pnpm install
  • Start development server: pnpm dev
  • Start managed background development server: pnpm dev:background
  • Start an independent parallel development server: pnpm dev:parallel -- --port <port>
  • Check managed development server: pnpm dev:status
  • Read managed development server logs: pnpm dev:logs
  • Stop managed development server: pnpm dev:stop
  • Start development server with JSON logs: pnpm dev:json
  • Typecheck and build: pnpm build
  • Force a cold Astro build: pnpm astro build --force
  • Verify Astro 7 upgrade contract: pnpm test:upgrade
  • Preview built site: pnpm preview
  • Deploy prebuilt static assets to Cloudflare Workers: pnpm deploy

Read the full file on GitHub · 212 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. 2mo ago Changed · +20 lines · +205 tokens per session b59a46ce2a4a
  2. 2mo ago First seen · 192 lines · 2,080 tokens per session scan A 10f2ff08a509

Subscribe to this mod's changes

Polyglow AGENTS.md is an instructions file published in the GitHub repository zbzailabs/Polyglow (24 stars, last pushed 14d ago), licensed MIT. It adds 2,285 tokens to every session, about $0.0091 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

Polyglow AGENTS.md compared with instructions from other repositories

Polyglow AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Polyglow AGENTS.mdzbzailabs/PolyglowInstructions file2414d agoMITA2,285Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode