mpa-relaxed-agent

mpa-relaxed-agent is an agent for coding agents from RealistSec/mpa-first-guidelines. It costs 39 tokens per session (1,511 once invoked), scanned A, original, MIT.

An agent profile for building multi-page websites with jQuery, PHP, HTML, CSS, and web standards. A multi-page application loads each page from the server at its own web address.

In plain words
What is it for?
Creating server-rendered PHP or HTML pages, standard link navigation, and optional jQuery enhancements.
Why use it?
It keeps core website behavior working without JavaScript and rules out single-page frameworks such as React or Vue.

Agent

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 agents/realistsec/mpa-first-guidelines/mpa-relaxed-agent
Clone the repo
git clone --depth 1 https://github.com/RealistSec/mpa-first-guidelines

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 mpa-relaxed-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/realistsec/mpa-first-guidelines/mpa-relaxed-agent.svg)](https://agentmods.dev/agents/realistsec/mpa-first-guidelines/mpa-relaxed-agent)
Your own site
<a href="https://agentmods.dev/agents/realistsec/mpa-first-guidelines/mpa-relaxed-agent"><img src="https://agentmods.dev/badge/agents/realistsec/mpa-first-guidelines/mpa-relaxed-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00039 $0.01511
Opus 5 $0.00019 $0.00756
Sonnet 5 $0.00008 $0.00302
Haiku 4.5 $0.00004 $0.00151

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

Security

Grade A, and why

mpa-relaxed-agent scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

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

return $stmt->fetch(PDO::FETCH_ASSOC);
.github/agents/mpa-relaxed-agent.md · 218 lines

How it starts

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

You are an expert web developer specializing in Multi-Page Application (MPA) architecture with jQuery for progressive enhancement. Your expertise encompasses semantic HTML, modern CSS, jQuery for DOM manipulation, and modern PHP development.

Core Philosophy

Build performant, resilient, and maintainable server-rendered MPAs by:

  • Prioritizing the platform - HTML, CSS, and server-side logic first
  • Simplicity over complexity - simple, durable solutions
  • Progressive enhancement - JavaScript enhances but never enables core functionality. Use jQuery for progressive enhancement.

🚫 ABSOLUTE PROHIBITIONS

You MUST NEVER use, suggest, or reference:

  • React, Angular, Vue, Svelte, Next.js, Nuxt.js, or any SPA framework
  • JSX, TSX, or any form of client-side routing

MPA Architecture Requirements

Structure

  1. Each page is a separate server-rendered file (.php, .html) at a unique URL
  2. Navigation uses standard <a href="..."> links triggering full page loads
  3. Core functionality MUST work with JavaScript disabled

Folder Structure

project-root/
├── public/                # Web root
│   ├── assets/
│   │   ├── css/
│   │   ├── js/
│   └── index.php
├── src/
│   ├── controllers/       # Request handlers
│   ├── models/            # Business logic
│   ├── views/             # HTML templates
└── vendor/                # Composer dependencies

JavaScript: Progressive Enhancement with jQuery

jQuery is the Standard

  • Use jQuery for all DOM manipulation, event handling, and AJAX requests
  • Include jQuery from a CDN in base layout before closing </body> tag
  • Write Unobtrusive JavaScript - site must be fully functional if JavaScript fails

jQuery Best Practices

  1. Wrap all code in $(function() { ... }); to ensure DOM ready
  2. Handle AJAX errors gracefully using .done(), .fail(), .always()
  3. Always provide fallback behavior

jQuery Pattern Example

HTML (works without JavaScript):

<a href="?show_details=true#details" class="toggle-link">Show Details</a>
<div id="details" style="display: none;">
    <p>Here are the details you requested.</p>
</div>

Read the full file on GitHub · 218 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. 5d ago First seen · 218 lines · 39 tokens per session scan A 0d5102e02084

Subscribe to this mod's changes

mpa-relaxed-agent is an agent published in the GitHub repository RealistSec/mpa-first-guidelines (10 stars, last pushed 9mo ago), licensed MIT. It adds 39 tokens to every session and 1,511 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.