phpMyFAQ: Instructions file for Codex

AGENTS.md

phpMyFAQ AGENTS.md is an instructions file for Codex, OpenCode from thorsten/phpMyFAQ. It costs 4,013 tokens per session, scanned E, original, MPL-2.0.

Project-specific instructions for phpMyFAQ, a web application for managing frequently asked questions. They describe its PHP and TypeScript code, folders, tests, and setup requirements.

In plain words
What is it for?
Use them to navigate the frontend, admin area, PHP backend, documentation, and test suites, then set up the project with Composer and pnpm.
Why use it?
They give a coding agent the project layout and the steps needed to install its PHP and frontend dependencies. This reduces guesswork when making or testing changes.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thorsten/phpmyfaq/agents-md"><img src="https://agentmods.dev/badge/instructions/thorsten/phpmyfaq/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,013 This file is loaded in full into every session.
When invoked 4,013 The same file — it is already loaded in full.
Security scan E 3 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.04013 $0.04013
Opus 5.5 $0.01605 $0.01605
Sonnet 5.5 $0.00803 $0.00803
Haiku 4.5 $0.00401 $0.00401

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

Security

Grade E, and why

phpMyFAQ AGENTS.md scanned grade E with 3 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 26d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://get.pnpm.io/install.sh | sh -

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

5. Clear route cache (`rm -rf phpmyfaq/cache/routes`) after adding or modifying routes.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://getcomposer.org/installer | php
AGENTS.md · 337 lines

How it starts

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

Project Overview

This project is a web application that allows users to manage FAQs. It is built using HTML5, CSS, TypeScript, and PHP and supports various databases for data storage.

Folder Structure

  • /docs: Contains documentation for the project, including API specifications and user guides.
  • /phpmyfaq/: Contains the source code for the frontend.
  • /phpmyfaq/admin: Contains the source code for the admin.
  • /phpmyfaq/admin/assets: Contains the TypeScript and SCSS source files for the admin frontend. The tests are located in the same directory as the source files to ensure they are always updated together.
  • /phpmyfaq/assets: Contains the TypeScript and SCSS source files for the frontend. The tests are located in the same directory as the source files to ensure they are always updated together.
  • /phpmyfaq/src/phpMyFAQ: Contains the source code for the PHP backend.
  • /tests: Contains PHPUnit v13 based unit and integration tests.
  • /tests/e2e: Contains the Playwright based end-to-end tests.

Development Setup

Download Composer and install PHP dependencies

curl -s https://getcomposer.org/installer | php
php composer.phar install

Install PNPM and install TypeScript dependencies

curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm install
pnpm build

Tool locations

Composer installs dependencies to phpmyfaq/src/libs (not vendor/). CLI tools therefore live in phpmyfaq/src/libs/bin/ (phpunit, mago, rector, etc.).

Tech stack, libraries, and frameworks

  • HTML 5, SCSS, TypeScript, Bootstrap, and Bootstrap Icons for the frontend. TypeScript in strict mode.
  • PHP 8.4 and later with Symfony components for the backend.
  • MySQL, MariaDB, PostgreSQL, SQLite3, and MS SQL for data storage. This option is configurable.
  • Elasticsearch and OpenSearch for search functionality. This option is configurable.
  • Apache, Nginx, IIS, and FrankenPHP as supported web servers. This option is configurable.
  • It uses PNPM as the package manager for JavaScript/TypeScript dependencies.
  • It uses Composer as the package manager for PHP dependencies.
  • Twig as the templating engine.
  • PHPUnit v13 for PHP-based unit testing, vitest for TypeScript-based unit testing.
  • Docker for containerization.
  • GitHub Actions for CI/CD.
  • Mago for code quality and static analysis.

Read the full file on GitHub · 337 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. 26d ago Changed · +7 lines · +201 tokens per session 5d64dc290daf
  2. 1mo ago Changed · +6 lines · +120 tokens per session 440192b7f92c
  3. 1mo ago Changed · +11 lines · +146 tokens per session 2307e4aabfbe
  4. 1mo ago Changed · +19 lines · +339 tokens per session 3aa190df0e5d
  5. 2mo ago First seen · 294 lines · 3,207 tokens per session scan E e7ac06c0a73d

Subscribe to this mod's changes

phpMyFAQ AGENTS.md is an instructions file published in the GitHub repository thorsten/phpMyFAQ (623 stars, last pushed yesterday), licensed MPL-2.0. It adds 4,013 tokens to every session, about $0.0161 per session on Opus 5.5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

phpMyFAQ AGENTS.md compared with instructions from other repositories

phpMyFAQ AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
phpMyFAQ AGENTS.mdthorsten/phpMyFAQInstructions file623yesterdayMPL-2.0E4,013Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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