Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.59 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.59 KB

LLM Edit

PyPI License uv

Use LLMs to generate and edit files in your shell

This is a plugin for llm, a command line interface for both local and remote large language models.

Demo

Asking llama-3.1-8b to generate a new file to solve fizzbuzz

Description

llm edit is a command line tool to edit files using large language models. It allows users to provide a model with a file, context, and instructions to generate or modify the file on your behalf.

Usage Guide

# Install the tool
llm install llm-edit

# Edit a file
llm edit fizzbuzz.py create a program that solves fizzbuzz on an input number

# Add additional context files with -C
llm edit -C fizzbuzz.py fizzbuzz.js rewrite the program in js, dont use prompt

# Use any model within the `llm` ecosystem with -m
llm edit -m deepseek-v3 guide.md Write a guide on how to finetune a LLM

Help

# To see the CLI docs, run:
llm edit --help

Acknowledgments

This project would not be possible without the llm library and its creator, Simon Willison.

License

This project is licensed under the Apache License, Version 2.0.