wasp AGENTS.md

wasp AGENTS.md is an instructions file for Codex, OpenCode from wasp-lang/wasp. It costs 929 tokens per session, scanned A, original, MIT.

Repository instructions for Wasp, a full-stack web framework that turns TypeScript configuration into React and Node.js applications. They cover the monorepo structure, Haskell compiler, development commands, and coding conventions.

In plain words
What is it for?
Use them when modifying the Wasp compiler, command-line tools, generated code, documentation, examples, scripts, or end-to-end tests.
Why use it?
They give coding agents the project context needed to make changes in the right part of a large repository. This reduces confusion about how Wasp is built and organized.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wasp-lang/wasp/agents-md.svg)](https://agentmods.dev/instructions/wasp-lang/wasp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wasp-lang/wasp/agents-md"><img src="https://agentmods.dev/badge/instructions/wasp-lang/wasp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 929 This file is loaded in full into every session.
When invoked 929 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.00929 $0.00929
Opus 5 $0.00464 $0.00464
Sonnet 5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

wasp 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 4d 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 · 59 lines

How it starts

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

Wasp Monorepo

Wasp is a full-stack web framework that compiles TypeScript config (main.wasp.ts) files into React + Node.js applications. The compiler is written in Haskell.

Repository Structure

  • waspc/ — Haskell compiler, CLI, and LSP server (the core of Wasp)
    • src/ — Main compiler library (Analyzer, Generator, AppSpec, Psl)
    • cli/src/ — CLI commands (start, build, new, deploy, etc.)
    • data/packages/ — TypeScript packages called by the CLI when compiling projects as FFI
    • data/Generator/libs/ — TypeScript libraries embedded into generated project code
    • data/Generator/templates/ — Mustache templates for code generation
    • e2e-tests/ — Golden file snapshot tests
    • runMain development script (run ./run with no args to see all commands)
  • wasp-app-runner/ — Node.js CLI for running Wasp apps in e2e tests
  • web/ — Documentation website (Docusaurus), deployed to wasp.sh
  • examples/ — Tutorial and example apps (kitchen-sink, waspello, etc.)
  • scripts/ — Monorepo-level build/packaging scripts

Build & Development

All waspc development commands run from the waspc/ directory via the ./run script. Run ./run with no arguments to see the full list of available commands (build, test, format, lint, etc.).

Key things to know:

  • Two-phase build: TS packages in data/packages/ and libs in data/Generator/libs/ compile first, then Haskell (which embeds them). Use ./run build for the full build.
  • Run the dev CLI with ./run wasp-cli <args>.
  • Toolchain versions are specified in mise.toml.

Code Conventions

  • When renaming a type or function, cascade the rename to parameters, local variables, and other names derived from it.

Haskell

  • Simple, readable Haskell — no complicated features. See CONTRIBUTING.md.
  • Default extensions are listed in waspc/waspc.cabal.
  • CamelCase for types/modules, camelCase for functions/values.
  • Qualified imports preferred.
  • Formatting: Ormolu (./run check:ormolu / ./run format:ormolu). Linting: HLint (./run hlint, config in waspc/.hlint.yaml).
  • Tests use tasty + hspec + QuickCheck, mirroring source module paths with a Test suffix.

Read the full file on GitHub · 59 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. 4d ago First seen · 59 lines · 929 tokens per session scan A c9afdb387ab1

Subscribe to this mod's changes

wasp AGENTS.md is an instructions file published in the GitHub repository wasp-lang/wasp (18,714 stars, last pushed 5d ago), licensed MIT. It adds 929 tokens to every session, about $0.0046 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.