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.
npx agentmods add rules/winsenlabs/platos/webappgit clone --depth 1 https://github.com/winsenlabs/platosWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01176 |
| Opus 5 | $0.00000 | $0.00588 |
| Sonnet 5 | $0.00000 | $0.00235 |
| Haiku 4.5 | $0.00000 | $0.00118 |
Grade A, and why
webapp 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.
This is a copy
98% identical to webapp — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The main trigger.dev webapp, which powers it's API and dashboard and makes up the docker image that is produced as an OSS image, is a Remix 2.1.0 app that uses an express server, written in TypeScript. The following subsystems are either included in the webapp or are used by the webapp in another part of the monorepo:
@trigger.dev/databaseexports a Prisma 6.14.0 client that is used extensively in the webapp to access a PostgreSQL instance. The schema file is schema.prisma@trigger.dev/coreis a published package and is used to share code between the@trigger.dev/sdkand the webapp. It includes functionality but also a load of Zod schemas for data validation. When importing from@trigger.dev/corein the webapp, we never import the root@trigger.dev/corepath, instead we favor one of the subpath exports that you can find in package.json@internal/run-enginehas all the code needed to trigger a run and take it through it's lifecycle to completion.@trigger.dev/redis-workeris a custom redis based background job/worker system that's used in the webapp and also used inside the run engine.
Environment variables and testing
In the webapp, all environment variables are accessed through the env export of env.server.ts, instead of directly accessing process.env.
Ideally, the env.server.ts file would never be imported into a test file, either directly or indirectly. Tests should only imported classes and functions from a file matching app/**/*.ts of the webapp, and that file should not use environment variables, everything should be passed through as options instead. This "service/configuration" separation is important, and can be seen in a few places in the code for examples:
- realtimeClient.server.ts is the testable service, and realtimeClientGlobal.server.ts is the configuration
Also for writing tests in the webapp, checkout our tests.md guide
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.
- 2d ago First seen · 41 lines · 0 tokens per session scan A c6c794617c24
webapp is a cursor rule published in the GitHub repository winsenlabs/platos (24 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,176 tokens. A static security scan graded it A with 0 findings. It is 98% identical to webapp, differing in 2 lines, and is treated as a copy.
Other cursor rules, from other repositories
internationalization
Cursor rule "internationalization" from dtyq/magic, covering internationalization (i18n) rules, 国际化基本规范, 1. 文件结构, 2. 命名空间规范 and 3. 组件中使用国际化.
frontend-architecture
Vite + React SPA architecture - directory layout, providers, bundle splitting. Tailwind styling in tailwind.mdc.
react_hooks
React Hooks best practices for frontend package.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.