Skip to main content

ai-repopack

Pack a repository into one XML file for pasting into an LLM, with basic secret redaction.

pip install ai-repopack            # token count is estimated as chars/4
pip install "ai-repopack[tokens]"  # exact counts via tiktoken
repopack . -o codebase.xml
repopack ./src --max-size 100 --ignore "*.test.js"

What it does

  • Walks the repo, skips .git, node_modules, lockfiles, images/binaries, and files over --max-size KB (default 250)
  • Skips .env, .env.*, *.pem, *.key and id_rsa entirely
  • Redacts api_key|secret|token|password|auth|bearer = "..." assignments, ghp_..., sk-... and AKIA... keys inside other files
  • Wraps each file in <![CDATA[ ]]> under a <repository> tree

Limitations (v1)

  • Redaction is regex-based and best-effort: it will miss secrets in unusual formats. Review output before sharing.
  • Does not honour .gitignore yet (own ignore list + --ignore globs)
  • Token count is an estimate unless tiktoken is installed

MIT licensed.

Metadata

Release files for ai-repopack 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-repopack 1.0.1
File Size Uploaded Provenance Actions
ai_repopack-1.0.1.tar.gz 4.7 kB Without provenance Details for ai_repopack-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-repopack 1.0.1
File Interpreter ABI Platform Actions
ai_repopack-1.0.1-py3-none-any.whl Python 3 none any Details for ai_repopack-1.0.1-py3-none-any.whl

Total release size: 10.2 kB

Release files / ai_repopack-1.0.1.tar.gz

Download URL ai_repopack-1.0.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5e423945a796a24451e45dd5fce53befb62aeca0897c51e1a69a48f7169a6c7f
BLAKE2b-256 checksum
How to use checksums
b12357ae5e3a329e9d0dc717033b0b6c01c6206f51ea7be183b52fba041b3ec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ai_repopack-1.0.1-py3-none-any.whl

Download URL ai_repopack-1.0.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e220ac86764c73fcf6befb536a02962768c19fa66478b5543fce9e959e97ba43
BLAKE2b-256 checksum
How to use checksums
45620a6ea2630969e1557a1f35661e35aa4e31822eae871c5d5ac56909ba4635
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ai-repopack 1.0.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page