Skip to content

LLM Edit (llm plugin) #980

@ShellLM

Description

@ShellLM

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.

Suggested labels

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-AgentsAutonomous AI agents using LLMsCLI-UXCommand Line Interface user experience and best practicesLLM-cliSimonw's LLM clicode-generationcode generation models and tools like copilot and aidershell-toolsTools and utilities for shell scripting and command line operationssoftware-engineeringBest practice for software engineering

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions