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.
npx agentmods add instructions/mylesborins/athanor/agents-mdgit clone --depth 1 https://github.com/MylesBorins/athanorWrote 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.
[](https://agentmods.dev/instructions/mylesborins/athanor/agents-md)<a href="https://agentmods.dev/instructions/mylesborins/athanor/agents-md"><img src="https://agentmods.dev/badge/instructions/mylesborins/athanor/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.04789 | $0.04789 |
| Opus 5 | $0.02395 | $0.02395 |
| Sonnet 5 | $0.00958 | $0.00958 |
| Haiku 4.5 | $0.00479 | $0.00479 |
Grade A, and why
athanor AGENTS.md scanned grade A with 1 finding 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 4d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| verify endpoint | `curl localhost:<port>/v1/models` | OpenAI-compatible; port is printed by `ls` / `show` / `status` | How it starts
The opening of the file, as written. The whole thing — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Orientation for contributors and AI agents working on athanor. Read this before making changes; the invariants below are not negotiable without an explicit user decision.
What athanor is
Athanor — personal LLM alchemy on Apple Silicon. It scans the Hugging Face cache, registers MLX and llama.cpp (GGUF) models in ~/.athanor/models.json, assigns each one a stable port, supervises detached child processes, and exposes models to pi-agent. By default pi sees ingress-backed athanor-mlx / athanor-llama aggregators; direct per-model providers are available when router.enabled is false. Surfaces are an Ink TUI (athanor) and a hand-rolled CLI (athanor <cmd>).
Not a library. Not a daemon. No network listeners except the runtime children themselves (and an optional local control API, off by default).
Invariants
These are load-bearing. If a change seems to need to break one, stop and ask.
- Stable port per model. Ports are allocated on first discovery from
config.portRangeand persisted on the registry entry forever. A model's port never changes behind the user's back; pi-agent provider URLs must be stable across restarts. - Atomic registry writes.
~/.athanor/models.jsonis always written via temp-file + rename insrc/registry/index.ts. Never partial-write it, never keep it open across awaits. - Preserve non-athanor pi entries.
src/sync/pi.tsrewrites only providers whose name starts withathanor-. Everything else in~/.pi/agent/models.json(OpenAI, Anthropic, Ollama, OpenRouter, user customs) must round-trip untouched. Same for~/.pi/agent/settings.json— onlydefaultProvider/defaultModelare touched, and only when a model is started as the active default. - Pi sync shape follows
config.router.enabled. Default (router.enabled: true): up to two aggregator providers —athanor-mlxandathanor-llama— both pointing at the ingressbaseUrl, each listing only models of its runtime and carrying runtime-specific compat flags (MLX setssupportsDeveloperRole: false; llama-server doesn't). Providers with zero exposed members are suppressed. Whenrouter.enabledis false: each exposed model becomes its own pi providerathanor-<runtime>-<slug>with onebaseUrlper model. Never emit both shapes. The CLI verbs areexpose/hide; the underlying registry field ispublish: boolean(storage name, kept stable for backward-compat of on-diskmodels.json). - Runtime model id matches launch argument literally.
mlx_lm.servercompares the request'smodelfield to whatever was passed as--modeland falls back to a HuggingFace network lookup on mismatch. The pi modelidwe emit must equal the adapter's--model(MLX) or--alias(llama-server). Hub GGUF defaults to registryid(author/repo:file.gguf) unless the user set a custompiAliasdifferent fromslug. Seesrc/adapters/model-id.ts,src/sync/pi.ts, andsrc/adapters/*.ts. pi's/modelpicker lists byid, notname. - Pi context metadata reflects effective served context.
src/sync/pi.tsmust advertise the model's effective runtime context window from merged runtime config (mergedConfigFor(entry)), not only explicit per-model formula fields and not the model's theoretical maximum. pi should see what athanor will actually serve. - MLX capability detection and flavor routing are separate axes. Two fields live on an MLX entry:
mlxCapabilities: ("vlm")[]— a detected fact about the model (does config.json advertise a vision tower?). Refreshed byingestDiscoveredandpullviadetectMlxCapabilities()insrc/discovery/scanner.ts. Safe to overwrite on re-scan.mlxFlavor: "lm" | "vlm"— user intent about which server binary to launch."vlm"routes tomlx_vlm.server;"lm"(or absent) routes tomlx_lm.server. Only set byathanor flavor <slug> lm|vlm(cmdFlavorinsrc/cli/commands.ts). Discovery and ingest must never touch it.
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.
- 4d ago First seen · 203 lines · 4,789 tokens per session scan A 7bbed45e5d8e
athanor AGENTS.md is an instructions file published in the GitHub repository MylesBorins/athanor (20 stars, last pushed 11d ago), licensed Apache-2.0. It adds 4,789 tokens to every session, about $0.0239 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.