strait: Instructions file for Codex

AGENTS.md

strait AGENTS.md is an instructions file for Codex, OpenCode from strait-dev/strait. It costs 5,821 tokens per session, scanned A, original, Apache-2.0.

A contributor guide for Strait, a Go-based platform that runs scheduled jobs and workflows through APIs and worker processes. It explains the project’s technology, layout, and main features.

In plain words
What is it for?
Use it when onboarding to the Strait codebase, locating services and documentation, or deciding how to make and review changes.
Why use it?
It gives coding agents and contributors the repository context they need before changing code. It also records which documents to read and which instructions take priority.

Instructions file for CodexOpenCode

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

This is strait-dev/strait's own configuration. It tells Codex and OpenCode 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/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/strait-dev/strait

Made for: Codex, OpenCode.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/strait-dev/strait/agents-md"><img src="https://agentmods.dev/badge/instructions/strait-dev/strait/agents-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 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.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 AGENTS.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

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.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 AGENTS.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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

strait AGENTS.md compared with instructions from other repositories

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