Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

LLM Harness Lite — lightweight universal agent + RAG + MCP for any LLM

Local-first, vendor-neutral, cost-aware. Not the next LangChain: ~1k LOC core you can read in an afternoon.

config.yaml → llm/factory → agent/loop → tools/registry (+ RAG as tool, MCP tools)

Install

pip install llm-harness-lite
# or local dev:
# python -m venv .venv && source .venv/bin/activate
# pip install -e ".[dev]"
# docker compose up -d db qdrant

Use (short alias supported)

import llm_harness_lite as harness
llm = harness.create_llm("openai_compat", "qwen3:8b", base_url="http://localhost:11434/v1")

See LOCAL_SETUP.md + examples/:

  • 01_basic_chat.py — normalized chat() across providers
  • 02_agent_with_tools.py — agent loop + budget guard
  • 03_rag_ingest_search.py — pgvector RAG
  • 04_cost_compare.py — bang-for-buck across models
  • 05_qdrant_mcp_cache.py — Qdrant + persistent MCP + semantic cache

Layout (for contributors)

  • src/llm_harness_lite/llm/ — types.py, base.py (Protocol), openai_compat.py, anthropic_backend.py, factory.py
  • src/llm_harness_lite/agent/loop.py — framework-agnostic ReAct loop
  • src/llm_harness_lite/tools/registry.py — @tool + JSON Schema from signature
  • src/llm_harness_lite/rag/ — chunker.py, embedder.py, store_base.py, store_pgvector.py, store_qdrant.py, retriever.py
  • src/llm_harness_lite/mcp/client.py — MCPClient + PersistentMCP background-loop bridge
  • src/llm_harness_lite/utils/ — costs.py, cache.py (exact + semantic)
  • src/harness/ — back-compat shim (import harness still works)

Metadata

Release files for llm-harness-lite 0.1.0a1

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

Source distribution (sdist)

Source distribution for llm-harness-lite 0.1.0a1
File Size Uploaded Provenance Actions
llm_harness_lite-0.1.0a1.tar.gz 27.3 kB With provenance Details for llm_harness_lite-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-harness-lite 0.1.0a1
File Interpreter ABI Platform Actions
llm_harness_lite-0.1.0a1-py3-none-any.whl Python 3 none any Details for llm_harness_lite-0.1.0a1-py3-none-any.whl

Total release size: 48.5 kB

Release files / llm_harness_lite-0.1.0a1.tar.gz

Download URL llm_harness_lite-0.1.0a1.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e1f3b6cbfce5ffbfd18bb3c2d955ea0d31ae2e195e9546638c880bc0e2ce29af
BLAKE2b-256 checksum
How to use checksums
37c1291f1a46db61fead2b4633ad3e467d080abda684aa993e57380a9581f296
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 12, 2026.

Transparency log

Release files / llm_harness_lite-0.1.0a1-py3-none-any.whl

Download URL llm_harness_lite-0.1.0a1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed301ac276e5f66f0a697c738543acd7a3ed073d8771142053544ea54463155
BLAKE2b-256 checksum
How to use checksums
d5b346eb352b7c4a900fc5c1622a04a4d5d161bf68ba66f44d2d70123e7028c3
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 12, 2026.

Transparency log

Security for llm-harness-lite 0.1.0a1

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 llm_harness_lite-0.1.0a1.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 12, 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.

Release history Release notifications | RSS feed

This release
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