Use this file to discover all available pages before exploring further.
Fragments are reusable pieces of text that LLM injects into your prompt at runtime. Unlike pasting content directly into a prompt, a fragment is stored exactly once in the database and referenced by every prompt that uses it — saving disk space and enabling powerful filtering in llm logs. Fragments can be files on disk, URLs fetched at prompt time, SHA-256 hash IDs of previously stored content, named aliases, or values produced by plugins.
URLs are fetched with a descriptive llm/<version> user-agent. Use --sf / --system-fragment to inject a fragment into the system prompt instead of the user prompt:
Combine !fragment with !multi for multi-line prompts that reference fragments:
> !multiExplain the difference between fragments and templates!fragment https://llm.datasette.io/en/stable/fragments.html https://llm.datasette.io/en/stable/templates.html!end
!fragment lines inside a !edit prompt are not parsed. Use !multi instead.
Plugins can register custom fragment loaders accessed via a prefix:argument syntax. Install llm-fragments-github to load entire GitHub repositories as fragments:
llm install llm-fragments-githubllm -f github:simonw/s3-credentials 'Suggest new features for this tool'
This single -f call expands into one fragment per file in the repository. View the full breakdown with:
Example output after installing llm-fragments-github:
github: Load files from a GitHub repository as fragments Argument is a GitHub repository URL or username/repositoryissue: Fetch GitHub issue and comments as Markdown Argument is either "owner/repo/NUMBER" or "https://github.com/owner/repo/issues/NUMBER"