OmarPGH/Raqule

Raqule is a code gatherer, specially designed for LLMs/AI like (ChatGPT, Claude, Gemini) to provide for them whole project context/codes in a single file.

JavaScript

1

25 commits

updated Sep 17, 2026

See the code
architecture
cli-tool
code-collector
collect
context
files-folders
gather
javascript
project
raqule
structure
tree

See what people are saying (1)

SourceMessageScoreDate

I built Raqule 🦝, a CLI tool that turns your project into an LLM-friendly context (r/SideProject)

When working with LLMs on a codebase, I kept running into the same annoying problem: I had to manually explain the project structure and gather the relevant source files before the model could properly understand the codebase. So I built Raqule. It generates: 🌳 A visual project tree So an LLM can…

0

Sep 18, 2026

README

Raqule 🦝

A smart code gatherer for LLMs & AI

latest release license language


Raqule is a lightweight CLI tool designed for AI models (ChatGPT, Claude, Gemini, etc.) to bundle your entire project's context and code architecture into a single, clean file.


Table of Contents


πŸš€ Features

  • Visual Project Tree: Generates a structured directory tree so LLMs instantly understand your architecture.

  • Smart File Gathering: Appends all relevant source code files sequentially with code block formatting.

  • Fast & Lightweight: Built with pure Node.js asynchronous APIs for maximum speed.

  • Interactive & CLI Ready: Use interactive prompts or fast flags for quick execution.


πŸ› οΈ Built With

  • Commander - CLI flag parsing

  • Inquirer - Interactive command-line prompts

  • Node.js Native Modules (fs, path)


πŸ“¦ Installation

Since Raqule is built as a single executable binary, you don't even need Node.js installed to run it! Just download the appropriate binary for your OS, add it to your PATH, and you're good to go.


1. Download the Executable

Head over to the Releases page and download the latest release for your platform:

OSArchitectureFile Name
Linuxx64 (Intel/AMD)Raqule-vX.Y.Z-linux-x64
LinuxARM64Raqule-vX.Y.Z-linux-arm64
macOSApple Silicon (M1/M2/M3/M4)Raqule-vX.Y.Z-macos-arm64
Windowsx64 (Intel/AMD)Raqule-vX.Y.Z-win-x64.exe
WindowsARM64Raqule-vX.Y.Z-win-arm64.exe

(Optional) You can verify the integrity of your downloaded binary using the provided SHA256SUMS file.


2. Setup & Add to PATH

To run Raqule seamlessly from any terminal directory using the shortcut command rql (recommended) or raqule, follow the steps for your Operating System below:

🐧 Linux Setup 1. **Make it executable & rename to `rql`:** ```bash # Make the file executable chmod +x Raqule-*-linux-* # Rename it for easier use mv Raqule-*-linux-* rql ``` 2. **Move to system PATH (Recommended):** ```bash sudo mv rql /usr/local/bin/ ``` Now you can run `rql` anywhere! 🎯
🍎 macOS Setup 1. **Make it executable & rename to `rql`:** ```bash # Make the file executable chmod +x Raqule-*-macos-arm64 # Rename it for easier use mv Raqule-*-macos-arm64 rql ``` 2. **Move to system PATH (Recommended):** ```bash sudo mv rql /usr/local/bin/ ``` 3. **Allow Gatekeeper (If Prompted):** If macOS blocks the binary on first execution, run: ```bash xattr -d com.apple.quarantine /usr/local/bin/rql ``` Now you can run `rql` anywhere! 🎯
πŸͺŸ Windows Setup 1. **Rename the File:** Rename `Raqule-vX.Y.Z-win-x64.exe` (or `win-arm64`) to `rql.exe`. 2. **Move to a Safe Folder:** Create a dedicated folder, for example: `C:\Program Files\Raqule\`, and place `rql.exe` inside it. 3. **Add to System PATH:** - Press `Win + R`, type `sysdm.cpl`, and hit Enter. - Go to the **Advanced** tab -> click **Environment Variables**. - Under **User variables** (or System variables), find **Path** and click **Edit**. - Click **New** and add the directory path (e.g., `C:\Program Files\Raqule\`). - Click **OK** on all windows. 4. **Restart Terminal:** Open a new PowerShell or Command Prompt window. Now you can run `rql` anywhere! 🎯

3. Verification

Test your setup in any new terminal window:

rql --version

πŸ› οΈ Building from Source (Developers)

If you prefer installing from source code using Node.js & NPM:

# Clone repository
git clone [https://github.com/OmarPGH/Raqule.git](https://github.com/OmarPGH/Raqule.git)
cd Raqule
# Install dependencies
npm ci
# Link globally to your local environment
npm link

🚩 Available Flags

FlagDescription
-d, --depth <number>Set maximum folder traversal depth
-a, --allInclude hidden files and ignored folders (e.g., node_modules, .git, target, etc) Not Recommended
-t, --treeGenerate project tree structure only (without file contents)
-p, --printPrint the result (context.md content) in the Terminal
-P, --printOnlyPrint the result (context.md content) in the Terminal and delete it (context.md) after printing it
-V, --versionOutput the current version
-h, --helpDisplay help information

Examples:

# Gather code with a max depth of 2 levels
rql -d 2
# Include all ignored files/folders
rql -a
# Generate project tree structure only
rql -t

πŸ“‚ Project Structure

Generated by Raqule:

Raqule
β”œβ”€β”€ .git/
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       β”œβ”€β”€ release.yml
β”‚       └── semgrep.yml
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ bin/
β”‚   └── cli.js
β”œβ”€β”€ node_modules/
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ flags.js
β”‚   β”œβ”€β”€ format.js
β”‚   β”œβ”€β”€ gather.js
β”‚   β”œβ”€β”€ ignoreList.js
β”‚   β”œβ”€β”€ index.js
β”‚   β”œβ”€β”€ packageInfo.js
β”‚   β”œβ”€β”€ prompts.js
β”‚   β”œβ”€β”€ specialFiles.js
β”‚   β”œβ”€β”€ tree.js
β”‚   └── write.js
└── testProject/
    β”œβ”€β”€ README.md
    β”œβ”€β”€ main.mjs
    └── modules/
        β”œβ”€β”€ moduleOne.js
        └── moduleTwo.js

βš–οΈ License

This project is licensed under the Apache-2.0. See the LICENSE file for details.


πŸ‘¨β€πŸ’» Author

Omar Gamal - Creator and Maintainer

Contributors

OmarPGH

25 commits

OmarPGH/Raqule

Raqule is a code gatherer, specially designed for LLMs/AI like (ChatGPT, Claude, Gemini) to provide for them whole project context/codes in a single file.

JavaScript

1

25 commits

updated Sep 17, 2026

See the code
architecture
cli-tool
code-collector
collect
context
files-folders
gather
javascript
project
raqule
structure
tree

See what people are saying (1)

SourceMessageScoreDate

I built Raqule 🦝, a CLI tool that turns your project into an LLM-friendly context (r/SideProject)

When working with LLMs on a codebase, I kept running into the same annoying problem: I had to manually explain the project structure and gather the relevant source files before the model could properly understand the codebase. So I built Raqule. It generates: 🌳 A visual project tree So an LLM can…

0

Sep 18, 2026

README

Raqule 🦝

A smart code gatherer for LLMs & AI

latest release license language


Raqule is a lightweight CLI tool designed for AI models (ChatGPT, Claude, Gemini, etc.) to bundle your entire project's context and code architecture into a single, clean file.


Table of Contents


πŸš€ Features

  • Visual Project Tree: Generates a structured directory tree so LLMs instantly understand your architecture.

  • Smart File Gathering: Appends all relevant source code files sequentially with code block formatting.

  • Fast & Lightweight: Built with pure Node.js asynchronous APIs for maximum speed.

  • Interactive & CLI Ready: Use interactive prompts or fast flags for quick execution.


πŸ› οΈ Built With

  • Commander - CLI flag parsing

  • Inquirer - Interactive command-line prompts

  • Node.js Native Modules (fs, path)


πŸ“¦ Installation

Since Raqule is built as a single executable binary, you don't even need Node.js installed to run it! Just download the appropriate binary for your OS, add it to your PATH, and you're good to go.


1. Download the Executable

Head over to the Releases page and download the latest release for your platform:

OSArchitectureFile Name
Linuxx64 (Intel/AMD)Raqule-vX.Y.Z-linux-x64
LinuxARM64Raqule-vX.Y.Z-linux-arm64
macOSApple Silicon (M1/M2/M3/M4)Raqule-vX.Y.Z-macos-arm64
Windowsx64 (Intel/AMD)Raqule-vX.Y.Z-win-x64.exe
WindowsARM64Raqule-vX.Y.Z-win-arm64.exe

(Optional) You can verify the integrity of your downloaded binary using the provided SHA256SUMS file.


2. Setup & Add to PATH

To run Raqule seamlessly from any terminal directory using the shortcut command rql (recommended) or raqule, follow the steps for your Operating System below:

🐧 Linux Setup 1. **Make it executable & rename to `rql`:** ```bash # Make the file executable chmod +x Raqule-*-linux-* # Rename it for easier use mv Raqule-*-linux-* rql ``` 2. **Move to system PATH (Recommended):** ```bash sudo mv rql /usr/local/bin/ ``` Now you can run `rql` anywhere! 🎯
🍎 macOS Setup 1. **Make it executable & rename to `rql`:** ```bash # Make the file executable chmod +x Raqule-*-macos-arm64 # Rename it for easier use mv Raqule-*-macos-arm64 rql ``` 2. **Move to system PATH (Recommended):** ```bash sudo mv rql /usr/local/bin/ ``` 3. **Allow Gatekeeper (If Prompted):** If macOS blocks the binary on first execution, run: ```bash xattr -d com.apple.quarantine /usr/local/bin/rql ``` Now you can run `rql` anywhere! 🎯
πŸͺŸ Windows Setup 1. **Rename the File:** Rename `Raqule-vX.Y.Z-win-x64.exe` (or `win-arm64`) to `rql.exe`. 2. **Move to a Safe Folder:** Create a dedicated folder, for example: `C:\Program Files\Raqule\`, and place `rql.exe` inside it. 3. **Add to System PATH:** - Press `Win + R`, type `sysdm.cpl`, and hit Enter. - Go to the **Advanced** tab -> click **Environment Variables**. - Under **User variables** (or System variables), find **Path** and click **Edit**. - Click **New** and add the directory path (e.g., `C:\Program Files\Raqule\`). - Click **OK** on all windows. 4. **Restart Terminal:** Open a new PowerShell or Command Prompt window. Now you can run `rql` anywhere! 🎯

3. Verification

Test your setup in any new terminal window:

rql --version

πŸ› οΈ Building from Source (Developers)

If you prefer installing from source code using Node.js & NPM:

# Clone repository
git clone [https://github.com/OmarPGH/Raqule.git](https://github.com/OmarPGH/Raqule.git)
cd Raqule
# Install dependencies
npm ci
# Link globally to your local environment
npm link

🚩 Available Flags

FlagDescription
-d, --depth <number>Set maximum folder traversal depth
-a, --allInclude hidden files and ignored folders (e.g., node_modules, .git, target, etc) Not Recommended
-t, --treeGenerate project tree structure only (without file contents)
-p, --printPrint the result (context.md content) in the Terminal
-P, --printOnlyPrint the result (context.md content) in the Terminal and delete it (context.md) after printing it
-V, --versionOutput the current version
-h, --helpDisplay help information

Examples:

# Gather code with a max depth of 2 levels
rql -d 2
# Include all ignored files/folders
rql -a
# Generate project tree structure only
rql -t

πŸ“‚ Project Structure

Generated by Raqule:

Raqule
β”œβ”€β”€ .git/
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       β”œβ”€β”€ release.yml
β”‚       └── semgrep.yml
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ bin/
β”‚   └── cli.js
β”œβ”€β”€ node_modules/
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ flags.js
β”‚   β”œβ”€β”€ format.js
β”‚   β”œβ”€β”€ gather.js
β”‚   β”œβ”€β”€ ignoreList.js
β”‚   β”œβ”€β”€ index.js
β”‚   β”œβ”€β”€ packageInfo.js
β”‚   β”œβ”€β”€ prompts.js
β”‚   β”œβ”€β”€ specialFiles.js
β”‚   β”œβ”€β”€ tree.js
β”‚   └── write.js
└── testProject/
    β”œβ”€β”€ README.md
    β”œβ”€β”€ main.mjs
    └── modules/
        β”œβ”€β”€ moduleOne.js
        └── moduleTwo.js

βš–οΈ License

This project is licensed under the Apache-2.0. See the LICENSE file for details.


πŸ‘¨β€πŸ’» Author

Omar Gamal - Creator and Maintainer

Contributors

OmarPGH

25 commits

Languages

JavaScript

100.0%