CLI tool for creating code snapshots with configurable settings
Project description
🦜 LLM-Auto-Context
A CLI tool for generating code snapshots for AI code assistants such as ChatGPT and Claude.
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
- Clone the repository
- Create a virtual environment:
uv venv
- Install dependencies:
uv pip install -e ".[dev]"
- Run tests:
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_auto_context-1.2.0.tar.gz.
File metadata
- Download URL: llm_auto_context-1.2.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d962bf62697e8285338e99120c5655b36d5cdf55090a50f59272413d9b8c5408
|
|
| MD5 |
d93cc761fdcfb8186e0053c490d84b20
|
|
| BLAKE2b-256 |
10677938bd50b648ffd1b0764e680746b89ee03384cfb2ec6261315a95b542be
|
File details
Details for the file llm_auto_context-1.2.0-py3-none-any.whl.
File metadata
- Download URL: llm_auto_context-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6017c6dfc9b3db090b88393f3b3b557d2ac58cbe8a4d4a5bd3e4c0e20296ab08
|
|
| MD5 |
71d6dd0c1f21103dbf2056485a71da9a
|
|
| BLAKE2b-256 |
d1339cf96243137ee0bcd25983b861bd313aa636468764b719cb9c6694463e7e
|