Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kopipasta

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kopipasta

A CLI tool to generate prompts with project structure and file contents

  • 0.20.0
  • PyPI
  • Socket score

Maintainers
1

kopipasta

Version Downloads

A CLI tool for generating AI-assisted code prompts with project structure and file contents, using an interactive editor-based workflow.

kopipasta
  • An LLM told me that kopi means Coffee in some languages.. and a Diffusion model then made this delicious soup.

Installation

You can install kopipasta using pipx (or pip):

pipx install kopipasta

Usage

To use kopipasta, run the following command in your terminal:

kopipasta [files_or_directories_or_urls]

Replace [files_or_directories_or_urls] with the paths to the files or directories you want to include in the prompt, as well as any web URLs you want to fetch content from.

Example:

kopipasta src/ config.json https://example.com/api-docs

This will guide you through an interactive process to:

  1. Select files and directories to include in the prompt
  2. Choose between full content, snippets, or patches for large files
  3. Fetch and include content from provided URLs
  4. Open an editor for you to input the specific task or code generation instructions
  5. Generate a comprehensive prompt that includes project structure, selected file contents, and your task instructions

The generated prompt will be displayed in the console and automatically copied to your clipboard, ready to be used with an AI code generation tool.

Features

  • Generates structured prompts with project overview, file contents, web content, and task instructions
  • Interactive file selection process with options for full content, snippets, or specific patches
  • Fetches and includes content from web URLs
  • Opens your preferred editor (configurable via EDITOR environment variable) for task input
  • Detects and securely handles environment variables from a .env file
  • Ignores files and directories based on common .gitignore patterns
  • Allows interactive selection of files to include
  • Supports various file types with syntax highlighting in the selection process
  • Automatically copies the generated prompt to the clipboard

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc