Skip to main content

Threshold

A Swift library that decides whether an AI's call is applied, rejected or sent to a person.

  • Open source
  • Built solo · 2026
A dark terminal table: Threshold's decide() on 13 shared vectors, each row with its scores, its verdict (auto_apply, route_to_human or auto_reject) and the last reason, ending with 13 of 13 matching the expected verdict.
Threshold's test run in a light terminal: the dogfooding, queue and vector suites pass, 12 tests with 0 failures.
3 verdicts
apply, reject, or ask a human
Opt-in
auto-apply and auto-reject both
MIT
a public Swift package

Built with

  • Swift
  • Swift Package Manager
  • XCTest