<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andreas Eckhoff</title>
    <description>The latest articles on DEV Community by Andreas Eckhoff (@andreas_eckhoff_7592e9859).</description>
    <link>https://dev.to/andreas_eckhoff_7592e9859</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3884771%2F555b04be-18ba-4d3b-a3d4-ea8fd4d3a2cf.jpg</url>
      <title>DEV Community: Andreas Eckhoff</title>
      <link>https://dev.to/andreas_eckhoff_7592e9859</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andreas_eckhoff_7592e9859"/>
    <language>en</language>
    <item>
      <title>context.txt — llms.txt tells AI where to look, this tells it what it's looking at</title>
      <dc:creator>Andreas Eckhoff</dc:creator>
      <pubDate>Fri, 17 Apr 2026 15:31:08 +0000</pubDate>
      <link>https://dev.to/andreas_eckhoff_7592e9859/contexttxt-llmstxt-tells-ai-where-to-look-this-tells-it-what-its-looking-at-2g0</link>
      <guid>https://dev.to/andreas_eckhoff_7592e9859/contexttxt-llmstxt-tells-ai-where-to-look-this-tells-it-what-its-looking-at-2g0</guid>
      <description>&lt;p&gt;You have probably heard of &lt;code&gt;llms.txt&lt;/code&gt;. A growing number of sites — Anthropic, Stripe, Cloudflare, Vercel — place a Markdown file at &lt;code&gt;/llms.txt&lt;/code&gt; that lists their important pages so LLMs can navigate their documentation. It is a content map: &lt;em&gt;here are my important pages&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That is useful. But it stops there.&lt;/p&gt;

&lt;p&gt;When an AI agent visits a site on behalf of a user — not to read docs, but to actually &lt;em&gt;use&lt;/em&gt; the site — it has to figure out everything on its own: whether an API exists, how to authenticate, what the parameters mean, how to format the output. There is no standard way for the site owner to communicate any of this.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;robots.txt&lt;/code&gt; says what crawlers may not touch. &lt;code&gt;llms.txt&lt;/code&gt; links to important pages. Neither describes how to &lt;em&gt;use&lt;/em&gt; the site as a machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: context.txt
&lt;/h2&gt;

&lt;p&gt;Place a &lt;code&gt;context.txt&lt;/code&gt; file at your webroot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://yoursite.com/context.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An AI agent reading it immediately knows what your site is, where your APIs are, how to authenticate, and how to render your data — without the user having to explain any of it.&lt;/p&gt;

&lt;p&gt;The format is plain Markdown. AI models parse it naturally, links are semantic and followable, and it renders correctly if a human navigates to the URL directly.&lt;/p&gt;




&lt;h2&gt;
  
  
  A minimal example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Movie Database&lt;/span&gt;

A curated database of 80 well-known films spanning science fiction, action,
crime, comedy, horror, animation, and drama.

&lt;span class="gu"&gt;## APIs&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;Movie API&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;api/context.txt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; — search and retrieve films by genre, decade, director, score, or tag
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And &lt;code&gt;api/context.txt&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Movie Database API&lt;/span&gt;

Read-only JSON API for film data.

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;← Movie Database&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;../context.txt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="gu"&gt;## Base path&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; &lt;span class="sb"&gt;`/api`&lt;/span&gt;

&lt;span class="gu"&gt;## Authentication&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; &lt;span class="gs"&gt;**Required:**&lt;/span&gt; no

&lt;span class="gu"&gt;## Endpoints&lt;/span&gt;

&lt;span class="gu"&gt;### `GET /api/movies`&lt;/span&gt;

Returns a list of films. Supports &lt;span class="sb"&gt;`?genre=`&lt;/span&gt;, &lt;span class="sb"&gt;`?decade=`&lt;/span&gt;, &lt;span class="sb"&gt;`?director=`&lt;/span&gt;, &lt;span class="sb"&gt;`?min_score=`&lt;/span&gt;, &lt;span class="sb"&gt;`?tag=`&lt;/span&gt;, and &lt;span class="sb"&gt;`?q=`&lt;/span&gt; filters.

&lt;span class="gu"&gt;### `GET /api/movies/{slug}`&lt;/span&gt;

Returns full detail for one film including synopsis, tags, runtime, and IMDb score.

&lt;span class="gu"&gt;## Rate limiting&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; 60 requests per minute per IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is enough for an AI agent to call the API intelligently, without the user knowing anything about the API structure.&lt;/p&gt;




&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The root &lt;code&gt;context.txt&lt;/code&gt; is a navigation hub. It links to sub-files the agent follows on demand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;                ← &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="n"&gt;here&lt;/span&gt;: &lt;span class="n"&gt;what&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;this&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;
/&lt;span class="n"&gt;api&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;            ← &lt;span class="n"&gt;how&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;
/&lt;span class="n"&gt;style&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;          ← &lt;span class="n"&gt;how&lt;/span&gt; &lt;span class="n"&gt;to&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="n"&gt;as&lt;/span&gt; &lt;span class="n"&gt;HTML&lt;/span&gt;
/&lt;span class="n"&gt;skills&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;         ← &lt;span class="n"&gt;reusable&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt; &lt;span class="n"&gt;patterns&lt;/span&gt; &lt;span class="n"&gt;for&lt;/span&gt; &lt;span class="n"&gt;common&lt;/span&gt; &lt;span class="n"&gt;queries&lt;/span&gt;
/&lt;span class="n"&gt;mcp&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;            ← &lt;span class="n"&gt;MCP&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;endpoint&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="n"&gt;available&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every sub-file links back to the root. No central registry, no configuration — just files and links, the same way the web works.&lt;/p&gt;




&lt;h2&gt;
  
  
  Skills
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;skills/context.txt&lt;/code&gt; describes reusable task patterns. Each skill defines a trigger — the kind of request it handles — and the steps to fulfil it: which API calls to make and how to present the results.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## hidden-gems&lt;/span&gt;

&lt;span class="gs"&gt;**Trigger:**&lt;/span&gt; user asks for underrated, overlooked, or lesser-known films

&lt;span class="gs"&gt;**Steps:**&lt;/span&gt;
&lt;span class="p"&gt;1.&lt;/span&gt; GET /api/movies?min_score=7.4 — fetch films with a solid but not blockbuster score
&lt;span class="p"&gt;2.&lt;/span&gt; Filter client-side to imdb_score ≤ 8.4 — exclude the very well-known titles
&lt;span class="p"&gt;3.&lt;/span&gt; Sort by imdb_score descending
&lt;span class="p"&gt;4.&lt;/span&gt; Present as a table: Title, Year, Director, Genre, Score, one-line synopsis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A user can ask &lt;em&gt;"show me hidden gems"&lt;/em&gt; without knowing anything about the API.&lt;/p&gt;




&lt;h2&gt;
  
  
  Private APIs
&lt;/h2&gt;

&lt;p&gt;For sites where even the API structure is sensitive, &lt;code&gt;context.txt&lt;/code&gt; can sit behind authentication. The public root signals that private access exists; the server returns 401 when an agent requests a protected file without credentials.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;                    ← &lt;span class="n"&gt;public&lt;/span&gt;: &lt;span class="n"&gt;describes&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt;, &lt;span class="n"&gt;hints&lt;/span&gt; &lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;private&lt;/span&gt; &lt;span class="n"&gt;access&lt;/span&gt;
/&lt;span class="n"&gt;private&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;            ← &lt;span class="m"&gt;401&lt;/span&gt; &lt;span class="n"&gt;without&lt;/span&gt; &lt;span class="n"&gt;credentials&lt;/span&gt;
/&lt;span class="n"&gt;private&lt;/span&gt;/&lt;span class="n"&gt;api&lt;/span&gt;/&lt;span class="n"&gt;context&lt;/span&gt;.&lt;span class="n"&gt;txt&lt;/span&gt;        ← &lt;span class="n"&gt;full&lt;/span&gt; &lt;span class="n"&gt;API&lt;/span&gt; &lt;span class="n"&gt;description&lt;/span&gt;, &lt;span class="n"&gt;also&lt;/span&gt; &lt;span class="n"&gt;protected&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Live demo
&lt;/h2&gt;

&lt;p&gt;There is a working reference implementation at &lt;strong&gt;&lt;a href="https://context-txt.onrender.com" rel="noopener noreferrer"&gt;https://context-txt.onrender.com&lt;/a&gt;&lt;/strong&gt; — a movie database with a read-only JSON API, a browser list view, and a full style guide, all described via &lt;code&gt;context.txt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Try this prompt in any AI tool with URL fetching enabled:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read the context.txt at &lt;a href="https://context-txt.onrender.com/context.txt" rel="noopener noreferrer"&gt;https://context-txt.onrender.com/context.txt&lt;/a&gt; — then show me all sci-fi films from the 1980s with an IMDb score above 8.0.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The agent reads the root &lt;code&gt;context.txt&lt;/code&gt;, follows the link to &lt;code&gt;api/context.txt&lt;/code&gt; to learn the filters, calls the API, then reads &lt;code&gt;style/context.txt&lt;/code&gt; to render the results — all without the user explaining any of it.&lt;/p&gt;

&lt;p&gt;For an HTML-rendered result with the site's actual styles:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read &lt;a href="https://context-txt.onrender.com/context.txt" rel="noopener noreferrer"&gt;https://context-txt.onrender.com/context.txt&lt;/a&gt; and &lt;a href="https://context-txt.onrender.com/style/context.txt" rel="noopener noreferrer"&gt;https://context-txt.onrender.com/style/context.txt&lt;/a&gt;. Show me all sci-fi films from the 1980s with an IMDb score above 8.0 as a self-contained HTML page. Use the exact colours, badge design, and table layout from the style guide. Output only the HTML.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;em&gt;Note: URL fetching must be enabled in your AI tool. In chat interfaces this is often a setting or requires a paid plan — check your provider's documentation.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How it relates to existing standards
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Standard&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;How context.txt relates&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;robots.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tell crawlers what not to index&lt;/td&gt;
&lt;td&gt;context.txt tells AI what to do and how&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;llms.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Link map of important pages for LLMs&lt;/td&gt;
&lt;td&gt;context.txt goes further: APIs, auth, domain vocab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;agent-manifest.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Permissions and allowed agent actions&lt;/td&gt;
&lt;td&gt;Complementary — context.txt is the usage guide&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAPI&lt;/td&gt;
&lt;td&gt;Full REST API description&lt;/td&gt;
&lt;td&gt;context.txt is a lightweight entry point; can reference OpenAPI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;context.txt is &lt;strong&gt;complementary&lt;/strong&gt; to these standards. A site can have &lt;code&gt;llms.txt&lt;/code&gt; for content navigation and &lt;code&gt;context.txt&lt;/code&gt; for API-oriented interaction.&lt;/p&gt;




&lt;h2&gt;
  
  
  Status and feedback
&lt;/h2&gt;

&lt;p&gt;This is an early draft proposal. The spec, the reference implementation, and the example files are all on GitHub: &lt;strong&gt;&lt;a href="https://github.com/aneck-lw/context-txt" rel="noopener noreferrer"&gt;https://github.com/aneck-lw/context-txt&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am looking for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Feedback on the format and the linking model&lt;/li&gt;
&lt;li&gt;Real-world use cases this would help with&lt;/li&gt;
&lt;li&gt;Anything that feels missing or overcomplicated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What do you think?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>opensource</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
