# PAG

> Pattern Abstract Grammar (PAG) is a structured format for writing instructions to LLMs, defined by a formal grammar that is grounded in a reasoning ontology and published with a guide and a set of templates.

Canonical: https://banes-lab.com/pag
Page as Markdown: https://banes-lab.com/pag.md
Page as JSON: https://banes-lab.com/json/pag
This index as JSON: https://banes-lab.com/json/api/pages/pag

## Entries

- [PAG · Introduction](https://banes-lab.com/api/pages/pag/introduction.md): Pattern Abstract Grammar (PAG) is a structured format for writing instructions to LLMs, defined by a formal grammar that is grounded in a reasoning ontology and published with a guide and a set of templates.
- [PAG · Guide](https://banes-lab.com/api/pages/pag/guide.md): This section covers how a first document is written.
- [PAG · Orchestration](https://banes-lab.com/api/pages/pag/orchestration.md): Orchestration is the part of a document that says how work is ordered and where it runs in parallel, and the grammar does not let that be implied.
- [PAG · Patterns](https://banes-lab.com/api/pages/pag/patterns.md): This section covers the verbs and prepositions a document is written with.
- [PAG · Keywords](https://banes-lab.com/api/pages/pag/keywords.md): The keywords fall into categories by the job they do in a line, and every keyword is uppercase because that is the form the model has seen most in code.
- [PAG · Grammar](https://banes-lab.com/api/pages/pag/grammar.md): PAG is defined by a context-free grammar written in Backus–Naur form (BNF), and its rules fall into five categories.
- [PAG · Validation](https://banes-lab.com/api/pages/pag/validation.md): This section covers the handoff gate that closes every node.
- [PAG · Templates](https://banes-lab.com/api/pages/pag/templates.md): This section covers the template and how an instance is raised from it.
