Skip to content

feat(site): list Anomaly's companion tools in llms.txt - #66929

Merged
kitlangton merged 2 commits into
devfrom
site/llms-more-from-anomaly
Nov 28, 2026
Merged

kitlangton merged 2 commits into
devfrom
site/llms-more-from-anomaly

Conversation

@kitlangton

@kitlangton kitlangton commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Agents reading opencode.ai/llms.txt now learn about Anomaly's other open-source tools.
The index listed OpenCode's products, console and docs, and said nothing about Hex, Spaceman, OpenTUI or Models.dev, even though /product already links two of them.

❌ Before

  1. An agent fetches llms.txt to learn what OpenCode is.
  2. It sees the products, Console, site, docs and optional pages.
  3. Nothing tells it that the same team ships a local dictation app, a tiling window manager, a TUI library or a models index.

✅ After

  1. A ## More from Anomaly section sits after Products.
  2. It reads anomalyProducts, the list /product and the product pages already use, minus the apps listed under Products, so Browse appears once and the copy cannot drift.
  3. Spaceman and Models.dev follow it. They have no /product card yet, so this file is the only place they are named.
   "## Products",
   [...].map(page).join("\n"),
+  "## More from Anomaly",
+  [...anomalyProducts minus product pages, then Spaceman and Models.dev].join("\n"),
   "## Console",

👀 Read: the new block in services/site/src/lib/llms.ts. The filter is the same one product-markdown.ts uses to keep Browse out of "More products". Nothing else moves, and llms-full.txt is untouched.

🔍 Found in an SEO audit of the public estate · no user reports

Checks run
  • prettier --check services/site/src/lib/llms.ts: clean
  • Not run: rendering the route or the site's tsc. The workspace dependencies are not installed in this checkout, so the block was checked by reading the code.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two problems with the new section: Browse is listed twice, and the list is hard-coded instead of reusing the existing one.

I checked this by reading the code; I couldn't render llms.txt under bun test because the site uses Vite's import.meta.glob. tsc --noEmit for the site passes. The public API is unchanged.

  • Browse appears twice. It has product: true in extension-data.ts, so line 28 already puts /product/browse under ## Products. The new page("/product/browse") adds it again under ## More from Anomaly.
  • The list duplicates anomalyProducts. links.ts already keeps the list of Anomaly projects that /product, its Markdown and the product pages' "More from Anomaly" all read from. The copy here has already drifted: it leaves out OpenTunnel and adds Spaceman and Models.dev, which no other page lists. Spaceman doesn't appear anywhere else on the site, and anomalyApps says it holds the shipped projects, so it's worth checking whether Spaceman is ready to promote. See the inline comment.

.join("\n"),
]
: []),
"## More from Anomaly",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things here:

  • Browse is product: true, so line 28 already lists /product/browse under ## Products. page("/product/browse") adds it a second time.
  • anomalyProducts in component/site/links.ts is the shared list behind /product, productsMarkdown and the product pages' "More from Anomaly". Hard-coding a second copy means it drifts: this one already leaves out OpenTunnel and adds Spaceman and Models.dev, which no other page shows.

Something like this keeps them in sync and drops Browse, the same way productsMarkdown does:

"## More from Anomaly",
anomalyProducts
  .filter((app) => !extensionPages.some((extension) => extension.product && extension.slug === app.id))
  .map((app) => `- ${link(app.name, appLink(app, context.route).href)}: ${app.body}`)
  .join("\n"),

If Spaceman and Models.dev should be promoted, adding them to anomalyProducts puts them on every page at once.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on both. The section now reads anomalyProducts and filters out anything already listed under ## Products, so Browse appears once and the copy tracks /product.

Spaceman and Models.dev stay in this one file on purpose. anomalyApps drives the /product cards and the footer, so promoting them means icons and copy on every page, which is a bigger call than this edit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked 579f1d0aa (pr/head) and the change works:

  • Browse appears once. extensionPages has slug: "browse", product: true (extension-data.ts:35,63). The filter drops it from anomalyProducts, and ## Products still lists /product/browse.
  • Same output as /product. The new section renders Hex, OpenTunnel, OpenTUI, then Spaceman and Models.dev. That's the list product-markdown.ts:69 uses for "More products", with the same filter and the same appLink hrefs, so the two stay in sync. It also brings back OpenTunnel, which the first version had left out.
  • Spaceman and Models.dev: keeping them out of the shared list makes sense. anomalyApps drives the footer (links.ts:96) and the companions grid (companions.tsx:26). anomalyProducts has a required icon mark per id (anomalyMarks in product-list.tsx:117). Adding them there would mean an icon or mark and copy everywhere. The inline comment in llms.ts explains why they're listed by hand, which is enough. The cost is that their copy can drift, but only in this one file.

I only read the code: I didn't render the route or run tsc. I made no changes. The shared checkout is still on the older commit 7d7556747, with someone else's uncommitted bun.lock change, and I left both alone.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commits fix both points from my earlier comment. The section now reads from anomalyProducts with the same filter productsMarkdown uses, so Browse appears only once and the list matches /product. Spaceman and Models.dev are still hard-coded, as the commit's code comment explains. I checked this by reading the code; tsc --noEmit for the site passes. I couldn't render llms.txt under bun test, because the site uses Vite's import.meta.glob. The public API is unchanged. I have no further concerns.

@kitlangton
kitlangton merged commit 2c36506 into dev Nov 28, 2026
13 checks passed
@kitlangton
kitlangton deleted the site/llms-more-from-anomaly branch November 28, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant