repo-to-llm-context


Namerepo-to-llm-context JSON
Version 2.2.6 PyPI version JSON
download
home_pageNone
SummaryA tool to gather project context into a single file for LLMs
upload_time2025-09-03 19:49:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords llm context code clipboard ai developer-tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">đŸ“Ļ repo-to-llm-context đŸ“Ļ</h1>
<h3 align="center">Stop copy-pasting code. Start shipping smarter prompts.</h3>

<p align="center">
 <strong>
    <em>the ultimate context packer for your AI coding assistant. it scans your repo, ditches the junk, and bundles the good stuff into one perfect, clipboard-ready prompt.</em>
  </strong>
</p>

<p align="center">
  <!-- Package Info -->
  <a href="#"><img alt="pypi" src="https://img.shields.io/pypi/v/repo-to-llm-context.svg?style=flat-square&color=4D87E6"></a>
  <a href="#"><img alt="python" src="https://img.shields.io/badge/python-3.6+-4D87E6.svg?style=flat-square"></a>
  &nbsp;&nbsp;â€ĸ&nbsp;&nbsp;
  <!-- Features -->
  <a href="#"><img alt="license" src="https://img.shields.io/badge/License-MIT-F9A825.svg?style=flat-square"></a> 
  <a href="#"><img alt="platform" src="https://img.shields.io/badge/platform-macOS_|_Linux_|_Windows-2ED573.svg?style=flat-square"></a>
</p>

<p align="center">
  <img alt="zero config" src="https://img.shields.io/badge/âš™ī¸_zero_config-works_out_of_the_box-2ED573.svg?style=for-the-badge">
  <img alt="clipboard ready" src="https://img.shields.io/badge/📋_clipboard_ready-one_command_to_copy-2ED573.svg?style=for-the-badge">
</p>

<div align="center">
  
### 🧭 Quick Navigation

[**⚡ Get Started**](#-get-started-in-60-seconds) â€ĸ 
[**✨ Key Features**](#-feature-breakdown-the-secret-sauce) â€ĸ 
[**🎮 Usage & Examples**](#-usage-fire-and-forget) â€ĸ 
[**âš™ī¸ Advanced Flags**](#ī¸-advanced-usage--customization) â€ĸ
[**🆚 Comparison**](#-why-this-slaps-other-methods)

</div>

---

**`repo-to-llm-context`** is the project manager your AI assistant wishes it had. Stop feeding your LLM random files and praying for a good answer. This tool acts like a pro developer, reading your entire project, intelligently selecting the most relevant files, and packaging them into a perfectly structured prompt so your AI can actually understand what the hell is going on.

<div align="center">
<table>
<tr>
<td align="center">
<h3>🧠</h3>
<b>Smart Filtering</b><br/>
<sub>Ditches node_modules & junk</sub>
</td>
<td align="center">
<h3>đŸŽ¯</h3>
<b>Relevance Scoring</b><br/>
<sub>Puts the important code first</sub>
</td>
<td align="center">
<h3>📋</h3>
<b>Clipboard Ready</b><br/>
<sub>One command, ready to paste</sub>
</td>
</tr>
</table>
</div>

How it slaps:
-  **You:** `cd my-project && context`
-  **`context`:** Scans, filters, scores, formats, and copies.
-  **You:** `Cmd+V` into Claude/ChatGPT/Gemini.
-  **LLM:** "Ah, I see. A well-structured project. Here is your god-tier answer."

---

## đŸ’Ĩ Why This Slaps Other Methods

Manually prepping context is a vibe-killer. `repo-to-llm-context` makes other methods look ancient.

<table align="center">
<tr>
<td align="center"><b>❌ The Old Way (Pain)</b></td>
<td align="center"><b>✅ The `context` Way (Glory)</b></td>
</tr>
<tr>
<td>
<ol>
  <li>Open 15 files in VS Code.</li>
  <li>Frantically copy-paste into a text file.</li>
  <li>Realize you forgot the Dockerfile.</li>
  <li>Curse as you hit the token limit.</li>
  <li>Get a mediocre answer from a confused LLM.</li>
</ol>
</td>
<td>
<ol>
  <li><code>cd my-project</code></li>
  <li><code>context</code></li>
  <li>Paste.</li>
  <li>Receive genius-level insights.</li>
  <li>Go grab a coffee. ☕</li>
</ol>
</td>
</tr>
</table>

We're not just concatenating files. We're building a **high-signal, low-noise prompt** with a sophisticated scoring algorithm that knows a `README.md` is more important than a test utility, and a `main.py` is more critical than a config file deep in a subdirectory.

---

## 🚀 Get Started in 60 Seconds

The `context` command will be available in your terminal after installation.

### 🍎 macOS & 🐧 Linux: Homebrew (Recommended)
This is the cleanest, most native experience.

```bash
# 1. Add the Tap (a one-time setup)
brew tap yigitkonur/context
brew install yigitkonur/context/context
```

### đŸĒŸ Windows & Others: pipx (Recommended)
`pipx` is the gold standard for installing Python CLI tools. It keeps things tidy and isolated.

```bash
# 1. Install pipx if you don't have it
python3 -m pip install --user pipx
python3 -m pipx ensurepath

# 2. Install the tool (from PyPI once published, or from GitHub for latest)
pipx install repo-to-llm-context
# OR for latest dev version: pipx install git+https://github.com/yigitkonur/code-to-clipboard-for-llms.git
```

> **✨ Zero Manual Setup:** After installation, the `context` command should be ready to go. If not, just restart your terminal!

---

## 🎮 Usage: Fire and Forget

The workflow is dead simple.

**1. Navigate to Your Project**
```bash
cd /path/to/your/killer-app
```

**2. Run the Command**
```bash
context
```
Your clipboard is now loaded with perfectly formatted Markdown.

**3. Paste & Prompt**
Go to your favorite LLM and paste the context. Now you can ask the real questions.

### Output Control đŸ•šī¸

Don't want it on your clipboard? No problem.

*   **Save to a file:**
    ```bash
    context --output project_context.md
    ```
*   **Print directly to your terminal (for piping or peeking):**
    ```bash
    context --stdout
    ```

---

## ✨ Feature Breakdown: The Secret Sauce

<div align="center">

| Feature | What It Does | Why You Care |
| :---: | :--- | :--- |
| **🧠 Smart Filtering**<br/>`No junk allowed` | Auto-excludes `node_modules`, `venv`, `builds`, `.git`, logs & more | Stops you from wasting tokens on garbage |
| **đŸŽ¯ Relevance Scoring**<br/>`AI-optimized order` | Prioritizes files with a nuanced algorithm | Your LLM gets the most important info first |
| **đŸ—ī¸ Project Tree**<br/>`Visual context` | Includes a `tree`-style view of what's included | The AI (and you) can see the project structure |
| **âš™ī¸ Git-Aware**<br/>`Respects your repo` | Can read your `.gitignore` and check tracking status | Context matches your actual source code |
| **📋 Clipboard Ready**<br/>`Cmd+C on steroids` | Copies the entire formatted output in one go | Zero manual work between terminal and AI |
| **🔧 Hyper-Configurable**<br/>`You're the boss` | Flags to include/exclude anything you want | Fine-tune the context for any weird project |
| **🔒 Privacy First**<br/>`No path leaks` | Masks your local home directory path in the summary | Share your code, not your user folder |
| **🚀 Auto-Update**<br/>`Always current` | Automatically updates to the latest version when available | Never miss new features or critical fixes |

</div>

---

## âš™ī¸ Advanced Usage & Customization

The defaults are great, but you can dial it in just right.

<details>
<summary><b>Expand for the full list of command-line flags</b></summary>

#### Filtering and Inclusion Control

*   `--include PATTERN`: Glob pattern to force inclusion of files/directories that might be excluded (e.g., `--include "config/**.yaml"`).
*   `--exclude PATTERN`: Glob pattern to add custom exclusions beyond the defaults (e.g., `--exclude "*.log"`).
*   `--include-only`: A powerful mode that includes *only* files matching `--include` patterns, excluding everything else.
*   `--exclude-extension EXT`: Exclude all files with a specific extension (e.g., `--exclude-extension .tmp`).
*   `--include-extension EXT`: Force include files with an extension that is normally excluded by default.

#### Override Default File Type Exclusions

*   `--include-json`: Include `.json` / `.jsonc` files.
*   `--include-yaml`: Include `.yaml` / `.yml` files.
*   `--include-xml`: Include `.xml` files.
*   `--include-html`: Include `.html` / `.htm` files.
*   `--include-css`: Include `.css` files.
*   `--include-sql`: Include `.sql` files.
*   `--include-csv`: Include `.csv` / `.tsv` files.
*   `--include-markdown`: Include all Markdown files, not just the root `README.md`.

#### Size and Content Control

*   `--max-size SIZE`: Exclude files larger than the specified size (e.g., `500k`, `10M`). Default is `2M`.
*   `--include-binary`: Attempt to include files detected as binary (default is to exclude them).
*   `--max-depth N`: Limit scanning to a maximum directory depth.

#### Git Integration Behavior

*   `--no-gitignore`: (Default) Ignore `.gitignore` rules and Git tracking status entirely.
*   `--gitignore-only`: Use `.gitignore` rules for exclusion but *don't* filter based on Git tracking status.
*   `--use-git`: Use both `.gitignore` rules and only include files that are tracked by Git.

#### Output and Execution Behavior

*   `--output FILE`: Write output to a file instead of the clipboard.
*   `--stdout`: Print the full output to the terminal.
*   `--no-clipboard`: Disable automatic copying to the clipboard (useful when using `--stdout` or `--output`).
*   `--preview`: Show a summary of what would be included without processing files or generating output.
*   `--dry-run`: Run the entire process but do not write any output to the clipboard, file, or stdout.
*   `--sort-alpha`: Override the relevance-based sorting and sort files alphabetically instead.

#### Update Management

*   `--version`: Display the current version and exit.
*   `--check-updates`: Check for available updates with interactive prompts.
*   `--no-auto-update`: Disable automatic updates (by default, `context` automatically updates when new versions are available).

> **🚀 Auto-Update Feature**: By default, `context` automatically checks for and installs new versions when you run the command. This ensures you always have the latest features and fixes. Use `--no-auto-update` if you prefer manual control over updates.

</details>

---

## 🆚 Why This Slaps Other Methods

<div align="center">

| Method | The Pain 😩 | The `context` Way 😎 |
| :--- | :--- | :--- |
| **Manual Copy/Paste** | You'll miss a file. You'll include junk. You'll hate your life. | One command. Perfect context. Every time. |
| **`cat file1 file2 > out.txt`** | Zero structure. No filtering. Still manual. Basically useless. | Auto-filters, adds a file tree, and formats beautifully. |
| **Sharing a GitHub Link** | LLM can't see local changes. Can't access private repos. | Works offline. Works on your latest, unpushed code. |
| **Simple `tree` command** | Shows structure but includes zero code content. | Gives you the full package: structure AND content. |

</div>

---

## đŸ› ī¸ For Developers & Tinkerers

### Running from Source

Want to hack on the code? Easy.

1.  **Clone the repo:**
    ```bash
    git clone https://github.com/yigitkonur/code-to-clipboard-for-llms.git
    cd code-to-clipboard-for-llms
    ```

2.  **Set up a virtual environment and install in editable mode:**
    ```bash
    python3 -m venv venv
    source venv/bin/activate
    pip install -e .
    ```
    Now, any change you make to `llmcontext.py` will be live on your `context` command.

### Fork & Customize

If you fork the repo, you can permanently change the default filters by editing the constants at the top of `llmcontext.py`.

---

## đŸ”Ĩ Common Issues & Quick Fixes

<details>
<summary><b>Expand for troubleshooting tips</b></summary>

| Problem | Solution |
| :--- | :--- |
| **`context: command not found`** | **Restart your terminal.** 99% of the time, this is the fix. If not, run `pipx ensurepath` (for pipx) or check your `PATH` environment variable. |
| **Clipboard isn't working** | **Linux users:** You might need a clipboard utility. Run `sudo apt install xclip` or `sudo pacman -S xclip`. For any OS, you can always use `--stdout` or `--output my_context.md` to bypass the clipboard. |
| **`.gitignore` is ignored** | By default, git integration is off for speed. Use the `--gitignore-only` or `--use-git` flag to turn it on. |
| **Script errors out** | Make sure you're on Python 3.8 or newer (`python3 --version`). |

</details>

---

<div align="center">

**Built with đŸ”Ĩ because manually crafting LLM prompts is a soul-crushing waste of time.**

</div>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "repo-to-llm-context",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "llm, context, code, clipboard, ai, developer-tools",
    "author": null,
    "author_email": "Yigit Konur <yigit35@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3d/62/a08c3660341270ec1e932e98ae0fb8a2420acd182c40e076d90ee507ed6b/repo_to_llm_context-2.2.6.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\ud83d\udce6 repo-to-llm-context \ud83d\udce6</h1>\n<h3 align=\"center\">Stop copy-pasting code. Start shipping smarter prompts.</h3>\n\n<p align=\"center\">\n <strong>\n    <em>the ultimate context packer for your AI coding assistant. it scans your repo, ditches the junk, and bundles the good stuff into one perfect, clipboard-ready prompt.</em>\n  </strong>\n</p>\n\n<p align=\"center\">\n  <!-- Package Info -->\n  <a href=\"#\"><img alt=\"pypi\" src=\"https://img.shields.io/pypi/v/repo-to-llm-context.svg?style=flat-square&color=4D87E6\"></a>\n  <a href=\"#\"><img alt=\"python\" src=\"https://img.shields.io/badge/python-3.6+-4D87E6.svg?style=flat-square\"></a>\n  &nbsp;&nbsp;\u2022&nbsp;&nbsp;\n  <!-- Features -->\n  <a href=\"#\"><img alt=\"license\" src=\"https://img.shields.io/badge/License-MIT-F9A825.svg?style=flat-square\"></a> \n  <a href=\"#\"><img alt=\"platform\" src=\"https://img.shields.io/badge/platform-macOS_|_Linux_|_Windows-2ED573.svg?style=flat-square\"></a>\n</p>\n\n<p align=\"center\">\n  <img alt=\"zero config\" src=\"https://img.shields.io/badge/\u2699\ufe0f_zero_config-works_out_of_the_box-2ED573.svg?style=for-the-badge\">\n  <img alt=\"clipboard ready\" src=\"https://img.shields.io/badge/\ud83d\udccb_clipboard_ready-one_command_to_copy-2ED573.svg?style=for-the-badge\">\n</p>\n\n<div align=\"center\">\n  \n### \ud83e\udded Quick Navigation\n\n[**\u26a1 Get Started**](#-get-started-in-60-seconds) \u2022 \n[**\u2728 Key Features**](#-feature-breakdown-the-secret-sauce) \u2022 \n[**\ud83c\udfae Usage & Examples**](#-usage-fire-and-forget) \u2022 \n[**\u2699\ufe0f Advanced Flags**](#\ufe0f-advanced-usage--customization) \u2022\n[**\ud83c\udd9a Comparison**](#-why-this-slaps-other-methods)\n\n</div>\n\n---\n\n**`repo-to-llm-context`** is the project manager your AI assistant wishes it had. Stop feeding your LLM random files and praying for a good answer. This tool acts like a pro developer, reading your entire project, intelligently selecting the most relevant files, and packaging them into a perfectly structured prompt so your AI can actually understand what the hell is going on.\n\n<div align=\"center\">\n<table>\n<tr>\n<td align=\"center\">\n<h3>\ud83e\udde0</h3>\n<b>Smart Filtering</b><br/>\n<sub>Ditches node_modules & junk</sub>\n</td>\n<td align=\"center\">\n<h3>\ud83c\udfaf</h3>\n<b>Relevance Scoring</b><br/>\n<sub>Puts the important code first</sub>\n</td>\n<td align=\"center\">\n<h3>\ud83d\udccb</h3>\n<b>Clipboard Ready</b><br/>\n<sub>One command, ready to paste</sub>\n</td>\n</tr>\n</table>\n</div>\n\nHow it slaps:\n-  **You:** `cd my-project && context`\n-  **`context`:** Scans, filters, scores, formats, and copies.\n-  **You:** `Cmd+V` into Claude/ChatGPT/Gemini.\n-  **LLM:** \"Ah, I see. A well-structured project. Here is your god-tier answer.\"\n\n---\n\n## \ud83d\udca5 Why This Slaps Other Methods\n\nManually prepping context is a vibe-killer. `repo-to-llm-context` makes other methods look ancient.\n\n<table align=\"center\">\n<tr>\n<td align=\"center\"><b>\u274c The Old Way (Pain)</b></td>\n<td align=\"center\"><b>\u2705 The `context` Way (Glory)</b></td>\n</tr>\n<tr>\n<td>\n<ol>\n  <li>Open 15 files in VS Code.</li>\n  <li>Frantically copy-paste into a text file.</li>\n  <li>Realize you forgot the Dockerfile.</li>\n  <li>Curse as you hit the token limit.</li>\n  <li>Get a mediocre answer from a confused LLM.</li>\n</ol>\n</td>\n<td>\n<ol>\n  <li><code>cd my-project</code></li>\n  <li><code>context</code></li>\n  <li>Paste.</li>\n  <li>Receive genius-level insights.</li>\n  <li>Go grab a coffee. \u2615</li>\n</ol>\n</td>\n</tr>\n</table>\n\nWe're not just concatenating files. We're building a **high-signal, low-noise prompt** with a sophisticated scoring algorithm that knows a `README.md` is more important than a test utility, and a `main.py` is more critical than a config file deep in a subdirectory.\n\n---\n\n## \ud83d\ude80 Get Started in 60 Seconds\n\nThe `context` command will be available in your terminal after installation.\n\n### \ud83c\udf4e macOS & \ud83d\udc27 Linux: Homebrew (Recommended)\nThis is the cleanest, most native experience.\n\n```bash\n# 1. Add the Tap (a one-time setup)\nbrew tap yigitkonur/context\nbrew install yigitkonur/context/context\n```\n\n### \ud83e\ude9f Windows & Others: pipx (Recommended)\n`pipx` is the gold standard for installing Python CLI tools. It keeps things tidy and isolated.\n\n```bash\n# 1. Install pipx if you don't have it\npython3 -m pip install --user pipx\npython3 -m pipx ensurepath\n\n# 2. Install the tool (from PyPI once published, or from GitHub for latest)\npipx install repo-to-llm-context\n# OR for latest dev version: pipx install git+https://github.com/yigitkonur/code-to-clipboard-for-llms.git\n```\n\n> **\u2728 Zero Manual Setup:** After installation, the `context` command should be ready to go. If not, just restart your terminal!\n\n---\n\n## \ud83c\udfae Usage: Fire and Forget\n\nThe workflow is dead simple.\n\n**1. Navigate to Your Project**\n```bash\ncd /path/to/your/killer-app\n```\n\n**2. Run the Command**\n```bash\ncontext\n```\nYour clipboard is now loaded with perfectly formatted Markdown.\n\n**3. Paste & Prompt**\nGo to your favorite LLM and paste the context. Now you can ask the real questions.\n\n### Output Control \ud83d\udd79\ufe0f\n\nDon't want it on your clipboard? No problem.\n\n*   **Save to a file:**\n    ```bash\n    context --output project_context.md\n    ```\n*   **Print directly to your terminal (for piping or peeking):**\n    ```bash\n    context --stdout\n    ```\n\n---\n\n## \u2728 Feature Breakdown: The Secret Sauce\n\n<div align=\"center\">\n\n| Feature | What It Does | Why You Care |\n| :---: | :--- | :--- |\n| **\ud83e\udde0 Smart Filtering**<br/>`No junk allowed` | Auto-excludes `node_modules`, `venv`, `builds`, `.git`, logs & more | Stops you from wasting tokens on garbage |\n| **\ud83c\udfaf Relevance Scoring**<br/>`AI-optimized order` | Prioritizes files with a nuanced algorithm | Your LLM gets the most important info first |\n| **\ud83c\udfd7\ufe0f Project Tree**<br/>`Visual context` | Includes a `tree`-style view of what's included | The AI (and you) can see the project structure |\n| **\u2699\ufe0f Git-Aware**<br/>`Respects your repo` | Can read your `.gitignore` and check tracking status | Context matches your actual source code |\n| **\ud83d\udccb Clipboard Ready**<br/>`Cmd+C on steroids` | Copies the entire formatted output in one go | Zero manual work between terminal and AI |\n| **\ud83d\udd27 Hyper-Configurable**<br/>`You're the boss` | Flags to include/exclude anything you want | Fine-tune the context for any weird project |\n| **\ud83d\udd12 Privacy First**<br/>`No path leaks` | Masks your local home directory path in the summary | Share your code, not your user folder |\n| **\ud83d\ude80 Auto-Update**<br/>`Always current` | Automatically updates to the latest version when available | Never miss new features or critical fixes |\n\n</div>\n\n---\n\n## \u2699\ufe0f Advanced Usage & Customization\n\nThe defaults are great, but you can dial it in just right.\n\n<details>\n<summary><b>Expand for the full list of command-line flags</b></summary>\n\n#### Filtering and Inclusion Control\n\n*   `--include PATTERN`: Glob pattern to force inclusion of files/directories that might be excluded (e.g., `--include \"config/**.yaml\"`).\n*   `--exclude PATTERN`: Glob pattern to add custom exclusions beyond the defaults (e.g., `--exclude \"*.log\"`).\n*   `--include-only`: A powerful mode that includes *only* files matching `--include` patterns, excluding everything else.\n*   `--exclude-extension EXT`: Exclude all files with a specific extension (e.g., `--exclude-extension .tmp`).\n*   `--include-extension EXT`: Force include files with an extension that is normally excluded by default.\n\n#### Override Default File Type Exclusions\n\n*   `--include-json`: Include `.json` / `.jsonc` files.\n*   `--include-yaml`: Include `.yaml` / `.yml` files.\n*   `--include-xml`: Include `.xml` files.\n*   `--include-html`: Include `.html` / `.htm` files.\n*   `--include-css`: Include `.css` files.\n*   `--include-sql`: Include `.sql` files.\n*   `--include-csv`: Include `.csv` / `.tsv` files.\n*   `--include-markdown`: Include all Markdown files, not just the root `README.md`.\n\n#### Size and Content Control\n\n*   `--max-size SIZE`: Exclude files larger than the specified size (e.g., `500k`, `10M`). Default is `2M`.\n*   `--include-binary`: Attempt to include files detected as binary (default is to exclude them).\n*   `--max-depth N`: Limit scanning to a maximum directory depth.\n\n#### Git Integration Behavior\n\n*   `--no-gitignore`: (Default) Ignore `.gitignore` rules and Git tracking status entirely.\n*   `--gitignore-only`: Use `.gitignore` rules for exclusion but *don't* filter based on Git tracking status.\n*   `--use-git`: Use both `.gitignore` rules and only include files that are tracked by Git.\n\n#### Output and Execution Behavior\n\n*   `--output FILE`: Write output to a file instead of the clipboard.\n*   `--stdout`: Print the full output to the terminal.\n*   `--no-clipboard`: Disable automatic copying to the clipboard (useful when using `--stdout` or `--output`).\n*   `--preview`: Show a summary of what would be included without processing files or generating output.\n*   `--dry-run`: Run the entire process but do not write any output to the clipboard, file, or stdout.\n*   `--sort-alpha`: Override the relevance-based sorting and sort files alphabetically instead.\n\n#### Update Management\n\n*   `--version`: Display the current version and exit.\n*   `--check-updates`: Check for available updates with interactive prompts.\n*   `--no-auto-update`: Disable automatic updates (by default, `context` automatically updates when new versions are available).\n\n> **\ud83d\ude80 Auto-Update Feature**: By default, `context` automatically checks for and installs new versions when you run the command. This ensures you always have the latest features and fixes. Use `--no-auto-update` if you prefer manual control over updates.\n\n</details>\n\n---\n\n## \ud83c\udd9a Why This Slaps Other Methods\n\n<div align=\"center\">\n\n| Method | The Pain \ud83d\ude29 | The `context` Way \ud83d\ude0e |\n| :--- | :--- | :--- |\n| **Manual Copy/Paste** | You'll miss a file. You'll include junk. You'll hate your life. | One command. Perfect context. Every time. |\n| **`cat file1 file2 > out.txt`** | Zero structure. No filtering. Still manual. Basically useless. | Auto-filters, adds a file tree, and formats beautifully. |\n| **Sharing a GitHub Link** | LLM can't see local changes. Can't access private repos. | Works offline. Works on your latest, unpushed code. |\n| **Simple `tree` command** | Shows structure but includes zero code content. | Gives you the full package: structure AND content. |\n\n</div>\n\n---\n\n## \ud83d\udee0\ufe0f For Developers & Tinkerers\n\n### Running from Source\n\nWant to hack on the code? Easy.\n\n1.  **Clone the repo:**\n    ```bash\n    git clone https://github.com/yigitkonur/code-to-clipboard-for-llms.git\n    cd code-to-clipboard-for-llms\n    ```\n\n2.  **Set up a virtual environment and install in editable mode:**\n    ```bash\n    python3 -m venv venv\n    source venv/bin/activate\n    pip install -e .\n    ```\n    Now, any change you make to `llmcontext.py` will be live on your `context` command.\n\n### Fork & Customize\n\nIf you fork the repo, you can permanently change the default filters by editing the constants at the top of `llmcontext.py`.\n\n---\n\n## \ud83d\udd25 Common Issues & Quick Fixes\n\n<details>\n<summary><b>Expand for troubleshooting tips</b></summary>\n\n| Problem | Solution |\n| :--- | :--- |\n| **`context: command not found`** | **Restart your terminal.** 99% of the time, this is the fix. If not, run `pipx ensurepath` (for pipx) or check your `PATH` environment variable. |\n| **Clipboard isn't working** | **Linux users:** You might need a clipboard utility. Run `sudo apt install xclip` or `sudo pacman -S xclip`. For any OS, you can always use `--stdout` or `--output my_context.md` to bypass the clipboard. |\n| **`.gitignore` is ignored** | By default, git integration is off for speed. Use the `--gitignore-only` or `--use-git` flag to turn it on. |\n| **Script errors out** | Make sure you're on Python 3.8 or newer (`python3 --version`). |\n\n</details>\n\n---\n\n<div align=\"center\">\n\n**Built with \ud83d\udd25 because manually crafting LLM prompts is a soul-crushing waste of time.**\n\n</div>\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool to gather project context into a single file for LLMs",
    "version": "2.2.6",
    "project_urls": {
        "Homepage": "https://github.com/yigitkonur/code-to-clipboard-for-llms",
        "Issues": "https://github.com/yigitkonur/code-to-clipboard-for-llms/issues",
        "Repository": "https://github.com/yigitkonur/code-to-clipboard-for-llms"
    },
    "split_keywords": [
        "llm",
        " context",
        " code",
        " clipboard",
        " ai",
        " developer-tools"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6489247abe952bac89e7e94a60c877a1f7cb9300b7129876cd76fcdd1a0853dc",
                "md5": "acf9d7eb0fcd0463fac876fc8c232ae1",
                "sha256": "42cd7a478805b1a73808689ffd3698c343f5e5fe7217e091c95fa12032d457a8"
            },
            "downloads": -1,
            "filename": "repo_to_llm_context-2.2.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "acf9d7eb0fcd0463fac876fc8c232ae1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 21830,
            "upload_time": "2025-09-03T19:49:27",
            "upload_time_iso_8601": "2025-09-03T19:49:27.737800Z",
            "url": "https://files.pythonhosted.org/packages/64/89/247abe952bac89e7e94a60c877a1f7cb9300b7129876cd76fcdd1a0853dc/repo_to_llm_context-2.2.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3d62a08c3660341270ec1e932e98ae0fb8a2420acd182c40e076d90ee507ed6b",
                "md5": "b144fda888fb00e450bd86cce7be73cc",
                "sha256": "9d2d4cfac71777bc55ae1ec57bba50ce9127992baa313ff95520b58a94bb9aa2"
            },
            "downloads": -1,
            "filename": "repo_to_llm_context-2.2.6.tar.gz",
            "has_sig": false,
            "md5_digest": "b144fda888fb00e450bd86cce7be73cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 26951,
            "upload_time": "2025-09-03T19:49:28",
            "upload_time_iso_8601": "2025-09-03T19:49:28.586746Z",
            "url": "https://files.pythonhosted.org/packages/3d/62/a08c3660341270ec1e932e98ae0fb8a2420acd182c40e076d90ee507ed6b/repo_to_llm_context-2.2.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-03 19:49:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yigitkonur",
    "github_project": "code-to-clipboard-for-llms",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "repo-to-llm-context"
}
        
Elapsed time: 1.18685s