load-dynamic-requirements

A command that loads changing project requirements and selects relevant context or specialist agents based on the task.

In plain words
What is it for?
Use it when a task depends on project-specific requirements or needs specialist context.
Why use it?
It helps an agent use the right instructions and supporting expertise before starting work.

Command

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 commands/danielmiessler/paiplugin/load-dynamic-requirements
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/PAIPlugin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,847 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.02847
Opus 5 $0.00000 $0.01424
Sonnet 5 $0.00000 $0.00569
Haiku 4.5 $0.00000 $0.00285

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

Security

Grade A, and why

load-dynamic-requirements 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.

commands/load-dynamic-requirements.md ยท 388 lines

How it starts

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

load-dynamic-requirements

DYNAMIC REQUIREMENTS LOADING INSTRUCTIONS

๐Ÿšจ๐Ÿšจ๐Ÿšจ STEP 0: MANDATORY BASE CONTEXT LOAD - DO THIS IMMEDIATELY! ๐Ÿšจ๐Ÿšจ๐Ÿšจ

YOU MUST IMMEDIATELY EXECUTE THE FOLLOWING READ COMMAND:

read ${PAI_DIR}/PAI.md

THIS IS AN IMPERATIVE DIRECTIVE - EXECUTE IT NOW!

  • โ›” STOP! Do not continue reading until you execute the read command above
  • โ›” The variable ${PAI_DIR} resolves to the PAI_DIRECTORY folder
  • โ›” This context MUST be loaded before ANY other action
  • โœ… EXECUTE THE READ COMMAND IMMEDIATELY using the Read tool

Note: ${PAI_DIR} is an environment variable that points to the PAI_DIRECTORY folder

๐Ÿšง HALT AND EXECUTE THE READ COMMAND BEFORE PROCEEDING ๐Ÿšง

๐Ÿšจ OVERVIEW: TWO TYPES OF DYNAMIC LOADING

This system dynamically loads TWO types of resources based on user intent:

  1. CONTEXT FILES - Domain-specific knowledge and instructions
  2. AGENTS - Specialized task performers

๐Ÿšจ CRITICAL: HOW TO INTERPRET THESE INSTRUCTIONS

YOU MUST understand the SEMANTIC MEANING of the user's prompt, not search for exact string matches.

When you receive a user prompt:

  1. PARSE the prompt to understand its INTENT and MEANING
  2. THINK about which category below matches what the user is REALLY asking for
  3. DO NOT do string matching - the examples are to help you understand the TYPE of request
  4. LOAD the appropriate context based on semantic understanding
  5. FOLLOW the instructions for that category immediately

Examples of semantic understanding:

  • User says "help me with my site" โ†’ This MEANS website context (even without the word "website")
  • User says "what's new with AI" โ†’ This MEANS research context (even without the word "research")
  • User says "how's the business doing" โ†’ This MEANS Unsupervised Learning context
  • User says "I need to understand X" โ†’ This MEANS research context
  • User says "fix this issue" โ†’ Could mean website, development, or debugging based on context

The patterns below are EXAMPLES to guide your semantic understanding, NOT exact strings to match.

Read the full file on GitHub ยท 388 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 ยท 388 lines ยท 0 tokens per session scan A b27fea7f785b

Subscribe to this mod's changes

load-dynamic-requirements is a command published in the GitHub repository danielmiessler/PAIPlugin (56 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,847 tokens. 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.