AutoTS AGENTS.md

AutoTS AGENTS.md is an instructions file for Codex, OpenCode from winedarksea/AutoTS. It costs 846 tokens per session, scanned A, original, MIT.

A set of coding instructions for the AutoTS project, a Python project for time-series forecasting. It guides code structure, naming, comments, testing, and dependencies.

In plain words
What is it for?
Use it when asking an agent to change or review AutoTS code while following its file-size, design, naming, testing, and Python-version guidelines.
Why use it?
It gives an AI coding agent clear project rules, reducing inconsistent code, oversized files, unclear names, and dependency mistakes.

Instructions file for CodexOpenCode

About the project

AutoTS is a Python package that automatically searches forecasting models, data transformations, and ensembles for time-series datasets. It is used by developers and analysts to build forecasts across one or many series, including multivariate and probabilistic forecasts. The catalogue MCP server and instruction help coding agents use AutoTS in their workflows.

winedarksea/AutoTS · 1,429 stars · on GitHub

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/winedarksea/autots/agents-md.svg)](https://agentmods.dev/instructions/winedarksea/autots/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/winedarksea/autots/agents-md"><img src="https://agentmods.dev/badge/instructions/winedarksea/autots/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 846 This file is loaded in full into every session.
When invoked 846 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.00846 $0.00846
Opus 5 $0.00423 $0.00423
Sonnet 5 $0.00169 $0.00169
Haiku 4.5 $0.00085 $0.00085

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

Security

Grade A, and why

AutoTS 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 5d 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 · 39 lines

How it starts

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

AutoTS Agent Overview

General Code Guidelines

Small Files & Single Responsibility

  • Aim to keep files < 500 lines. Large files are difficult to reason about and cause merge conflicts.
  • Single Responsibility per File: Each module should have one reason to change.

Hyper-Descriptive Naming

  • Favor Explicit Over Concise: Use long, descriptive names that explain intent

High-Signal Comments

  • Explain "Why", Not "What": Comments should explain the reasoning behind complex algorithms or architectural decisions.
  • Be Token-Efficient in Comments: Use concise, informative language. Focus on documenting interface contracts and capability tiers.

Testing & Benchmarking

  • Shared Fixtures: Extract common test utilities (synthetic signal generators, stub storage) into a shared helper module if reused across 3+ files.

Dependencies

  • Limited Assumed Dependencies Only pandas, numpy are assumed always available. scikit-learn, scipy, and statsmodels are usually available but should still be in a guarded import block (with fallbacks in mocks.py). Then other libraries are in a separate guarded import as well. Python 3.9 compatibility is to be maintained where possible.

AutoTS Specific Guidelines

Data

  • Wide Style Data All internal objects use wide style time series data dataframes directly whenever possible, with custom data classes used sparingly. In wide style data each column is a unique time series and each row has a datetime index.
  • Assumptions on Data Series will largely be consistent in period, or at least up-sampled to regular intervals. The most recent data will generally be the most important.

Core objects in AutoTS

  • Transformers Transformers are preprocessing or postprocessing of wide style data. They are most commonly used as a transform before a forecast on historical data, then inverse_transform after the forecast on the forecast data (which includes new future dates) back to the original space. They sometimes increase or decrease the number of columns or rows of the data (expanding transformers).
  • Models Models are generally machine learning algorithms that take in historical data (fit) and output future values (predict) as a forecast based upon their algorithm. Both Models and Transformers have get_new_params which generate new random parameter values for the genetic optimizer. get_new_params is weighted towards the most consistently accurate and fastest parameter options. Ensembles are a special model type that combine multiple models, and AutoTS has some unique state of the art ensemble methods like mosaic ensembles.
  • Detectors Detectors such as AnomalyDetector or HolidayDetector identify features of time series data. Most of them are used together in the TimeSeriesFeatureDetector (note code changes should be upstreamed to the more specific detector class where possible). Detectors often can serve as transformers or share library code with a paired transformer.
  • PredictionObject This object is the class designed for storage of forecasts output from all models. It includes various features to adjust or plot the resulting forecast.
  • AutoTS the AutoTS class itself is the primary entry point for users to get and iteract with forecasts. While advanced users are expected to utilize the rest of the library code directly, documentation and code style generally focus on the AutoTS class in particular. AutoTS's core function is to run a search across validation holdouts of combinations of transformers and model parameters, usually several combined in an ensemble, returning a prediction object at the end of a tuned forecast.

Read the full file on GitHub · 39 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. 5d ago First seen · 39 lines · 846 tokens per session scan A d9acb57b6202

Subscribe to this mod's changes

AutoTS AGENTS.md is an instructions file published in the GitHub repository winedarksea/AutoTS (1,429 stars, last pushed 10d ago), licensed MIT. It adds 846 tokens to every session, about $0.0042 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.