reboot-cms AGENTS.md

A set of instructions for coding agents working on Reboot CMS, a database-free PHP content-management system where pages are stored as Markdown or PHP files.

In plain words
What is it for?
Use it to navigate and modify Reboot CMS projects, including pages, content blocks, add-ons, templates, configuration, web assets, and tests.
Why use it?
It gives an agent the project’s layout and routing rules, reducing the chance of editing the wrong files or misunderstanding how URLs and content work.

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/shaack/reboot-cms/agents-md
Clone the repo
git clone --depth 1 https://github.com/shaack/reboot-cms

Made for: Codex, OpenCode.

Per session 1,043 This file is loaded in full into every session.
When invoked 1,043 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 $0.01043 $0.01043
Opus 5 $0.00522 $0.00522
Sonnet 5 $0.00209 $0.00209
Haiku 4.5 $0.00104 $0.00104

Measured 2d ago against content hash 53a5105f6972, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reboot-cms 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 · 127 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in a Reboot CMS project.

This file is a condensed orientation. For the full reference — installation, configuration, addons, blocks and multilingual navigation — read the project's README.md in full before making non-trivial changes.

What this is

Reboot CMS is a flat-file, database-free CMS in PHP. Content is plain Markdown, pages render through optional blocks, and every URL maps directly to a file. There is no database, no schema, and no build step for content.

Project layout

  • core/src/Shaack/ — CMS core classes (Reboot, Site, Page, Block, Request, AddOn)
  • core/admin/ — admin interface (itself a Reboot CMS site)
  • site/ — the site you edit:
    • pages/ — content pages (.md or .php)
    • blocks/ — PHP templates for content blocks
    • addons/ — site-specific addon classes
    • template.php — main HTML template
    • config.yml — navigation, addon registration, multilingual settings
  • web/ — document root (index.php, static assets)
  • local/ — environment config (config.yml, .htpasswd) — not in Git
  • tests/ — test suite

Routing: file = URL

A request path maps straight onto site/pages/:

  • /pages/index.md
  • /aboutpages/about.md
  • /howto/gitpages/howto/git.md
  • a folder is served by its index.md

To find a page's source, append the URL path to site/pages/. To add a page, create the file — no route registration needed. A .php page is used when no .md exists at that path.

Pages

A page is Markdown. Optional YAML frontmatter at the top sets metadata:

---
title: About
hide-nav: true
---

A page is split into blocks with HTML comments. Without any block comment the whole file renders as a single text block:

<!-- hero -->
# Welcome

<!-- text -->
Some content.

Blocks

Each block name maps to site/blocks/{name}.php. A block template is plain PHP and receives a $block object — $block->content(), $block->xpath(), $block->getConfig(). Adding a block type means adding one PHP file; there is no framework or build step in between.

Read the full file on GitHub · 127 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 First seen · 127 lines · 1,043 tokens per session scan A 53a5105f6972

Subscribe to this mod's changes

reboot-cms AGENTS.md is an instructions file published in the GitHub repository shaack/reboot-cms (50 stars, last pushed 19d ago), licensed MIT. It adds 1,043 tokens to every session, about $0.0052 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-08-30.