Skip to main content

LLM context generator

Project description

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:

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.

ctx init

Destroy Context

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

ctx destroy

Add Files

Add specified files or directories to the context.

ctx add [FILES...]

Remove Files

Remove specified files or directories from the context.

ctx remove [FILES...]

Reset Context

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

ctx reset

List Files

List all files currently included in the context.

ctx list

Tree View

View the context files in a tree structure.

ctx tree

Generate Context

Generate the final context output file.

ctx generate

Example

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

  1. Initialize the Context:

    ctx init
    
  2. Add Files to the Context:

    ctx add src/main.py src/utils.py
    
  3. List Files in the Context:

    ctx list
    
  4. Generate the Context Output:

    ctx generate
    

    or

    ctx generate | pbcopy 
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_context_generator-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

llm_context_generator-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_context_generator-1.0.0.tar.gz.

File metadata

  • Download URL: llm_context_generator-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for llm_context_generator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e76785a9b7e75cb5ce50dcb719feb45ea4d6879725d4c7e6d2296f88d9443eb6
MD5 10bcc72304329dfa01e1118992afd8a9
BLAKE2b-256 df921d1632db83b2f81ffb689868718a041a23a7ef27ca478b3791a5e3d4a607

See more details on using hashes here.

File details

Details for the file llm_context_generator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_context_generator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39de9107da6ac7a491413e70668ab08fb1f0aac3a88d95a84e3d5a844140890d
MD5 0610cdb1d34ef3df9a62e6c386ab2d30
BLAKE2b-256 8b8b433a38f481edbbe430b95726130639ae25d0dd0348a9e8c6ae9e0cf9a07e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page