bex-platform

bex-platform is a cursor rule for Cursor from bex-co/bex. It costs 229 tokens per session, scanned A, original, Apache-2.0.

Deployment rules for applications hosted on bex, a platform that runs web services and databases. They cover network binding, temporary storage, service limits, Linux file paths, and failed deployments.

In plain words
What is it for?
Use them when configuring or troubleshooting a bex application, choosing persistent storage, setting service layouts, or investigating deployment logs.
Why use it?
They prevent common deployment failures, such as services that cannot receive traffic, data that disappears after a restart, or paths that work only on Windows or macOS.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when configuring or troubleshooting a bex application, choosing persistent storage, setting service layouts, or investigating deployment logs.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bex-co/bex/bex-platform
About the project

bex is an open-source platform-as-a-service that builds and deploys applications from Git to HTTPS on infrastructure its users control. Developers and coding agents use it to manage services, workers, scheduled jobs, static sites, databases, logs, domains, and related deployment operations through a shared control plane.

bex-co/bex · 1,563 stars · on GitHub · bex.co

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.

Clone the repo
git clone --depth 1 https://github.com/bex-co/bex

Made for: Cursor.

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 bex-platform

README.md
[![agentmods](https://agentmods.dev/badge/rules/bex-co/bex/bex-platform/github.svg)](https://agentmods.dev/rules/bex-co/bex/bex-platform)
Your own site
<a href="https://agentmods.dev/rules/bex-co/bex/bex-platform"><img src="https://agentmods.dev/badge/rules/bex-co/bex/bex-platform/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.

agentmods 80×15 button for bex-platform

Your own site · 80×15
<a href="https://agentmods.dev/rules/bex-co/bex/bex-platform"><img src="https://agentmods.dev/badge/rules/bex-co/bex/bex-platform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 229 This file is loaded in full into every session.
When invoked 229 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00229 $0.00229
Opus 5.5 $0.00092 $0.00092
Sonnet 5.5 $0.00046 $0.00046
Haiku 4.5 $0.00023 $0.00023

Measured yesterday against content hash 5beff80164fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bex-platform 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 yesterday.

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.

lego/cli/internal/skills/packgen/cursor/rules/bex-platform.mdc · 15 lines

What it actually says

bex-platform:

  • Bind HTTP servers to 0.0.0.0:$PORT. A server bound to localhost or 127.0.0.1 cannot be reached by bex's proxy.
  • The filesystem is ephemeral: local writes are lost on every deploy, restart, or spin-down. Use a database, object storage, or a persistent disk mounted at a path instead.
  • Free web services spin down after 15 minutes without inbound traffic and wake on the next request. Free Postgres databases expire 30 days after creation.
  • bex runs Linux, so file paths are case-sensitive. Code that works on macOS or Windows may break if paths are cased incorrectly.
  • Deploy one application per service.
  • For a failed deploy, read the build and deploy logs first (bex logs, or the bex-debug skill).
  • bex runs Render's service types and render.yaml Blueprints, so Render's documentation (https://render.com/docs) describes the same behavior.
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. yesterday First seen · 15 lines · 229 tokens per session scan A 5beff80164fd

Subscribe to this mod's changes

bex-platform is a cursor rule published in the GitHub repository bex-co/bex (1,563 stars, last pushed today), licensed Apache-2.0. It adds 229 tokens to every session, about $0.0009 per session on Opus 5.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-12-03.

Related

bex-platform compared with cursor rules from other repositories

bex-platform next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bex-platformbex-co/bexCursor rule1.6ktodayApache-2.0A229Cursor
indexgavinmcfall/home-opsCursor rule37todayMITA0Cursor
kubernetesnitinjain999/platform-skillsCursor rule754d agoApache-2.0A0Cursor
ponytailDietrichGebert/ponytailCursor rule204k12d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor