Skip to main content

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 
    

Metadata

Release files for llm-context-generator 1.0.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-context-generator 1.0.0
File Size Uploaded
llm_context_generator-1.0.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-context-generator 1.0.0
File Interpreter ABI Platform
llm_context_generator-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / llm_context_generator-1.0.0.tar.gz

Download URL llm_context_generator-1.0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e76785a9b7e75cb5ce50dcb719feb45ea4d6879725d4c7e6d2296f88d9443eb6
BLAKE2b-256 checksum
How to use checksums
df921d1632db83b2f81ffb689868718a041a23a7ef27ca478b3791a5e3d4a607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / llm_context_generator-1.0.0-py3-none-any.whl

Download URL llm_context_generator-1.0.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39de9107da6ac7a491413e70668ab08fb1f0aac3a88d95a84e3d5a844140890d
BLAKE2b-256 checksum
How to use checksums
8b8b433a38f481edbbe430b95726130639ae25d0dd0348a9e8c6ae9e0cf9a07e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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