Desktop tool for LLM-powered codebase edits via structured context injection
Top 26.6% on sourcepulse
Shotgun is a desktop utility designed to streamline large-scale code manipulation with Large Language Models (LLMs). It addresses the challenge of providing comprehensive codebase context to LLMs, enabling complex tasks like bulk bug fixing, large-scale refactoring, and documentation generation by packaging entire projects into a single, LLM-friendly text payload. The target audience includes developers working with LLMs for code-related tasks, particularly those using tools like Cursor or Gemini.
How It Works
Shotgun operates by scanning a selected project directory and generating a structured text output that includes the file tree and the content of selected files. This payload is designed for easy parsing by LLMs. The tool uses a Go backend with Wails for a cross-platform desktop UI (Vue.js). Users can interactively exclude files and directories (e.g., node_modules
, build artifacts) to optimize the prompt size and cost. The output is then pasted into an LLM, which can return a diff-style patch that Shotgun aims to facilitate applying.
Quick Start & Requirements
go install github.com/wailsapp/wails/v2/cmd/wails@latest
. Clone the repo, run go mod tidy
, cd frontend
, npm install
, then wails dev
to run.wails dev
.Highlighted Details
Maintenance & Community
go fmt
, Vue 3 style guidelines recommended.Licensing & Compatibility
Limitations & Caveats
The "Execute Prompt" and "Apply Patch" steps are currently stubbed/conceptual, meaning the tool currently focuses on generating the context payload and composing the prompt, not directly executing LLM calls or applying patches within the application. The roadmap indicates these features are planned.
1 month ago
Inactive