FreeToken: Instructions file for Codex

AGENTS.md

FreeToken AGENTS.md is an instructions file for Codex, OpenCode from FlashML-org/FreeToken. It costs 1,337 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for AI coding agents working on FreeToken, a software project with Python, server, scheduling, and cache components. They describe contribution rules, repository layout, and actions agents must not take without the user.

In plain words
What is it for?
Use them when modifying FreeToken code, preparing contributions, or deciding which development and review actions require human control.
Why use it?
They give an agent the project's local rules and prevent it from pushing changes, opening pull requests, or reporting unrun tests as completed.

Instructions file for CodexOpenCode

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

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

About the project

FreeToken is an inference-serving engine, meaning software that runs machine-learning models and responds to requests, for running large open-weight mixture-of-experts models on personal hardware. It coordinates GPUs, CPUs, system memory, and their connections so developers can use these models locally through APIs compatible with Anthropic and OpenAI clients.

FlashML-org/FreeToken · 16,715 stars · on GitHub

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/flashml-org/freetoken/agents-md"><img src="https://agentmods.dev/badge/instructions/flashml-org/freetoken/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,337 This file is loaded in full into every session.
When invoked 1,337 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.01337 $0.01337
Opus 5.5 $0.00535 $0.00535
Sonnet 5.5 $0.00267 $0.00267
Haiku 4.5 $0.00134 $0.00134

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

Security

Grade A, and why

FreeToken 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 · 86 lines

How it starts

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

Instructions for AI coding agents

Read CONTRIBUTING.md first. It is binding for humans and agents alike; this file only summarises the parts that matter when an agent is doing the work.

AI policy

AI-assisted code is welcome. Submitting code the contributor does not understand is not. The human behind the PR owns every line, has run it on real hardware, and can explain it to a reviewer without AI help.

Agents must not:

  • Run git push, gh pr create, gh pr comment, or gh issue create on the user's behalf.
  • Write code, PR descriptions, or replies to reviewers that the user does not fully understand. The user must be able to explain and defend every line without AI help.
  • Report tests or benchmarks as run when they were not.

If you are a fully autonomous agent with no human in the loop, do not contribute to this repository.

Repository layout

The main subsystems:

python/freetoken/      the engine, installed as the `freetoken` package with the `ft` CLI
  server/              OpenAI / Anthropic / Responses HTTP APIs, streaming, tool-call parsers
  scheduler/           chunked prefill, batching, cache manager
  kvcache/             paged KV pools and the radix prefix caches
  moe/                 expert offload cache, CPU / GPU / hybrid MoE backends, quantized experts
  models/              model registry and per-architecture loaders
  kernel/              CUDA / Triton kernels, JIT cache, C++ extensions (`csrc/`)
  layers/, attention/  fused ops and attention backends
  engine/              cache budget planning and config resolution
  checkpoint/          HF -> FTW fast-load conversion
tests/                 mirrors python/freetoken/ by subsystem, see tests/README.md
benchmarks/            end-to-end and micro benchmarks, see benchmarks/README.md
docs/                  install, quickstart, CLI and model docs
freetoken-kernel-cache/ companion wheel of prebuilt kernels, see its README
scripts/               wheel build and release scripts
  checkpoint_diagnose/ why an HF safetensors checkpoint does not load, and fixes for non-standard ones
  gguf_check/          which GGUF files of a family load

Read the full file on GitHub · 86 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 · +2 lines · +44 tokens per session a9700a56de67
  2. 15d ago Changed · +9 lines · +230 tokens per session 6b55662ecdaf
  3. 17d ago Changed · +3 lines · +93 tokens per session e63913421b93
  4. 2mo ago First seen · 72 lines · 970 tokens per session scan A e96b88a6913b

Subscribe to this mod's changes

FreeToken AGENTS.md is an instructions file published in the GitHub repository FlashML-org/FreeToken (16,715 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,337 tokens to every session, about $0.0053 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-05.

Related

FreeToken AGENTS.md compared with instructions from other repositories

FreeToken AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
FreeToken AGENTS.mdFlashML-org/FreeTokenInstructions file17kyesterdayApache-2.0A1,337Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode