Snib is a Python CLI tool to scan your projects and generate prompt-ready chunks for use with LLMs.
Today there are many AI coding assistants such as Copilot, Cursor, and Tabnine. They are powerful but often expensive, tied to specific models, and in some cases not as good at reasoning as other LLMs available on the web.
Snib keeps you flexible:
- Use any LLM - free, paid, reasoning-strong, or lightweight.
- Use your favorite model’s web UI while snib prepares your code for input.
- Recursively scan projects with include/exclude rules.
- Generate prompt-ready chunks with configurable sizes.
- Section formatting and built-in tasks to guide the AI.
- Simple CLI with three commands:
init
,scan
, andclean
.
pip install snib
Alternatively download the latest wheel here: Latest Release
cd /path/to/your/project
snib init
snib scan --smart
Full documentation is available at https://patmllr.github.io/snib/:
- Usage: Learn how to run snib and configure it.
- Development: Contributing, testing, and internal structure.
- API Reference: Automatically generated from the code docstrings.
Help improve snib by contributing presets, features, or bug fixes. See Contributing.
MIT License © 2025 Patrick Müller