Skip to main content

License: AGPL v3 PyPI Python

dragiter – Deterministic RAG Iterator. A modular CLI for structured, reproducible LLM workflows.

dragiter is a modular command-line interface (CLI) designed to integrate Large Language Models (LLMs) directly into your automated terminal workflows. It acts as a bridge between your local file system and AI APIs, eliminating "copy-paste fatigue" by allowing you to chain AI agents exactly like standard Unix pipes.

Why dragiter?

If you want an AI to review an entire project, manually gathering files, stripping out noise, and pasting them into a web chat is tedious. dragiter solves this through "Prompt as Code."

  • Automated Context Assembly: Use wildcards (like src/**/*.py) and regex patterns to surgically extract exactly what the AI needs to see.
  • Version-Controllable Prompts: Define your AI instructions and data context in standard .toml files so your workflows are repeatable and shareable.
  • Advanced Batch Processing: Feed dragiter a .jsonl loop file to automatically iterate through translation tasks, report summaries, or data extraction without writing custom Python scripts.
  • Vendor Independence: Switch from cloud providers like OpenAI, Grok, or Google to a completely local, private model like Ollama just by changing a single CLI flag.

Installation

You can install dragiter easily via pip:

pip install dragiter

The project logo is available in assets/logo/dragiter-logo.png.

Quick Start

The core philosophy of dragiter is to keep your resources (material, context) and your prompts (instructions) separate.

The easiest way to explore dragiter is by using the included examples

1. Extract the Examples

First, extract them into your current directory by running:

dragiter-gen-examples .

You will find the examples in the examples/ subdirectory. To follow along with the first example, navigate into it:

cd examples/01_md_sample

2. Test Safely with Simulation Mode

It is highly recommended to always run a simulation first. This allows you to safely verify your workflow and file routing without making actual API calls or spending your API credits. You can do this by adding the -s flag to your command.

Run the simulation by typing:

dragiter -s -p 01_prompt_md.toml -r 01_resource_md.toml -l 01_loop_md.txt

3. Run with Ollama

The file config-ollama.toml is ready to use out of the box, provided that Ollama is installed and running locally with its default settings. When using Ollama it is recommended to run the command with the -v (verbose) flag:

dragiter -v -c config-ollama.toml -p 01_prompt_md.toml -r 01_resource_md.toml -l 01_loop_md.txt

Documentation

dragiter comes with a very detailed and well-written manual. It is strongly recommended to read it:

# Extract the full documentation
dragiter-gen-docs .

# Then read the manual
less docs/manual.md
# or open it in your editor / browser

The manual contains many practical examples (code review, batch report analysis, marketing copy generation, tool chaining, etc.) and explains advanced features such as context window management and JSONL processing in depth.

Tool Chaining (The Unix Way)

dragiter is built to play nicely with other CLI tools. You can fetch live data and pipe it straight to your AI workflow:

Acknowledgements

The development of dragiter has been a journey of continuous learning. Bringing this project to life would not have been possible without the support of some extraordinary tools and communities.

A massive thank you to the AI models Grok and Gemini. As tireless pair-programming partners, your guidance, code reviews, and structural suggestions were invaluable in adapting the Python code for this project.

Equally important is the global Python community. The rich ecosystem, extensive documentation, and open-source spirit provide the foundation for tools like dragiter. Thank you to all the developers who make Python such a powerful language to work with.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dragiter-2026.7.26.tar.gz (128.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dragiter-2026.7.26-py3-none-any.whl (173.0 kB view details)

Uploaded Python 3

File details

Details for the file dragiter-2026.7.26.tar.gz.

File metadata

  • Download URL: dragiter-2026.7.26.tar.gz
  • Upload date:
  • Size: 128.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.5 HTTPX/0.28.1

File hashes

Hashes for dragiter-2026.7.26.tar.gz
Algorithm Hash digest
SHA256 169e20569fefe64366ad239f523b8c73d91e254bf692324cdc5f72b4b4b2c105
MD5 a81b15cd4c54e41f264ca78e63823192
BLAKE2b-256 48b75ea9d7087c9a7436ab0ec130bd3655273b4d2a0ccd1802914c9d2fd7474d

See more details on using hashes here.

File details

Details for the file dragiter-2026.7.26-py3-none-any.whl.

File metadata

  • Download URL: dragiter-2026.7.26-py3-none-any.whl
  • Upload date:
  • Size: 173.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.5 HTTPX/0.28.1

File hashes

Hashes for dragiter-2026.7.26-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c85b396b4dc87335bf0ceeb9e3e85c22dd2356145f7a660045c6e3cacf59b3
MD5 9a20ff633ce77ea5e5bf58abc508747c
BLAKE2b-256 76970c1de154a0449644f58b5232e7d72a023a0e07448cac2b5624b9db24118d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.7.26 This release

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page