| Crates.io | rich-prompt |
| lib.rs | rich-prompt |
| version | 0.3.1 |
| created_at | 2025-05-04 21:38:20.730968+00 |
| updated_at | 2025-05-11 21:12:50.249807+00 |
| description | A Rust CLI tool for rich prompts with file and directory selection. |
| homepage | https://github.com/sunduq-ai/rich-prompt |
| repository | https://github.com/sunduq-ai/rich-prompt |
| max_upload_size | |
| id | 1659948 |
| size | 105,470 |
๐ง Supercharge your LLM interactions with structured context from your codebase!
A Rust CLI tool that transforms your project files into perfectly formatted context blocks for Large Language Models. Ideal for code reviews, refactoring assistance, and technical discussions with AI.
.git, node_modules, etc..gitignore rules when scanning filessudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
cargo install rich-prompt
git clone https://github.com/username/rich-prompt.git
cd rich-prompt
cargo install --path .
rich-prompt generate --path /path/to/project
| Option | Description |
|---|---|
--path |
๐ Root directory to scan (optional, by default current directory) |
--ext |
๐ File extensions to include (optional, include all files if not specified) |
--exclude |
๐ซ Patterns to exclude (optional, exclude none if not specified) |
--output |
๐พ File path to save output (optional) |
--auto |
๐ค Skip interactive selection, include all files |
--prompt |
๐ฌ User prompt to include in context block |
--exclude-version-control-dir |
๐ Version control directory to exclude (default: .git) |
--apply-dot-git-ignore |
๐ Whether to apply .gitignore rules (default: true) |
--clipboard-output |
๐ Copy the output to the clipboard |
--verbose |
๐ Increase logging verbosity (-v, -vv, -vvv) |
rich-prompt generate --path ./my-project --ext .rs --exclude target --auto
rich-prompt generate --path ./frontend --ext .js,.ts --exclude node_modules --output output.txt
rich-prompt generate --path ./src --prompt "Optimize this code for performance and reduce memory usage"
rich-prompt generate --path ./src --auto --clipboard-output
The tool generates output in the following format:
<file_map>
# ๐ Directory structure representation
</file_map>
<file_contents>
File: path/to/file.ext
```ext
file content
```
</file_contents>
<user_instructions>
๐ฌ Your custom prompt goes here
</user_instructions>
Perfect for integrating with:
Control verbosity with the --verbose flag:
-v: Warnings and errors-vv: Info, warnings, and errors-vvv: All debug informationCreate a .rich-prompt.toml in your home directory to set default options:
default_extensions = [".rs", ".toml"]
default_excludes = [".git", "target", "node_modules"]
log_level = "info"
Contributions are welcome! Here's how you can help:
Please make sure your code follows our coding standards and includes appropriate tests.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with โค๏ธ by Mohamed Abdelwahed