← Catalog

@m4ss/pi-llms-txt

Cache-first llms.txt tool for Pi: fetches and caches a site's llms.txt map so the model can survey important pages before deep-fetching individual docs

Extension

Install

Install with PiG

pig install npm:@m4ss/pi-llms-txt

Install with Pi

pi install npm:@m4ss/pi-llms-txt
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

@m4ss/pi-llms-txt

Fetch and cache a site's llms.txt, a curated LLM-friendly map of a website's most important content, so the model can survey a documentation site's structure before deep-fetching individual pages. Few sites publish one yet; when a site doesn't, the tool reports that and moves on. Cache-first, so repeat lookups are cheap.

Notes

  • Cache-first with 24h TTL for hits; misses (404/410/SPA catch-alls) cached for 7 days.
  • Downloaded bodies capped at 40 KB; larger files are truncated with a note.
  • Cached files live in ~/.pi/agent/llms-txt-cache/.

Install

pi install npm:@m4ss/pi-llms-txt

Usage

llms_txt("www.postgresql.org")
llms_txt("redis.io", forceRefresh=true)

Commands

CommandAction
/llmstxtShow cached domains and cache status
/llmstxt-clearFlush all cached llms.txt files

License

MIT