railtracks: Instructions file for Codex

AGENTS.md

railtracks AGENTS.md is an instructions file for Codex, OpenCode from RailtownAI/railtracks. It costs 3,553 tokens per session, scanned A, original, MIT.

Repository instructions for Railtracks, a Python framework for building systems from agents, tools, and multi-step flows. It also explains the project's uv workspace monorepo, documentation, setup, and checks.

In plain words
What is it for?
Use it when working in the Railtracks repository, especially for setup, documentation, testing, linting, and formatting.
Why use it?
It gives an agent the project context and required commands before it changes or reviews code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is RailtownAI/railtracks's own configuration. It tells Codex and OpenCode how to work on railtracks 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 railtracks configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RailtownAI/railtracks. 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/RailtownAI/railtracks/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/RailtownAI/railtracks

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/railtownai/railtracks/agents-md"><img src="https://agentmods.dev/badge/instructions/railtownai/railtracks/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,553 This file is loaded in full into every session.
When invoked 3,553 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.03553 $0.03553
Opus 5.5 $0.01421 $0.01421
Sonnet 5.5 $0.00711 $0.00711
Haiku 4.5 $0.00355 $0.00355

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

Security

Grade A, and why

railtracks 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 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.

AGENTS.md · 170 lines

How it starts

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

Repository Overview

Railtracks (rt) is a Python framework for building agent harnesses: the loop, tools, context, controls, and record around a model, defined entirely in standard Python (no YAML/DSLs). This is a uv workspace monorepo:

Root
├── packages/railtracks/          # The actual "railtracks" PyPI package
│   ├── pyproject.toml            # Package dependencies (add new deps here, in optional-dependencies for extras)
│   ├── src/railtracks/           # Source (module is railtracks, package dir uses underscore)
│   └── tests/                    # unit_tests/, integration_tests/, end_to_end/, llm_live_tests/
├── pyproject.toml                # Root workspace: dev-tooling deps only (docs/test/lint groups), NOT package deps
├── docs/                         # mkdocs documentation source
├── examples/                     # Example scripts
├── plugins/railtracks/           # Claude Code plugin (listed in .claude-plugin/marketplace.json); skills/ is generated
└── scripts/                      # CI helper scripts (dependency sorting, license checks, docs validation, plugin sync)

Accessing docs

Full documentation is at https://docs.railtracks.org/ and is reachable without a checkout of this repo. The source is under docs/, with navigation in mkdocs.yml. Doc URLs mirror the source path, e.g. docs/documentation/invocation/flows.md -> https://docs.railtracks.org/documentation/invocation/flows/. To verify a docs change, run mkdocs build --strict, which fails on broken links and nav entries.

Setup

Python 3.11+ (requires-python = ">=3.11", CI runs 3.11) and uv.

uv sync --group dev
uv pip install -e "packages/railtracks[all]"   # or a specific extra, e.g. [visual], [retrieval]

[all] pulls in the whole RAG stack (connectors, OCR, vector-store backends). For the retrieval pipeline without that weight, [retrieval-core] is the lighter opt-in (chunking, embedding, in-memory store, local loaders).

Read the full file on GitHub · 170 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 2bc00c85b67f
  2. 2d ago Changed · +2 lines · +258 tokens per session c99f0b13735d
  3. 9d ago Changed · +39 tokens per session b0bc6f55cdef
  4. 15d ago Changed · +4 lines · +109 tokens per session 526df36fc874
  5. 17d ago Changed · +1 lines · +111 tokens per session 0088bde22d13
  6. 20d ago Changed · -2 tokens per session f050c7729aab
  7. 24d ago Changed · +39 tokens per session 4db9515e1f6c
  8. 28d ago Changed · -57 lines · -99 tokens per session de22463b8c37
  9. 1mo ago Changed · +56 lines · +558 tokens per session 7d3c5327c33e
  10. 1mo ago First seen · 164 lines · 2,540 tokens per session scan A bbddf9fd78d2

Subscribe to this mod's changes

railtracks AGENTS.md is an instructions file published in the GitHub repository RailtownAI/railtracks (234 stars, last pushed today), licensed MIT. It adds 3,553 tokens to every session, about $0.0142 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-03.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,549 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens