Skip to content
//GitHub Repo to LLM Context example\\

2 repos as XML context, 15 files each

Convert GitHub repositories into one LLM-ready context file.

Updated November 30, 2026

What this example returns

The dataset’s “Repositories” view shows 10 columns: Repository, Ref, Folder, Part, Parts, Files, Tokens, Download, Truncated, and Commit. See every output field.

What each setting does

The input this example runs GitHub Repo to LLM Context with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

GitHub repositories repoUrls

https://github.com/pallets/itsdangerous, https://github.com/psf/requests/tree/main/src/requests

Public GitHub repositories, one per line: https://github.com/owner/repo, owner/repo, or a folder or branch link such as https://github.com/owner/repo/tree/main/src. Each repository becomes one context document.

Max files per repository maxFilesPerRepo

15

Stop adding files after this many (0 = no limit). The document says when it was truncated. With Dataset rows set to Files or Both, this caps the file rows per repository; the repository row comes on top (10 gives up to 11 rows per repository).

Default: 5000 → this example uses 15

Document format outputFormat

XML tags (<file path=...>)

Markdown uses a heading and a language-tagged code fence per file. XML wraps each file in tags, which some models follow more reliably.

Default: Markdown (headings and code fences) → this example uses XML tags (<file path=...>)

Directory tree includeTree

No

Start the document with a tree of the included files.

Default: Yes → this example uses No

Dataset rows datasetRows

Summary only (stats and download link, no text)

The full document is always saved to the key-value store with a download link. Choose what the dataset holds. 'Summary only' keeps the output compact for AI agents.

Default: Document (one row per repository, with the full text) → this example uses Summary only (stats and download link, no text)

.json
{
  "repoUrls": [
    "https://github.com/pallets/itsdangerous",
    "https://github.com/psf/requests/tree/main/src/requests"
  ],
  "includeTree": false,
  "maxFilesPerRepo": 15,
  "outputFormat": "xml",
  "datasetRows": "summary"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Repository convertedfrom $0.00476One GitHub repository (or folder) converted into an LLM context document. Failed repositories are free.
  • 10,000 tokens of outputfrom $0.0004504Charged per started block of 10,000 tokens in each converted document (o200k_base tokenizer).

Full pricing

When to use this example

From the GitHub Repo to LLM Context readme:

How big can a repository be?

Archives up to 300 MB by default (adjustable up to 2 GB). Documents larger than about 3 MB are split into several dataset rows; the download link always holds the complete file.

Known limit

Public GitHub repositories only (no GitLab, Bitbucket or private repositories yet).

Other ways to run GitHub Repo to LLM Context

All examples of GitHub Repo to LLM Context

About GitHub Repo to LLM Context

Turn public GitHub repositories into one LLM-ready Markdown or XML document: directory tree, every source file in language-tagged code fences, exact token counts. Branches, folders, glob filters. No token or login needed.

Price:
From $4.76 / 1,000 results
Developer:
Querystone
Categories:
AI, Developer tools

GitHub Repo to LLM Context pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.