llm-fragments-sourcehut
Load SourceHut repository contents and todos as fragments
Installation
Install this plugin in the same environment as LLM.
llm install llm-fragments-sourcehut
Repo contents
Use -f srht:~user/repo to include every text file from the specified SourceHut repository as a fragment.
The prefix accepts the standard ~user/repo shorthand format. For example:
llm -f srht:~amolith/adresilo-server 'suggest new features for this tool'
There's also a fallback to allow srht:user/repo.
TODOs
Use -f todo:~user/repo/issue to query SourceHut's GraphQL API for the ticket
details, render them as Markdown, and include them as fragments.
# Use default todo.sr.ht instance
llm -m 'openrouter/google/gemini-2.5-flash-lite-preview-06-17' \
-f todo:~amolith/willow/47 'Briefly describe the outcome of this ticket.'
# Specify a different instance, requiring HTTPS
llm -m 'openrouter/google/gemini-2.5-flash-lite-preview-06-17' \
-f todo:todo.sr.ht/~amolith/willow/47 'Briefly describe the outcome of this ticket.'
# Specify a different instance, not requiring HTTPS
llm -m 'openrouter/google/gemini-2.5-flash-lite-preview-06-17' \
-f todo:http://192.168.1.28/~amolith/willow/47 'Briefly describe the outcome of this ticket.'
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-fragments-sourcehut
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest
Contributions are welcome
This repo is on SourceHut (repo) and Radicle (web,
rad:z4RLodmmoj1APnZxC1onrYBuzuHtC, what is Radicle?).
Metadata
Release files for llm-fragments-sourcehut 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| llm_fragments_sourcehut-0.1.3.tar.gz | 11.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_fragments_sourcehut-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.8 kB
Release files / llm_fragments_sourcehut-0.1.3.tar.gz
| Download URL | llm_fragments_sourcehut-0.1.3.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15bc1d5bb9bcac28a11118c4b67c1eaff79bf5f0fd710001abda39744b8ad086
|
|
BLAKE2b-256 checksum How to use checksums |
a85dd7f9ffb94628e0998010837ca026e85c4331863e71779da59baace57fb6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / llm_fragments_sourcehut-0.1.3-py3-none-any.whl
| Download URL | llm_fragments_sourcehut-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a5a41b9516a402f1cf3c50e6668f04a24c0579ba50c129118cefceaa4f5f1b6
|
|
BLAKE2b-256 checksum How to use checksums |
feaf4fff822c5f3a330776526a1e7e46899d9593283dbd2787888f9491e87d45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for llm-fragments-sourcehut 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.