strait AGENTS.md

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

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/strait-dev/strait/agents-md
Clone the repo
git clone --depth 1 https://github.com/strait-dev/strait

Made for: Codex, OpenCode.

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. 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.05821 $0.05821
Opus 5 $0.02910 $0.02910
Sonnet 5 $0.01164 $0.01164
Haiku 4.5 $0.00582 $0.00582

Measured yesterday against content hash c6256d6099a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. yesterday 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 1mo ago), licensed Apache-2.0. It adds 5,821 tokens to every session, about $0.0291 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-31.