Metadata-Version: 2.4
Name: aicodeprep-gui
Version: 1.5.0
Summary: A smart GUI to select, filter, and concatenate code files for large language model (LLM) and AI analysis.
Author-email: Tom Brothers <tom@wuu73.org>
License-Expression: LicenseRef-SUSTAINABLE
Project-URL: Homepage, https://github.com/detroittommy879/aicodeprep-gui
Keywords: ai,code,preparation,llm,gui,pyside6
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Classifier: Environment :: X11 Applications :: Qt
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: MacOS X
Requires-Python: <3.14,>=3.10
Description-Content-Type: text/markdown
License-File: SUSTAINABLE-LICENSE
Requires-Dist: PySide6==6.9.3
Requires-Dist: toml==0.10.2
Requires-Dist: NodeGraphQt==0.6.43
Requires-Dist: pathspec==1.0.3
Requires-Dist: requests==2.34.2
Requires-Dist: packaging==25.0
Requires-Dist: Pygments==2.19.2
Requires-Dist: setuptools==80.9.0
Provides-Extra: build
Requires-Dist: setuptools==80.9.0; extra == "build"
Requires-Dist: wheel==0.45.1; extra == "build"
Dynamic: license-file

![AICodePrep logo](aicodeprep_gui/images/aicp-transparent-min.png)

# AICodePrep GUI

AICodePrep GUI turns selected project files into one clean context block you can paste into an AI chat.

It solves a simple annoyance: when a bug or design question spans many files, copying those files into ChatGPT, Claude, Gemini, OpenRouter, or another chat by hand is slow. AICodePrep scans the folder, lets you choose the files, generates one organized bundle, copies it to your clipboard, and saves it as `.aicp/context_block.md`.

[![PyPI version](https://badge.fury.io/py/aicodeprep-gui.svg)](https://badge.fury.io/py/aicodeprep-gui)
[![GitHub stars](https://img.shields.io/github/stars/detroittommy879/aicodeprep-gui.svg?style=social&label=Stars)](https://github.com/detroittommy879/aicodeprep-gui/stargazers)

![Screenshot](scrs/n1.png)

See [Documentation](https://aicp.wuu73.org) (major updates to docs)

## Why Use It

- Paste one generated context block instead of copying files one by one.
- Keep control over exactly which files the model sees.
- Models very often behave smarter and have better responses when they aren't given MCP servers, tools, its the agentic stuff that dumbs them down - using this allows full intelligence
- Use frontier models on their native web chat interface to save money (many are still free to use, like Gemini 3.5 Flash on aistudio)
- Use the same context in several AI chats and compare answers.
- Work beside any editor: VS Code, Cursor, Windsurf, PyCharm, Zed, terminals, or anything else.
- Use direct chat models for diagnosis, planning, and review before handing changes to an editor or agent.

## Install

The usual install command is:

```bash
uv tool install aicodeprep-gui
```

`pipx` also works:

```bash
pipx install aicodeprep-gui
```

(just make sure you choose one install method and stick to it)

The package supports Python 3.9 through 3.13.

If you are looking for the lazy method where you don't need to worry about python versions, this script should work (it shows you a menu before it does anything, where you can select aicodeprep-gui) [Get computer ready for vibe coding](https://wuu73.org/vibe)

## Launch

Open the current folder:

```bash
aicp
```

Open another folder:

```bash
aicp path/to/project
```

The longer command also works:

```bash
aicodeprep-gui
```

## Core Workflow

1. Open a project with `aicp` or the right-click folder integration.
2. Review the selected files.
3. Check or uncheck anything you want to change.
4. Add a prompt or use a saved preset.
5. Click **Generate Context**.
6. Paste the generated context into your AI chat.

The generated file is also saved here:

```text
.aicp/context_block.md
```

## Performance

Recent builds can use a bundled Rust worker for faster folder scanning and context generation. If the worker is unavailable for any reason, the app falls back to the Python implementation.

When launched from a terminal, the app logs whether it used Rust acceleration or Python fallback.

## Right-Click Integration

The app can install file explorer integration from its menu.

- Windows: open from File Explorer
- macOS: open from Finder
- Linux: open from supported file managers

This is optional, but it makes the app feel more like a normal desktop tool: right-click a folder, open AICodePrep, generate context.

## Configuration

You can customize scanning with an `aicodeprep-gui.toml` file in your project root.

Example:

```toml
max_file_size = 2000000

code_extensions = [".py", ".js", ".ts", ".html", ".css", ".rs"]

exclude_patterns = [
    "build/",
    "dist/",
    "*.log",
    "node_modules/",
    ".venv/"
]

default_include_patterns = [
    "README.md",
    "main.py",
    "src/**/*.py"
]
```

## Command-Line Options

```bash
# Run in the current directory
aicp

# Run in a specific directory
aicp /path/to/project

# Generate context without opening the GUI
aicp --skipui

# See all options
aicp --help
```

## Docs

The MkDocs documentation is in `docs/`.

Build it locally with:

```bash
uv run --with-requirements requirements-docs.txt mkdocs build --strict
```

Serve it locally with:

```bash
uv run --with-requirements requirements-docs.txt mkdocs serve
```

See [Documentation](https://aicp.wuu73.org) (major updates to docs)

## Pro

The free app covers the main workflow: select files, generate context, copy to clipboard, and paste into AI chats.

Pro features are optional extras for heavier use, such as dual prompt placement, syntax highlighting in the preview window, and additional workflow tools.

## Contributing

Bug reports, feature requests, and pull requests are welcome.

GitHub: https://github.com/detroittommy879/aicodeprep-gui

## Support

If the app saves you time, Pro activation and sponsorships help keep development going.

Website: https://wuu73.org/hello.html

## License

This software uses the Sustainable License.

- Free for personal and commercial use
- You may use app output commercially
- You may keep and modify source code
- You may not sell or redistribute this software
- You may not offer this as a hosted service

See [SUSTAINABLE-LICENSE](SUSTAINABLE-LICENSE).
