Metadata-Version: 2.1
Name: llm-context-generator
Version: 1.0.0
Summary: LLM context generator
Home-page: https://github.com/jeanpimentel/llm-context
License: MIT
Author: Jean Pimentel
Author-email: contato@jeanpimentel.com.br
Requires-Python: >=3.9,<3.13
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Requires-Dist: click (==8.1.7)
Requires-Dist: pathspec (==0.12.1)
Project-URL: Repository, https://github.com/jeanpimentel/llm-context
Description-Content-Type: text/markdown

# LLM Context Generator

## Overview

LLM Context Generator is a command-line tool designed to help manage context files for large language models (LLMs). 

It provides functionalities to add, remove, list, and generate context files, making it easier to maintain the context required for various LLM operations.

## Features

- **Add Files**: Add files to the context.
- **Remove Files**: Remove files from the context.
- **List Files**: List all files included in the context.
- **Tree View**: View the context files in a tree structure.
- **Generate Context**: Generate the final context output file.

## Installation

To install the LLM Context Generator, clone the repository and install the dependencies:

```sh
pip install llm-context-generator
```

## Usage

The tool provides several commands to manage your context files:

### Initialize Context

Initialize a new context in the current directory.

```sh
ctx init
```

### Destroy Context

Remove the context directory. It does not touch any of your files.

```sh
ctx destroy
```

### Add Files

Add specified files or directories to the context.

```sh
ctx add [FILES...]
```

### Remove Files

Remove specified files or directories from the context.

```sh
ctx remove [FILES...]
```

### Reset Context

Remove all files from the context without deleting the context directory.

```sh
ctx reset
```

### List Files

List all files currently included in the context.

```sh
ctx list
```

### Tree View

View the context files in a tree structure.

```sh
ctx tree
```

### Generate Context

Generate the final context output file.

```sh
ctx generate
```

## Example

Here is a typical workflow for using the LLM Context Generator:

1. **Initialize the Context**:
    ```sh
    ctx init
    ```

2. **Add Files to the Context**:
    ```sh
    ctx add src/main.py src/utils.py
    ```

3. **List Files in the Context**:
    ```sh
    ctx list
    ```

4. **Generate the Context Output**:
    ```sh
    ctx generate
    ```
   or 
    ```sh
    ctx generate | pbcopy 

