AI & LLM Tools

Tools, libraries, and applications for working with Large Language Models and artificial intelligence.

See also: Web Apps , Command Line Tools , Libraries

Web Applications

Web interfaces for working with Large Language Models and AI tools.

Command Line Tools

Terminal-based utilities for AI and LLM workflows.

  • Unpack and organize multi-file projects from Claude's Artifacts.

    Example usage:
    # From a single file:
    ./unpack_artifact.py input_file.txt
    
    # From multiple files:
    ./unpack_artifact.py input1.txt input2.txt input3.txt
    
    # From standard input:
    cat input_file.txt | ./unpack_artifact.py
    # or
    ./unpack_artifact.py < input_file.txt
    
    # Specify a project name:
    ./unpack_artifact.py --name my-project input_file.txt
    
  • A command-line tool that uses vision language models to intelligently rename image files based on their content.

    Example usage:
    # Basic usage:
    rename-image-files image1.jpg image2.jpg
    
    # Process all image files:
    rename-image-files --all image1.jpg image2.jpg
    
    # Compare different models:
    rename-image-files --model gpt-4o-mini --model gpt-4-vision-preview image.jpg
    
    # Use a custom prompt:
    rename-image-files --prompt 'Describe this image in 3-5 words' image.jpg
    
    # Preview changes without renaming:
    rename-image-files --dry-run image.jpg
    
    # Process a directory (non-recursive):
    rename-image-files ~/Pictures/Vacation
    
    # Process directory and subdirectories:
    rename-image-files -r ~/Pictures/Vacation
    

Libraries & Frameworks

Libraries for integrating with and extending AI capabilities.

  • Prompt Matrix (JS) TypeScript 2023

    JavaScript library for expanding prompt matrix strings.

    Example usage:
    // Import the library
    import { expandPrompt, generatePromptExpansions } from 'prompt-matrix';
    
    // Expand a prompt matrix into an array of all possible combinations
    const prompt = "<hi|hello> <there|you>";
    const expansions = expandPrompt(prompt);
    console.log(expansions); // ["hi there", "hi you", "hello there", "hello you"]
    
    // Use optional elements with brackets
    const optionalPrompt = "The [small] cat";
    console.log(expandPrompt(optionalPrompt)); // ["The small cat", "The cat"]
    
    // Generate expansions one by one using a generator
    for (const expansion of generatePromptExpansions("<hi|hello> <there|you>")) {
      console.log(expansion);
    }
    
  • Python package for expanding prompt matrix strings.

    Example usage:
    # Import the package
    import prompt_matrix
    
    # Expand a prompt matrix into a list of all possible combinations
    prompt = "<hi|hello> <there|you>"
    expansions = prompt_matrix.expand(prompt)
    print(expansions)  # ["hi there", "hi you", "hello there", "hello you"]
    
    # Use optional elements with brackets
    optional_prompt = "The [small] cat"
    print(prompt_matrix.expand(optional_prompt))  # ["The small cat", "The cat"]
    
    # Generate expansions one by one using an iterator
    for expansion in prompt_matrix.iterexpand("<hi|hello> <there|you>"):
        print(expansion)