Borrowing it
Nothing to install: this file belongs to MylesBorins/athanor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MylesBorins/athanor/main/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/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.
<a href="https://agentmods.dev/instructions/mylesborins/athanor/agents-md"><img src="https://agentmods.dev/badge/instructions/mylesborins/athanor/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.04837 | $0.04837 |
| Opus 5.5 | $0.01935 | $0.01935 |
| Sonnet 5.5 | $0.00967 | $0.00967 |
| Haiku 4.5 | $0.00484 | $0.00484 |
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 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.
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 — 209 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 invariants are mandatory. Do not change them without an explicit user decision.
- Stable port per model. Ports are allocated on first discovery from
config.portRangeand persisted on the registry entry. A model's port does not change after allocation; pi-agent provider URLs must remain 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/model-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.
- 1mo ago Changed · +8 lines · +148 tokens per session f27cf6ee577f
- 1mo ago Changed · -2 lines · -100 tokens per session 2ba0a34b10d5
- 2mo 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 (22 stars, last pushed 16d ago), licensed Apache-2.0. It adds 4,837 tokens to every session, about $0.0193 per session on Opus 5.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.
athanor AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| athanor AGENTS.mdMylesBorins/athanor | Instructions file | 22 | 16d ago | Apache-2.0 | A | 4,837 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |