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.
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-templateWrote 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.
[](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/vite-config)<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/vite-config"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/vite-config/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/vite-config"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/vite-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01888 |
| Opus 5.5 | $0.00000 | $0.00755 |
| Sonnet 5.5 | $0.00000 | $0.00378 |
| Haiku 4.5 | $0.00000 | $0.00189 |
Grade A, and why
vite-config 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Vite Config (front-*)
Config shape
defineConfig(({ command, mode }) => …), comparingcommand === "build"/command === "serve"explicitly.appDirfromimport.meta.url, notprocess.cwd(). Config-time env:loadEnv(mode, envDir, "VITE_")-.env*is not inprocess.envwhile the config evaluates.envDirisfalseunderSKIP_ENV_FILESandappDirotherwise, and the returned config sets the sameenvDir: the agent sandbox cannot read.env*, and the Cloudflare Vite plugin aborts on an unreadable env file (rootAGENTS.md, Environment).- Small build-only plugins stay inline; extract one only when
front-*apps share it. TS bundling issues:vite --configLoader runner.
Vite 8 (Rolldown + Oxc)
build.rolldownOptions/optimizeDeps.rolldownOptions, not the deprecatedrollupOptions/esbuildOptions;build.minify: "oxc";build.commonjsOptionsis a no-op.- Chunk groups live in
codeSplitting.groups; never add the deprecatedmanualChunks.
Plugins (order matters)
tanstackDevtools (@tanstack/devtools-vite) → tanstackRouter (before react) → react({ compiler: { reportDiagnostics: true } }) (native Rust React Compiler via the optional peer oxc-transform-react; no Babel pass) → tailwindcss → cloudflare → build-only (apply: "build"), with sentryVitePlugin last.
-
Keep
reportDiagnostics: without it, a component the compiler skips loses memoization silently instead of printing a Vite warning, and rulefrontend/reactforbids manual memo. -
cloudflare({ types: { generate: false } }): the assets-only SPA reads noenv. Worker settings (name, assets, observability per mode) live incloudflare.config.ts. -
@cloudflare/vite-pluginis pinned exactly to a numbered 2.0 beta (2.0.0-beta.v.N): cf requires>=2.0.0-0 <3, and beta numbers change behavior (v.3 errors on legacy config, v.6 turns the dev registry on), so a range would float onto untested behavior. -
No config-identity workaround plugin: plugin 2.0 no longer replaces
server.config(1.x's copy made the injected DevTools script 500).
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.
- 1mo ago Changed · +1 lines 86b6cb57c841
- 1mo ago Changed · +2 lines afef6b2b24b6
- 2mo ago Changed c22256f25816
- 2mo ago Changed 00aa2529faa0
- 2mo ago Changed 8d288b0795a1
- 2mo ago Changed · -1 lines b1a4b3586374
- 2mo ago First seen · 52 lines · 0 tokens per session scan A 9da729344366
vite-config is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 7d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,888 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-09-03.
vite-config compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vite-configlouisbrulenaudet/monorepo-template | Cursor rule | 19 | 7d ago | Apache-2.0 | A | 0 | Cursor |
| react_hooksnphausg/ai-agent-skills | Cursor rule | 2 | 4mo ago | Apache-2.0 | A | 87 | Cursor |
| react-typescript-autousrrname/cursorrules | Cursor rule | 11 | 7mo ago | ISC | A | 0 | Cursor |
| nextjs-react19-autousrrname/cursorrules | Cursor rule | 11 | 7mo ago | ISC | A | 482 | Cursor |
| react-component-templatehumanstack/vibe-coding-template | Cursor rule | 251 | 1y ago | none | A | 6 | Cursor |
| nextjs-standardshumanstack/vibe-coding-template | Cursor rule | 251 | 1y ago | none | A | 0 | Cursor |
| react-chakra-ui-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 248 | Cursor |