Archived. This project is no longer maintained.
PasteRust solved a problem that has mostly gone away. When I built it, getting a chunk of your repo into a chat model meant assembling the payload by hand and pasting it in. Now the chat apps take file uploads directly, and coding agents read the repo themselves. Curating a clipboard blob by hand stopped being worth the effort.
The code stays up and the v0.2.0 binaries are still on the releases page, so if the workflow still fits how you work, go ahead and use it. Just don't expect fixes, new releases, or replies to issues. It's MIT licensed, so fork it and do whatever you like.
PasteRust is a lightweight desktop app that copies selected files (plus an optional prompt) into your clipboard so you can paste structured context directly into an LLM. This was especially useful when you had a ChatGPT/Claude subscription and wanted to utilize its limits to improve your projects. Also handy with Google AI Studio.
RepoPrompt didn't support Linux/Windows when this project was created, so I needed an alternative for personal use. But alternatives were not really good. For instance, PasteMax solved the workflow partially but Electron sluggishness did not satisfy me. My version keeps the workflow intact while delivering a small footprint, native speed, and minimal startup delay.
- Fast startup: point at a repository and start working in seconds.
- Automatic file detection: files are picked up without manual curation.
- Selective copy: choose only the files you need.
- Optional prompt: add contextual instructions alongside the files.
- XML output: structured and easily readable for LLMs.
- Native UI: built with Tauri (React and Rust).
- Select a folder.
- Review detected files.
- Select the files to include.
- (Optional) Add a custom prompt.
- Copy the generated XML prompt.
Prompt structure (mirrors the "Standard" preset from RepoPrompt, credit to them for the format and research):
<file_map>
/path/to/project
├── src
│ ├── main.rs *
│ └── lib.rs
└── Cargo.toml
</file_map>
<file_contents>
File: /path/to/project/src/main.rs
```rs
fn main() {}
```
</file_contents>
<user_instructions>
Refactor for async/await best practices.
</user_instructions>- Frontend: React, TypeScript, Vite.
- Runtime: Rust.
- Host: Tauri.
- File system crawl: ignore crate (parallel traversal).
- Clipboard: Tauri plugin (cross-platform).
Requirements: Node, Rust stable.
git clone https://github.com/sqdshguy/pasterust
cd pasterust
npm install
npm run tauri devRelease build (much more optimized):
npm run tauri buildThe repository is archived and read-only, so pull requests and issues are closed. Fork it if you want to keep the project going.
MIT