Skip to main content

Heddle

CI Docs codecov Ruff pyright: strict License: MPL 2.0 Python 3.11+

Heddle v0.9.2 Status: Active Development

Turn what you know into testable AI steps. Chain them into workflows. Measure whether they work. Scale when ready.

Architecture Overview


Try It in 60 Seconds

pip install heddle-ai[workshop]                         # install from PyPI
heddle setup                                            # configure (auto-detects LM Studio + Ollama)
heddle workshop                                         # open web UI at localhost:8080

Open your browser → pick a worker (summarizer, classifier, extractor) → paste any text → click Run. No data files needed.

Have Telegram exports? Install with pip install heddle-ai[rag] instead, then run heddle rag ingest, heddle rag search, and heddle rag serve for full social media stream analysis.

Or from source:

git clone https://github.com/getheddle/heddle.git && cd heddle
uv sync --extra workshop
uv run heddle setup

No servers to run. No configuration files to write. The setup wizard handles everything.


What Heddle Does

Most AI tools give you one big prompt and one model. That works until it doesn't — the prompt gets unwieldy, you can't test parts independently, and asking the same model to review its own work doesn't catch real problems.

Heddle splits AI work into focused steps. Each step has a clear job, a typed contract (so you know what goes in and what comes out), and can use a different model. You test steps individually, chain them into pipelines, and measure whether changes help or hurt.

  Document ──► Extract ──► Classify ──► Summarize ──► Report
                 │            │            │
                 │            │            └─ Claude Opus (complex reasoning)
                 │            └─ LM Studio / Ollama local (fast, free)
                 └─ LM Studio / Ollama local (fast, free)

Steps run in parallel when they can, and are tested with the built-in Workshop web UI — all without deploying any infrastructure. When you're ready to scale, Heddle adds a message bus (NATS) that connects everything for production use.

The key idea: the bottleneck with AI is never the model's knowledge — it's your ability to give it clear, precise instructions. Heddle makes those instructions testable, version-tracked, and composable. The deeper argument for this approach is in Why Heddle?.


Who This Is For

Anyone hitting the limits of single-prompt AI. Whether you're a student comparing how different models answer questions, a teacher grading essays and checking for bias, or a city clerk categorizing public comments — if you need more than one AI step working together, Heddle gives you a structured way to build that. Start with the six shipped workers in Workshop. No coding needed.

Researchers and analysts — process documents, extract data, build analytical pipelines. Define your own workers in YAML, test them in Workshop, iterate until the output matches your judgment. Heddle's knowledge silos and blind audit pattern let you get genuine adversarial review of AI-generated analysis — not the pseudo-review you get when the same model checks its own work.

AI engineers — build multi-step LLM workflows with typed contracts, tool-use, knowledge injection, and pipeline orchestration. Test everything locally before deploying.

Platform teams — deploy to Kubernetes with rate limiting, model tier management, dead-letter handling, and OpenTelemetry tracing. Scale any component independently.


Three Ways to Use Heddle

1. Workshop (no setup beyond install)

Test shipped workers in the browser — paste text, get results:

heddle workshop                            # open web UI
# → Workers → summarizer → Test → paste text → Run

Six ready-made workers ship with Heddle: summarizer, classifier, extractor, translator, qa (question answering with source citations), and reviewer (quality review against configurable criteria).

2. Build your own steps (guided)

Scaffold workers and pipelines interactively — YAML is generated for you:

heddle new worker                   # create a step from prompts
heddle new pipeline                 # chain steps into a workflow
heddle validate configs/workers/*.yaml  # check your configs
heddle workshop                     # test and evaluate in the web UI

3. Distributed infrastructure (production)

For teams, continuous processing, or high-throughput scenarios:

heddle router --nats-url nats://localhost:4222
heddle worker --config configs/workers/summarizer.yaml --tier local
heddle pipeline --config configs/orchestrators/my_pipeline.yaml
heddle submit "Analyze the quarterly reports"

Scale any component by running more copies — NATS load-balances automatically.


Key Features

Feature What It Does
6 Ready-Made Workers Summarizer, classifier, extractor, translator, QA, reviewer — chain them immediately
Workshop Web UI for testing, evaluating, and comparing step outputs
Built-in Evaluation Test suites, scoring, golden dataset baselines, regression detection
Config-Driven Define workers in YAML — no Python code needed for LLM steps
Knowledge Silos Per-worker access control; blind audit workers can't see what they're reviewing
Pipeline Orchestration Chain steps with automatic dependency detection and parallelism
Foreign-Language SDKs Build .NET, Swift, and JVM processor workers with the companion Heddle SDK
Three Model Tiers Local (LM Studio or Ollama), Standard (Claude Sonnet), Frontier (Claude Opus)
Document Processing PDF/DOCX extraction via MarkItDown (fast) or Docling (deep OCR)
RAG Pipeline Telegram channel ingestion, chunking, vector search (DuckDB or LanceDB)
Multi-Agent Councils Multi-round deliberation with protocols (debate, Delphi), convergence detection, transcript management
ChatBridge Adapters Use Claude, GPT-4, LM Studio, Ollama, or humans as council participants with session history
MCP Gateway Expose any workflow as an MCP server with a single YAML config
Config Wizard heddle setup auto-detects backends; heddle new scaffolds workers/pipelines
Live Monitoring TUI dashboard, OpenTelemetry tracing, dead-letter inspection
Deployment Docker Compose, Kubernetes manifests, mDNS discovery

Documentation

Start here:

Guide Description
Concepts How Heddle works — the mental model in plain language
Getting Started Install and get your first result
Why Heddle? How Heddle compares to other frameworks — and when not to use it
Workshop Tour What each Workshop screen does and when to use it
Configuration ~/.heddle/config.yaml reference and priority chain
CLI Reference Every CLI command with every flag and default
Workers Reference 6 shipped workers with I/O schemas and examples

Tutorials (step-by-step, phased examples in the repo):

Tutorial Description
Document Intake Build a public comment pipeline: CSV reader, classifier, entity extractor, bias audit — in three phases
Research Review Build a paper review pipeline: claim extraction, methodology review, blind adversarial audit — in three phases

Go deeper:

Guide Description
RAG Pipeline Social media stream analysis end-to-end
Multi-Agent Councils Structured deliberation with multiple LLM agents
Adversarial Review Set up genuine blind review using knowledge silos
Council showcases Three runnable demos: Town Hall (audience interjections), Debate Arena (round-robin tournament with judges), Blind Taste Test (anonymous LLM evaluation)
Batch Processing Process many items: worker loops, manual chains, NATS submit loops
Building Workflows Custom steps, pipelines, tools, knowledge
Foreign-Language Actors Build .NET, Swift, JVM, or other processor workers against Heddle's wire protocol
Language SDKs Companion .NET, Swift, and JVM SDK documentation
Gateway Actors Bridge HTTP, MQTT, IoT, or other non-NATS systems into Heddle
Workshop Web UI architecture and enhancement guide
Architecture System design, message flow, NATS subjects
Design Invariants Non-obvious design decisions (read before structural changes)
Troubleshooting Common issues and solutions
Deployment Local, Docker, and Kubernetes

Current State

Area Status Details
Core framework Complete Messages, contracts, config, workspace
LLM backends Complete Anthropic, LM Studio, Ollama, OpenAI-compatible
Workers & processors Complete Tool-use, knowledge silos, embeddings
Orchestration Complete Goal decomposition, pipelines, scheduling
RAG pipeline Complete Ingest, chunk, embed, search (DuckDB + LanceDB)
Workshop web UI Complete Test bench, eval runner, pipeline editor
MCP gateway Complete FastMCP 4.x, session tools, workshop tools
Multi-agent deliberation Complete Council framework, ChatBridge adapters, 3 protocols
Event sourcing (heddle.contrib.events) Experimental, frozen Delivery guarantees unproven; not part of the exported wire contract (details)
Tests Comprehensive 91%+ coverage (CI gate, no infrastructure needed)

Get Involved

Use it. Start with heddle setup and go from there.

Contribute. New step types, contrib packages, test coverage, and docs are welcome. See Contributing.

Report issues. Bug reports with reproducible steps help the most.


AI-Assisted Development

This project uses Claude (Anthropic) as a development tool. AGENTS.md is the source of truth for agent guidance in this repo; CLAUDE.md is a thin Claude-specific pointer. Cross-repo guidance — philosophy, invariants, wire-protocol contract, skills, and subagents — lives in the sibling heddle-workspace repo. AI-generated code meets the same standards as human contributions: typed messages, stateless workers, validated contracts, tests.


License

MPL 2.0 — Modified source files must remain open; unmodified files can be combined with proprietary code. Alternative licensing available for organizations with copyleft constraints. Contact: admin@getheddle.dev

For governance, succession, and contributor rights, see GOVERNANCE.md.


Built with Heddle

  • Baft — Multi-agent analytical engine for the Iran Transition Project. 13 specialized workers, tiered orchestration, blind audit pipeline.
  • Docman — Document processing pipeline: PDF/DOCX extraction, LLM classification, DuckDB persistence, vector search.

Building something with Heddle? Open a discussion — we'd like to hear about it.

Metadata

Release files for heddle-ai 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heddle-ai 0.11.0
File Size Uploaded Provenance Actions
heddle_ai-0.11.0.tar.gz 2.3 MB With provenance Details for heddle_ai-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heddle-ai 0.11.0
File Interpreter ABI Platform Actions
heddle_ai-0.11.0-py3-none-any.whl Python 3 none any Details for heddle_ai-0.11.0-py3-none-any.whl

Total release size: 2.8 MB

Release files / heddle_ai-0.11.0.tar.gz

Download URL heddle_ai-0.11.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e3d3a7d8344f709ee5f126a8decb0b0754fcabf419d2b57ded104711b72afc9a
BLAKE2b-256 checksum
How to use checksums
a617a1bdd782e6cfabaf4d44079e5ccb3f8b2dd66a5201a8bc7cf22b1868144c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / heddle_ai-0.11.0-py3-none-any.whl

Download URL heddle_ai-0.11.0-py3-none-any.whl
Size 507.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e678acf0151108d1f48ef41014b4e49a4f55d1c9c931bbaa11f3ba0036025c45
BLAKE2b-256 checksum
How to use checksums
767b21e73ea6cb106869f0a0a7b257f17e6d08a13d0d25d6dbf0428b0f09ac76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for heddle-ai 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heddle_ai-0.11.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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