Repository navigation
feat(site): list Anomaly's companion tools in llms.txt - #66929
Conversation
There was a problem hiding this comment.
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: trueinextension-data.ts, so line 28 already puts/product/browseunder## Products. The newpage("/product/browse")adds it again under## More from Anomaly. - The list duplicates
anomalyProducts.links.tsalready 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, andanomalyAppssays 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", |
There was a problem hiding this comment.
Two things here:
- Browse is
product: true, so line 28 already lists/product/browseunder## Products.page("/product/browse")adds it a second time. anomalyProductsincomponent/site/links.tsis the shared list behind/product,productsMarkdownand 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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Checked 579f1d0aa (pr/head) and the change works:
- Browse appears once.
extensionPageshasslug: "browse", product: true(extension-data.ts:35,63). The filter drops it fromanomalyProducts, and## Productsstill lists/product/browse. - Same output as
/product. The new section renders Hex, OpenTunnel, OpenTUI, then Spaceman and Models.dev. That's the listproduct-markdown.ts:69uses for "More products", with the same filter and the sameappLinkhrefs, 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.
anomalyAppsdrives the footer (links.ts:96) and the companions grid (companions.tsx:26).anomalyProductshas a required icon mark per id (anomalyMarksinproduct-list.tsx:117). Adding them there would mean an icon or mark and copy everywhere. The inline comment inllms.tsexplains 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.
There was a problem hiding this comment.
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.
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
/productalready links two of them.❌ Before
llms.txtto learn what OpenCode is.✅ After
## More from Anomalysection sits after Products.anomalyProducts, the list/productand the product pages already use, minus the apps listed under Products, so Browse appears once and the copy cannot drift./productcard 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 oneproduct-markdown.tsuses to keep Browse out of "More products". Nothing else moves, andllms-full.txtis untouched.🔍 Found in an SEO audit of the public estate · no user reports
Checks run
prettier --check services/site/src/lib/llms.ts: cleantsc. The workspace dependencies are not installed in this checkout, so the block was checked by reading the code.