Conceptual workflow for LLM-enhanced editors using llms.txt
mainWhile the llms.txt proposal is intended for various editors and IDEs (like VS Code, Cursor, Vim, or Emacs), the conceptual workflow for interacting with an llms.txt file follows a specific pattern:
- Load Context: The editor retrieves the
/llms.txtfile from a specified URL, parses it, and fetches the relevant URLs defined in the file's sections (e.g., 'Docs' or 'Examples'). - Create Context: The editor converts the fetched information into a structured format (such as XML) suitable for an LLM (e.g., Claude).
- Execute Prompt: The user provides a natural language instruction (a prompt). The editor combines this prompt with the loaded context to generate code or content directly into the editor's buffer.
- Review and Save: The user reviews the generated output in the buffer and saves it to a file.