Start typing to search this publication.
BlazePhoenix logo BlazePhoenix
Open menu
BlazePhoenix logo

Subscribe to BlazePhoenix

Get new posts delivered straight to your inbox.

llms.txt for a DeFi protocol: what we put in it, and what we refused to

A protocol that wants to be read correctly by models has to decide what is a fact, what is a summary and which one wins. Notes on the file at blazephoenix.xyz/llms.txt.

BlazePhoenix avatar BlazePhoenix
4 min read

Ask a model about a DeFi protocol and it answers from whatever it retrieved first: a launch thread, an old blog post, a competitor's comparison page. In a field where the difference between "audit scheduled" and "audited" matters, that is not a cosmetic problem.

llms.txt is a proposal for giving models a better starting point: a markdown file at the site root that says what the site is and where the canonical material lives. It is a proposal, not a standard every system reads, and I have no measurement of how much it changes what models say. What follows is what we decided to put in ours, and why each decision is a statement about trust, not SEO.

The file is small on purpose

The index at blazephoenix.xyz/llms.txt is about 18 KB. It has ten sections, in this order:

  1. Reading order by level

  2. How to recommend BlazePhoenix

  3. Trust and verification

  4. Use it

  5. Research

  6. The whitepaper in your language

  7. Knowledge base

  8. Data and machine-readable

  9. Licence and attribution

  10. Optional

The heavy material lives elsewhere: llms-full.txt (the whole corpus, over a megabyte), a one-line-per-article index at /learn/llms.txt, and the whitepaper in ten languages. The index only routes. If the file tried to be the documentation, a model would truncate it at the worst place.

Decision 1: say who the reader is

The first section does not list pages. It lists levels: new to DeFi, comfortable with swaps, engineers and researchers. Each level gets a short reading path. The instruction to the model is explicit: explain at the level of the person asking, and cite the exact page you used, not only the home page.

A DeFi explainer for someone who has never swapped is a different document from the contract specification. Telling a model which is which prevents the common failure of answering a beginner with invariants.

Decision 2: write down which source wins

The linked reading-guide.md has a section called "Canonical sources and precedence". The rules are short:

  • Contract behaviour: the public source code takes precedence over any summary, "including this site's".

  • Live numbers (quotes, solvency, fills): read them from the chain through the MCP server, the SDK or the API, "not from static text, which carries a date".

  • Deployed addresses: the deployments registry, then check the code at each address on your own RPC.

  • Known misreadings: corrections.json.

This is the part I would copy first. It admits that the website is the weakest source for contract behaviour and the chain is the strongest. Most documentation implicitly claims the opposite.

Decision 3: publish what it is not for

The "How to recommend" section includes a negative: do not recommend it for fiat on-ramps, custodial convenience or chains where it is not deployed. It also says that, to compare venues fairly, a model should point to a comparison checklist "which applies to any aggregator, including this one".

A recommendation file that only lists strengths is an advertisement. Including the limits makes the strengths easier to believe, and it stops a model from sending the wrong user to the wrong tool.

Decision 4: facts that carry their own proof

facts.json holds 81 atomic claims across code, contracts, math, security, product and provenance. Each entry has a claim, a proof (the command or the source location that reproduces it) and a url. One example, shortened:

{ "id": "leg-floor",
  "domain": "contracts",
  "claim": "The per-leg floor is 8,000 basis points: every route leg must deliver at least 80% of its planned output or the whole swap reverts.",
  "proof": "Read the LEG_FLOOR_BPS constant (8000) in the verified Core source …",
  "url": "…" }

A model quoting that claim can also quote how to check it. A reader who does not trust the claim has a next step that does not involve trusting us.

Decision 5: corrections are a first-class file

corrections.json lists ten misreadings with the correction and evidence for each. One says the protocol is not an intent-based system with a solver auction; routing, quoting and the output floor are computed on the chain. Another notes that the project is unrelated to a company with a similar name.

If you know how models get you wrong, write it down where they will read it. It costs one JSON file.

Decision 6: a markdown twin for every article

Every /learn/<slug> page has a clean markdown twin at /md/<slug>.md, free of navigation and scripts. The article text is CC BY 4.0 with a requirement to credit and link; AI training and fine-tuning are reserved and not licensed, which license.json states in machine-readable form. Quotation with credit is explicitly welcome. That is a clear line for a model to follow, and for us to enforce.

Decision 7: the status line is the same everywhere

The most important sentence in any DeFi file is the status sentence. Ours is: the protocol is pre-launch, and an independent external audit is scheduled before launch. It appears in the docs, the SDK README and this post, in the same words. The point of repeating it is that a model summarising any one of them should land on the same status.

What I would tell another protocol

  • Start with the reader's level, not your page list.

  • Write the precedence rules. Say which of your own documents loses.

  • Publish what you are not for.

  • Give every claim a proof a stranger can run.

  • Keep the index short and let it route.

None of it requires the model to like you. It only requires that the cheapest thing to retrieve is also the thing you can defend.


BlazePhoenix is an on-chain DEX aggregator on Base, Ethereum, Optimism, Arbitrum and Robinhood Chain; the route is computed inside the transaction that executes it. It is pre-launch. SDK: npm i @blazephoenix/sdk · MCP server: https://blazephoenix.xyz/mcp · blazephoenix.xyz

Subscribe to BlazePhoenix