bayes-platform: Instructions file for Claude Code

CLAUDE.md

bayes-platform CLAUDE.md is an instructions file for Claude Code from bayesimpact/bayes-platform. It costs 2,532 tokens per session, scanned A, original, MIT.

Repository instructions for the same Turborepo monorepo, written for Claude Code, an AI coding assistant. They describe the project structure and commands for running and building its applications.

In plain words
What is it for?
Use them when Claude Code needs to navigate the repository or start, build, and test its applications.
Why use it?
They give the assistant project-specific context, including an additional Go service that converts PDF pages to images.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is bayesimpact/bayes-platform's own configuration. It tells Claude Code how to work on bayes-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bayes-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bayesimpact/bayes-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bayesimpact/bayes-platform/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/bayesimpact/bayes-platform

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bayesimpact/bayes-platform/claude-md"><img src="https://agentmods.dev/badge/instructions/bayesimpact/bayes-platform/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,532 This file is loaded in full into every session.
When invoked 2,532 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.02532 $0.02532
Opus 5.5 $0.01013 $0.01013
Sonnet 5.5 $0.00506 $0.00506
Haiku 4.5 $0.00253 $0.00253

Measured 6d ago against content hash 59776561adbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bayes-platform 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 6d 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.

CLAUDE.md · 154 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Structure

This is a Turborepo monorepo with the following structure:

  • apps/api - NestJS backend application (runs on port 3000)
  • apps/pdf-converter - Go service rendering PDFs to PNG page images in the platform bucket (S3-compatible) for image-only LLMs (Gemma, MedGemma), runs on port 3002 and serves the PDF export MCP endpoint at /mcp; npm run dev starts it when Go is installed and apps/pdf-converter/.env exists
  • apps/desk - The Desk, rebuilt on the frontend stack of ADR 0031 (Vite, TanStack Router and Query, shadcn on Base UI, Lingui), runs on port 5177 at /app/; see apps/desk/AGENTS.md
  • apps/web - Vite + React frontend application (runs on port 5173)
  • packages/@caseai-connect/api-contracts - Shared API contracts and DTOs
  • packages/@caseai-connect/desk-contracts - The Desk's view of the API: the routes it calls and the Zod schemas of their responses, which apps/desk checks at runtime
  • packages/@repo/typescript-config - Shared TypeScript configurations
  • packages/@caseai-connect/ui - Shared React component library

Development Commands

All commands should be run from the root directory using Turbo (via npm scripts):

Development

  • npx turbo dev - Start all applications in development mode
  • npx turbo dev --filter=api - Start only the API application
  • npx turbo dev --filter=web - Start only the web application

Building

  • npx turbo build - Build all applications and packages
  • npx turbo build --filter=api - Build only the API application
  • npx turbo build --filter=web - Build only the web application

Testing

  • npx turbo test - Run all tests
  • npx turbo test --filter=api - Run API tests only
  • npx turbo test --filter=web - Run web tests only

Code Quality

  • npx turbo lint - Lint all packages and applications

TypeScript Compilation Check

  • cd apps/api && npx tsc --noEmit - Check API TypeScript without emitting files
  • cd apps/web && npx tsc --noEmit - Check web TypeScript without emitting files

Read the full file on GitHub · 154 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. 6d ago Changed · +8 lines · +251 tokens per session 59776561adbb
  2. 8d ago Changed · -3 tokens per session 684ea31686c5
  3. 9d ago Changed · +9 tokens per session 94820beb12e0
  4. 14d ago Changed · +4 lines · +62 tokens per session 6acbbd18a11a
  5. 15d ago Changed · +3 lines · +172 tokens per session de58101b56c7
  6. 22d ago Changed · +3 tokens per session 115c2932c5e1
  7. 25d ago Changed · +3 lines · +191 tokens per session 0ed490688de5
  8. 28d ago Changed · +1 lines · +67 tokens per session a83ff247ed3d
  9. 1mo ago Changed · +7 lines · +240 tokens per session 8d49b550e603
  10. 1mo ago First seen · 128 lines · 1,540 tokens per session scan A eadb4b6c64c6

Subscribe to this mod's changes

bayes-platform CLAUDE.md is an instructions file published in the GitHub repository bayesimpact/bayes-platform (23 stars, last pushed yesterday), licensed MIT. It adds 2,532 tokens to every session, about $0.0101 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-09-14.

Related

bayes-platform CLAUDE.md compared with instructions from other repositories

bayes-platform CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bayes-platform CLAUDE.mdbayesimpact/bayes-platformInstructions file23yesterdayMITA2,532Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode