tracer: Instructions file for Codex

AGENTS.md

tracer AGENTS.md is an instructions file for Codex, OpenCode from adrida/tracer. It costs 1,915 tokens per session, scanned A, original, MIT.

Instructions for TRACER, a Python package that learns how to route text-classification requests between a cheaper local model and a more capable language model. It learns from earlier examples called traces.

In plain words
What is it for?
Use it to fit a routing policy from JSONL traces, load the resulting router, classify new text or embeddings, and defer selected cases to the teacher model. It also supports continual learning as more examples arrive.
Why use it?
They describe how to train the router, make predictions, send difficult cases to the teacher model, and improve coverage over time. This can reduce unnecessary use of the more expensive model while maintaining a chosen quality bar.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

About the project

TRACER is a routing system that uses traditional machine-learning models to handle predictable LLM classification requests and sends uncertain cases back to the LLM. It is for reducing the number of LLM calls while checking that the smaller model remains aligned with the teacher model and improving the routing policy from new traces. The catalogue instruction covers how to use and operate this routing workflow.

adrida/tracer · 1,036 stars · on GitHub · tracerml.ai

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adrida/tracer/agents-md"><img src="https://agentmods.dev/badge/instructions/adrida/tracer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,915 This file is loaded in full into every session.
When invoked 1,915 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.01915 $0.01915
Opus 5.5 $0.00766 $0.00766
Sonnet 5.5 $0.00383 $0.00383
Haiku 4.5 $0.00192 $0.00192

Measured 1mo ago against content hash f95d5170922e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tracer 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 1mo 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 · 198 lines

How it starts

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

TRACER integration notes

TRACER (Trace-Based Adaptive Cost-Efficient Routing) turns fixed-label teacher decisions from traces into task-specific ML students. In this hybrid architecture, students learn easy, repetitive decisions; calibrated deferral retains the teacher for requests the students decline. The teacher can be an LLM, a foundation model for System 1 decisions, or another classifier. It supplies the reference labels in the traces. A fitted student predicts labels directly from embeddings; an acceptance policy and optional distance guard control which predictions to return. The caller handles deferred requests, optionally through its teacher. Student fitting and inference can run on CPU; fit() trains the classifier and policy without fine-tuning the teacher or semantic encoder. Read the overview, API reference and change log for the current scope.

Source and release status

These instructions describe this repository checkout. Final-policy certification, staged artifact publication and strict OOD-loading corrections are unreleased source changes. Do not imply they are already present in the PyPI package merely because pip install tracer-llm succeeds. To use the corrected source, install from a checkout containing the changes:

python -m pip install -e .

Python 3.12+ is required. Core dependencies are NumPy, scikit-learn and joblib. The library is MIT licensed: local fitting, saved artifacts and self-hosted prediction do not require a Tracer account or license fee. Embeddings, teacher calls and hosting still have their own resource costs. This checkout supplies a Python API and a small HTTP server; the JavaScript package records traces. Do not invent a command-line interface, a general chat model, an OpenRouter listing or parity with a separately deployed hosted service.

Identify the decision contract first

Establish the label vocabulary, input representation, teacher and quality target from the user's existing task. Preserve their selected quality requirement. Training examples have this shape:

Read the full file on GitHub · 198 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. 1mo ago Changed · -10 lines · +60 tokens per session f95d5170922e
  2. 1mo ago Changed · -1 lines · +13 tokens per session ee012ce13184
  3. 2mo ago First seen · 209 lines · 1,842 tokens per session scan A cdb9eea6caea

Subscribe to this mod's changes

tracer AGENTS.md is an instructions file published in the GitHub repository adrida/tracer (1,036 stars, last pushed 1mo ago), licensed MIT. It adds 1,915 tokens to every session, about $0.0077 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-08-30.

Related

tracer AGENTS.md compared with instructions from other repositories

tracer AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tracer AGENTS.mdadrida/tracerInstructions file1.0k1mo agoMITA1,915Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode