bex CLAUDE.md

bex CLAUDE.md is an instructions file for coding agents from bex-co/bex. It costs 1,797 tokens per session, scanned A, original, Apache-2.0.

A set of project instructions for bex, an open-source alternative to Render for deploying applications on Kubernetes. It maps the Go workspace, dashboard, infrastructure, deployment configuration, and the responsibilities of each component.

In plain words
What is it for?
Use it when working on application deployment, Kubernetes resources, the Go operator, API or SSH gateway, command-line tools, dashboard features, Terraform, or GitOps configuration.
Why use it?
It helps agents place changes in the correct package and follow the project's boundaries between the Kubernetes operator, API, CLI, dashboard, and infrastructure.

Instructions file

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/bex-co/bex/claude-md
Clone the repo
git clone --depth 1 https://github.com/bex-co/bex

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bex-co/bex/claude-md.svg)](https://agentmods.dev/instructions/bex-co/bex/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/bex-co/bex/claude-md"><img src="https://agentmods.dev/badge/instructions/bex-co/bex/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,797 This file is loaded in full into every session.
When invoked 1,797 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.01797 $0.01797
Opus 5 $0.00898 $0.00898
Sonnet 5 $0.00359 $0.00359
Haiku 4.5 $0.00180 $0.00180

Measured today against content hash 8a5dfc4b5c7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bex CLAUDE.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 today.

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.

CLAUDE.md · 73 lines

How it starts

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

CLAUDE.md

bex is the open-source Render alternative — AI-native (ADR008). A Go Kubernetes operator reconciles App CRs (app.bex.co/v1alpha1, bex-system) into running services. All Go lives in lego/ (Latin legō, "I assemble") — one image, four workspace modules: types/ (CRD contract, leaf), operator/ (mechanism, DB-free manager), backend/ (bex-api on :8090 + SSH gateway), cli/ (Render CLI launcher, bex-cli/v* train). operator → types ← backend; cli imports none.

Repo map

  • lego/ — all Go, self-contained (go.work, Dockerfile; context lego/). README, workspace rules.
    • lego/types/App/Database CRD types
    • lego/operator/ — manager → Deployment/Service/Ingress; owns config/ + codegen. operator guide
    • lego/backend/ — bex-api (REST/GraphQL/MCP + OpenFGA) + ssh-gateway. backend guide
    • lego/cli/bex CLI launcher (pinned render-oss/cli). README
  • dashboard/ — TanStack Start + Apollo + shadcn, client of bex-api GraphQL. dashboard guide
  • infra/ — day-0: Terraform + Cluster API (local-capdhetzner-caph)
  • deploy/gitops/ — day-1: Argo CD platform infra (not user deploys)
  • examples/whoami-app.yaml, hello-go/
  • scripts/ — cluster helpers (mock-cluster.sh, app-apply.sh, deploy-sample.sh)
  • docs/ — one file per topic. Full catalog in docs/CLAUDE.md
  • .pm/ — internal PM board (may be stale). Conventions in .pm/CLAUDE.md

Commands

All make targets live in lego/operator/; see lego/CLAUDE.md for workspace Go-version split + codegen. CI gates:

  • make test (operator, from lego/operator/) — CRD/RBAC codegen + envtest
  • cd lego/backend && go test ./... — backend (real Postgres + OpenFGA in CI)
  • make lint (all four modules) — golangci-lint + whole-program dead-code analysis; depguard guards the id convention
  • cd lego/cli && go test ./... — CLI launcher

Read the full file on GitHub · 73 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. today Changed · +7 tokens per session 8a5dfc4b5c7f
  2. 4d ago First seen · 73 lines · 1,790 tokens per session scan A af1a22a65604

Subscribe to this mod's changes

bex CLAUDE.md is an instructions file published in the GitHub repository bex-co/bex (420 stars, last pushed today), licensed Apache-2.0. It adds 1,797 tokens to every session, about $0.0090 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.