Compose

Compose is a Ruby gem that provides AI-assisted code editing capabilities.

Features

  • Edit and create multiple files with a single prompt
  • Ask questions about the codebase
  • Uses multiple AI models (Claude and GPT)
  • Verify diffs before applying changes
  • Revert changes with compose revert
  • Works with any codebase

Installation

$ gem install compose

Usage

Run Compose with:

compose [FILES] [OPTIONS]
  • [FILES]: Paths to individual files or folders you want to process
  • --model MODEL: (Optional) AI model to use (e.g., 'claude-3-5-sonnet', 'gpt-4-turbo')
  • --include-imports, -a: Include import statements when processing files

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yourusername/compose.

License

The gem is available as open source under the terms of the MIT License.