LeTrain: Instructions file for Codex

AGENTS.md

LeTrain AGENTS.md is an instructions file for Codex, OpenCode from antoniovazquezaraujo/LeTrain. It costs 1,052 tokens per session, scanned A, original, Apache-2.0.

A project instruction guide for coding agents, stored in an AGENTS.md file. It explains the team of agents, project structure, required instructions, and build, lint, and test commands.

In plain words
What is it for?
Use it to guide development sessions, assign work to specialist agents, and apply the project's coding conventions and checks.
Why use it?
It gives an agent the project-specific rules it must follow instead of making assumptions about how the codebase works.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/antoniovazquezaraujo/letrain/agents-md.svg)](https://agentmods.dev/instructions/antoniovazquezaraujo/letrain/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/antoniovazquezaraujo/letrain/agents-md"><img src="https://agentmods.dev/badge/instructions/antoniovazquezaraujo/letrain/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,052 This file is loaded in full into every session.
When invoked 1,052 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.01052 $0.01052
Opus 5 $0.00526 $0.00526
Sonnet 5 $0.00210 $0.00210
Haiku 4.5 $0.00105 $0.00105

Measured 3d ago against content hash d7d737d4078f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

LeTrain 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 3d 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 · 85 lines

How it starts

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

AGENTS.md — Guía para Agentes de Desarrollo

Equipo de Desarrollo

Este proyecto usa un equipo de agentes definido en .opencode/agents/:

  • Dani (dani-coordinator) — Coordinador principal
  • Alex (alex-java) — Experto en Java
  • Bicho (bicho-testing) — Experto en testing
  • Jorge (jorge-ui) — Experto en UI/UX

IMPORTANTE: Al iniciar cada sesión, lee TODOS los ficheros en .opencode/agents/ antes de hacer cualquier otra cosa. Estos ficheros definen las personalidades, reglas y formatos de respuesta de cada agente del equipo.

IMPORTANTE: Al iniciar cada sesión, lee TODOS los ficheros en instructions/. Contienen las directrices del proyecto (coding standards, build commands, estructura, convenciones) que deben aplicarse a todo el código.

Estructura del Proyecto

.opencode/
├── agents/
│   ├── dani-coordinator.md    # Coordinador (agente principal)
│   ├── alex-java.md           # Experto Java
│   ├── bicho-testing.md       # Experto testing
│   └── jorge-ui.md            # Experta UI/UX
├── package.json               # Dependencias OpenCode
└── .gitignore

Comandos de Build/Lint/Test

Este proyecto no tiene código fuente tradicional — es una configuración de agentes para OpenCode. Sin embargo, para proyectos derivados:

  • Java/Maven: mvn clean compile, mvn clean test, mvn clean test -Dtest=ClassName
  • Java/Gradle: ./gradlew build, ./gradlew test --tests ClassName
  • Lint Java: mvn checkstyle:check o ./gradlew checkstyleMain
  • Tests unitarios: Ejecutar tests específicos con -Dtest=ClassName#methodName (Maven) o --tests "ClassName.methodName" (Gradle)

Convenciones de Código

Java

  • Versión: Java 17+ (preferir 21+ cuando sea posible)
  • Imports: Organizar por grupos (java., javax., org., com.), sin wildcards
  • Naming: CamelCase para clases, camelCase para métodos/variables, UPPER_SNAKE_CASE para constantes
  • Formato: 4 espacios de indentación, llaves en estilo K&R
  • Tipos: Preferir interfaces sobre implementaciones en declaraciones (List<String> no ArrayList<String>)
  • Optional: Usar Optional<T> para retornos que pueden ser nulos, nunca para parámetros
  • Excepciones: Preferir excepciones checked para errores recuperables, unchecked para bugs de programación

Read the full file on GitHub · 85 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. 3d ago First seen · 85 lines · 1,052 tokens per session scan A d7d737d4078f

Subscribe to this mod's changes

LeTrain AGENTS.md is an instructions file published in the GitHub repository antoniovazquezaraujo/LeTrain (12 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,052 tokens to every session, about $0.0053 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-09-04.