Skip to content

ajac-zero/llm-edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Use LLMs to generate and edit files in your shell

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages