Skip to main content

🦜 LLM-Auto-Context

A CLI tool for generating code snapshots for AI code assistants such as ChatGPT and Claude.

Python Version License

Installation

Using UV (recommended):

uv pip install llm-auto-context

Using pip:

pip install llm-auto-context

Usage

Basic usage:

llm_auto_context

This will use the default config file .codesnapshot.json in your current directory.

Configuration

Create a .codesnapshot.json file in your project root:

{
    "directories": ["src", "lib"],
    "output_file": "code_snapshot.md",
    "include_extensions": [".py", ".js", ".ts"],
    "exclude_dirs": ["node_modules", ".git", "build"],
    "exclude_files": ["secrets.env"]
}

CLI Options

  • --config: Path to config file (default: .codesnapshot.json)
  • -d, --directory: Override directories to scan (can be used multiple times)
  • -o, --output: Override output file path
  • --include: Override file extensions to include (can be used multiple times)
  • --exclude-dir: Additional directories to exclude (can be used multiple times)
  • --exclude-file: Additional files to exclude (can be used multiple times)

Example:

llm_auto_context -d src -d lib -o snapshot.md --exclude-dir tests

Development

  1. Clone the repository
  2. Create a virtual environment:
uv venv
  1. Install dependencies:
uv pip install -e ".[dev]"
  1. Run tests:
pytest

License

MIT

Metadata

Release files for llm-auto-context 1.2.0

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

Source distribution (sdist)

Source distribution for llm-auto-context 1.2.0
File Size Uploaded Provenance
llm_auto_context-1.2.0.tar.gz 10.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-auto-context 1.2.0
File Interpreter ABI Platform
llm_auto_context-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / llm_auto_context-1.2.0.tar.gz

Download URL llm_auto_context-1.2.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d962bf62697e8285338e99120c5655b36d5cdf55090a50f59272413d9b8c5408
BLAKE2b-256 checksum
How to use checksums
10677938bd50b648ffd1b0764e680746b89ee03384cfb2ec6261315a95b542be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.28

Release files / llm_auto_context-1.2.0-py3-none-any.whl

Download URL llm_auto_context-1.2.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6017c6dfc9b3db090b88393f3b3b557d2ac58cbe8a4d4a5bd3e4c0e20296ab08
BLAKE2b-256 checksum
How to use checksums
d1339cf96243137ee0bcd25983b861bd313aa636468764b719cb9c6694463e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.28

Security for llm-auto-context 1.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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

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