littrail
Verified literature trail for software projects.
littrail solves the problem of using AI-generated research surveys as unchecked evidence. It provides a CLI tool and workflow template that turns an AI-generated survey into a verified literature trail — with metadata confirmed against OpenAlex, reading notes, and GitHub issue candidates — all stored in Git.
Workflow
generated report -> verified catalog -> paper notes -> issue candidates -> GitHub issues
- Save an AI-generated literature survey in
research/reports/. - Add papers with verified metadata using
littrail add-paper. - Confirm metadata against OpenAlex with
littrail verify. - Write reading notes in
research/notes/<key>.md. - Draft issue candidates in
research/ideas/. - Promote to GitHub issues manually.
Installation
# One-off use (no install required):
uvx littrail --help
# For CI or team-managed projects:
uv add --group dev littrail
Development
git clone https://github.com/pillyshi/littrail
cd littrail
uv sync --group dev
uv run pytest
uv run ruff check src/ tests/
uv run pyright src/
uv build
Quickstart
littrail init
export OPENALEX_API_KEY=...
littrail add-paper --doi 10.18653/v1/D19-1404
littrail verify
littrail check
Commands
| Command | Description |
|---|---|
littrail init |
Initialise research/ workflow in current directory |
littrail add-paper --doi <DOI> |
Add paper by DOI |
littrail add-paper --openalex <ID> |
Add paper by OpenAlex ID |
littrail verify |
Verify catalog metadata against OpenAlex (read-only) |
littrail check |
Check repository consistency offline |
research/ Directory Policy
research/
README.md # Workflow documentation (Git tracked)
catalog.yaml # Verified metadata (Git tracked)
reports/ # AI-generated surveys (Git tracked)
notes/ # Per-paper reading notes (Git tracked)
ideas/ # Issue candidates (Git tracked)
pdfs/ # Local PDF cache (NOT tracked)
PDF binaries are stored in research/pdfs/ and excluded from Git via
.gitignore. This keeps the repository lightweight while preserving the
human-readable record.
API Key
littrail add-paper and littrail verify use the
OpenAlex API via pyalex.
export OPENALEX_API_KEY=your_key_here
Do not commit your API key. It is never written to catalog.yaml,
logs, or any Git-tracked file.
Design Decisions
| Decision | Choice | Reason |
|---|---|---|
| CLI framework | typer | Auto --help, type-annotation based |
| YAML library | ruamel.yaml | Preserves key order and formatting |
| Type checker | pyright (basic) | pyalex/ruamel.yaml に型スタブなし、basic mode で対応 |
verify auto-update |
No | Keeps human judgment in the loop |
| Key format | <family>-<year> |
Human-readable, suffix on collision |
MVP Non-Goals
The following are not included in this release:
- LLM API integration or automated report generation
- PDF auto-download
- PDF text extraction or citation scraping
- GitHub issue creation
- Automated note writing
- arXiv / ACL identifier input (DOI and OpenAlex ID only)
- Catalog auto-migration
- CI workflow template generation
- Plugin / MCP server packaging
Metadata
Release files for littrail 0.2.0
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 | Actions |
|---|---|---|---|---|
| littrail-0.2.0.tar.gz | 41.9 kB | Without provenance | Details for littrail-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| littrail-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for littrail-0.2.0-py3-none-any.whl |
Total release size: 62.1 kB
Release files / littrail-0.2.0.tar.gz
| Download URL | littrail-0.2.0.tar.gz |
|---|---|
| Size | 41.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a3a07adaf1d604f23f5c62ef2d74c72a89baa6c98f8ddfb38c0c01be562d7b6
|
|
BLAKE2b-256 checksum How to use checksums |
5890af595264329c70ca6f6821ff3438e6c78183db67a9b38925fef23abda3be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / littrail-0.2.0-py3-none-any.whl
| Download URL | littrail-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adf20e65b79e8ba6f90fbda3411087a0a95acf48d9b345a6425cb329eee4fc3e
|
|
BLAKE2b-256 checksum How to use checksums |
a41c7443bdc045d4714af31027fc0dafd85bf64bc174b9515d14b5a49b5a6ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for littrail 0.2.0
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.