strait: Instructions file for Claude Code

CLAUDE.md

strait CLAUDE.md is an instructions file for Claude Code from strait-dev/strait. It costs 5,821 tokens per session, scanned A, a copy of strait AGENTS.md, Apache-2.0.

A contributor guide for Strait, a job orchestration platform that schedules and tracks background work. It explains the project’s Go codebase, PostgreSQL database, Redis messaging, workers, APIs, and repository layout.

In plain words
What is it for?
It helps agents understand Strait’s services, queues, workflows, workers, retries, monitoring, and API-related code while contributing to the repository.
Why use it?
It gives an AI agent the project’s operating rules and architecture before it changes code, reducing the risk of inconsistent or misplaced changes.

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 strait-dev/strait's own configuration. It tells Claude Code how to work on strait 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 strait configures →

Reuse

Borrowing it

Nothing to install: this file belongs to strait-dev/strait. 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/strait-dev/strait/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/strait-dev/strait

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/strait-dev/strait/claude-md"><img src="https://agentmods.dev/badge/instructions/strait-dev/strait/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,821 This file is loaded in full into every session.
When invoked 5,821 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 100% copy Near-identical to another mod 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.05821 $0.05821
Opus 5.5 $0.02328 $0.02328
Sonnet 5.5 $0.01164 $0.01164
Haiku 4.5 $0.00582 $0.00582

Measured 2mo ago against content hash c6256d6099a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

strait 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 2mo 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.

Origin

This is a copy

100% identical to strait AGENTS.md — 0 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.

CLAUDE.md · 452 lines

How it starts

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

Contributor Operating Guide

Operating guide for contributors and AI agents working on this repository. Read this before making changes.

If instructions conflict, use this priority order:

  1. Direct user request
  2. This file
  3. Existing code patterns
  4. Personal preference

The same guide lives in both AGENTS.md and CLAUDE.md. Keep them in sync: any edit to one must be mirrored in the other.


1. What Strait is

Strait is a job orchestration and workflow platform shipped as a single Go binary. PostgreSQL is the source of truth. Strait's internal queue uses a vendored and modified SQL snapshot of PgQue as the ready-event log, while Strait owns run state, execution ownership, retries, workflows, workers, observability, and APIs. Redis powers pub/sub and SSE. Strait does not run user code itself: job code lives on the customer's infrastructure and is reached either through an HTTP endpoint Strait POSTs to, or through a long-lived worker process that connects to the API over gRPC and streams runs back. The binary runs in api, worker, or all mode. The two editions (community and cloud) are selected at compile time through Go build tags.

Read first:

  • README.md
  • apps/docs/introduction.mdx: feature overview
  • apps/docs/quickstart.mdx: first setup
  • apps/docs/architecture.mdx: internals and design rationale
  • SELFHOST.md: self-hosted deployment

2. Tech stack

  • Language: Go 1.26.4, module strait, in a Bun + Turbo monorepo
  • HTTP: go-chi/chi/v5 with danielgtaylor/huma/v2 (OpenAPI generation)
  • Database: PostgreSQL through jackc/pgx/v5, no ORM. Migrations are embedded SQL.
  • Cache and pub-sub: redis/go-redis/v9, eko/gocache, maypok86/otter
  • Concurrency: sourcegraph/conc, alitto/pond/v2, failsafe-go for retries and circuit breakers
  • Worker plane (gRPC): google.golang.org/grpc with protobuf for bidirectional streaming between the API and connected workers
  • Analytics (optional): ClickHouse/clickhouse-go/v2
  • Monitoring: OpenTelemetry, Prometheus, Pyroscope, Sentry
  • Helpers: samber/lo, samber/oops, samber/slog-multi
  • CLI internals: spf13/cobra (the user-facing CLI lives in strait-dev/cli)
  • JWT: golang-jwt/jwt/v5
  • Cloud-only billing: stripe/stripe-go/v82
  • Tests: testcontainers-go for real Postgres and Redis in integration tests
  • Tooling: golangci-lint, lefthook, Biome, govulncheck, gitleaks, buf, zizmor

Read the full file on GitHub · 452 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. 2mo ago First seen · 452 lines · 5,821 tokens per session scan A c6256d6099a1

Subscribe to this mod's changes

strait CLAUDE.md is an instructions file published in the GitHub repository strait-dev/strait (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 5,821 tokens to every session, about $0.0233 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to strait AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

strait CLAUDE.md compared with instructions from other repositories

strait CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
strait CLAUDE.mdstrait-dev/straitInstructions file24mo agoApache-2.0A5,821Claude 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