Skip to main content

Saddlefit

CI Coverage Release License

Saddlefit fits an agent's harness to one compact model, on your own tasks. It adds what fixes failures, drops what stops helping, and proves each change on tasks the tutor never saw.

The model's weights never change; only the files around it do: system prompt, skills, tool guidance, tool scripts, loop settings, reasoning mode and an EXPERIENCE.md of lessons.

Status: pre-alpha. Built milestone by milestone; see the milestones and the spec.

Three loops

Three loops: the fast loop during a task, the middle loop overnight, the slow loop that improves the tutor itself
  • Fast — during a task. When the task's own check fails, the student probes a few harness variants locally and keeps what passes; the finding goes on probation in a journal.
  • Middle — overnight. A tutor diagnoses training failures and proposes one change at a time; it is accepted only if it wins on repeated runs over held-out tasks, and pruned by ablation once it stops paying for its context.
  • Slow — every few weeks. Statistics on accepted changes become a ranked playbook, gated by an A/B test, until a compact local tutor can take over.
The fast loop in detail
Fast loop: a failed check triggers local probes, and a change that helps stays on probation in the journal
The middle loop in detail
Middle loop: a change is accepted only if it wins on the training batch and again on held-out tasks
The slow loop in detail
Slow loop: a new playbook must beat the old one in an A/B run before the tutor uses it, and a shadow tutor takes over once it is as good as the cloud one

What counts as a compact model

An open-weight model that runs on one consumer machine and meets all four conditions (saddlefit doctor checks them):

  1. Memory — at 4-bit, weights plus a 32k-token context fit in 24 GB or less.
  2. Active size — at most about 10B parameters active per token (a 30B-A3B MoE qualifies).
  3. Speed — roughly 20 tokens per second or more on the target machine.
  4. Tool use — reliable tool calls, natively or through constrained JSON output.
Tier What it is Typical hardware
S dense, 1–4B 8–16 GB laptops, CPU only
M dense, 4–10B, or a looped model 16–18 GB Macs, GPUs with 8–12 GB
L MoE, up to ~35B total and ~5B active 32–36 GB Macs, 24 GB GPUs

Quickstart

Requires Python 3.12+, Docker and a local model runner such as Ollama.

uv tool install saddlefit
cd your-python-project
saddlefit init --model qwen3:8b
saddlefit doctor
saddlefit tasks mine
saddlefit baseline
saddlefit fit
saddlefit report

Every command also accepts --json.

Where it comes from

The middle loop follows AutoSaddler; the fast loop and the improver that improves itself follow Harness². What Saddlefit adds is the focus on one compact local model, measured on your own tasks, with a harness that stays small.

Ideas from AutoSaddler and Harness², and what Saddlefit adds Map of related approaches by when the harness improves and who executes; Saddlefit learns ahead of time for a small local model

See the spec, Part D for sources and a fuller comparison.

Documentation

License

Apache-2.0

Metadata

Release files for saddlefit 0.1.1

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

Source distribution (sdist)

Source distribution for saddlefit 0.1.1
File Size Uploaded Provenance
saddlefit-0.1.1.tar.gz 91.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for saddlefit 0.1.1
File Interpreter ABI Platform
saddlefit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 198.5 kB

Release files / saddlefit-0.1.1.tar.gz

Download URL saddlefit-0.1.1.tar.gz
Size 91.6 kB
Tags Source
SHA-256 checksum
How to use checksums
07eca0925344701be7da949d6e1926655345cd665fceb6afe533da5ab6b0a175
BLAKE2b-256 checksum
How to use checksums
81bc50ff934b5679ae57591703aa454a8100e64e06c6fc14ec6bdd9cf1a762aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Release files / saddlefit-0.1.1-py3-none-any.whl

Download URL saddlefit-0.1.1-py3-none-any.whl
Size 106.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aefb3dcb1935e36bb6bec2a3ff59823b8c32426dd16ce9efa3a133706bafdbd2
BLAKE2b-256 checksum
How to use checksums
3adc0ac554d9bc74dbb93e93e776f236895a02146631091ca6c37e14a3d8d862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Security for saddlefit 0.1.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for saddlefit-0.1.1.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 Oct 21, 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