chrono AGENTS.md

Repository guidance for Chrono, a C++ physics simulation library built with CMake. It explains the difference between developers and library users, where code belongs, and how to build and test the project.

In plain words
What is it for?
Use it when adding modules, examples, tests, or documentation, or when building and testing Chrono and its optional components.
Why use it?
It helps contributors follow the repository's layout and build rules, including keeping build files outside the source tree.

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

Made for: Codex, OpenCode.

Per session 1,321 This file is loaded in full into every session.
When invoked 1,321 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.01321 $0.01321
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

Measured 2d ago against content hash 48fddffde027, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

chrono 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 2d 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.

AGENTS.md · 46 lines

How it starts

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

Repository Guidelines

Developers vs. Users

Chrono serves two audiences. Developers modify this repository itself: core libraries, modules, demos, tests, and docs. Users often work in an external repository, build and install Chrono locally, then link against it from their own CMake project. Keep this distinction explicit in your response. Shared guidance below applies to both groups; commit and pull request guidance applies only to developers.

Project Structure & Module Organization

Chrono is a CMake-based C++ project with most production code under src/. Core code lives in src/chrono, optional modules live in sibling directories such as src/chrono_vehicle, src/chrono_sensor, and src/chrono_ros, and examples live in src/demos. C++ unit tests are under src/tests/unit_tests, Python tests under src/tests/unit_tests/python, runtime assets under data/, and API/tutorial docs under doxygen/. Use contrib/ for build helpers, packaging, and Docker files. Keep new code near the owning module and update the local CMakeLists.txt in that directory.

Build, Test, and Development Commands

Chrono forbids in-source builds, so configure into build/ or another separate directory.

  • git submodule init && git submodule update: fetch bundled GoogleTest and Google Benchmark sources required by tests.
  • cmake -S . -B build -G Ninja -DBUILD_TESTING=ON -DBUILD_DEMOS=ON: configure a local development build.
  • cmake --build build -j: compile the configured targets.
  • ctest --test-dir build --output-on-failure: run the registered CTest suite.
  • cmake --build build --target install: install into the configured prefix.

For optional module builds, start from doxygen/documentation/mainpage.md and follow the Installation Guides section there. Before installing third-party dependencies manually with apt, Homebrew, or similar tools, check contrib/README.md and contrib/build-scripts/README.md. Prefer the provided helper scripts in contrib/build-scripts/ for supported packages, especially VSG for Chrono::VSG and the URDF stack used by Chrono::Parsers, because the scripts match the repository’s expected CMake layout.

Read the full file on GitHub · 46 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. 2d ago First seen · 46 lines · 1,321 tokens per session scan A 48fddffde027

Subscribe to this mod's changes

chrono AGENTS.md is an instructions file published in the GitHub repository projectchrono/chrono (3,007 stars, last pushed today), licensed BSD-3-Clause. It adds 1,321 tokens to every session, about $0.0066 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-30.