Skip to content

Open-source decision gateway

Small questions deserve fast, trustworthy answers.

gutcheck answers typed questions about text (pick one, rate it, yes or no) with a small classifier in milliseconds, and tells your code whether each answer is safe to act on.

$ docker run -p 8080:8080 -v gutcheck-data:/data gutcheck
95%prompt-injection accuracy after fine-tuning, up from 64%
100%jailbreak accuracy on the held-out test set, up from 82%
~33 msper decision on a GPU, per the Laya authors
322Mparameters. Runs on a laptop, not a cluster

Try it

Type your own text. This calls the real model on a live gutcheck server.

Connecting

Paste any text. The real prompt-guard@2 pack, running on the fine-tuned checkpoint, says whether it is an injection or a jailbreak.

Try:

Run it to see the model's answer.

The first request after the server has been idle can take a few seconds.

Every result here is a live call to POST /v1/decide on a public gutcheck server (amtics298--gutcheck-demo-web.us-east.modal.run). Inputs are capped at 2,000 characters and rate limited. Your text is never stored; the server logs only scores, verdicts, timing and the labels you give, under a random session id.

Why a classifier gateway

LLM for everything

Seconds of latency, real cost per call, and a free-text answer you have to parse and hope about.

Raw small model

Fast and cheap, but the probabilities are uncalibrated and nothing says when to distrust them.

gutcheck

Small-model speed, calibrated probabilities, a verdict per answer and a loop that improves from feedback.

What you get

Verdicts, not just probabilities

Every answer comes back as act, review or escalate, so your code knows what to do with it.

Calibrated by default

Temperature scaling turns raw scores into probabilities that mean what they say.

Question packs

Versioned YAML question sets with pinned datasets, published evals and a CI regression gate.

A feedback loop

Send corrections to /v1/feedback and gutcheck recalibrates from your real traffic.

Fine-tune your own

One command trains a Laya checkpoint on a pack. The free Kaggle T4 notebook is included.

Jev-compatible

Speaks the /v1/systemone protocol, so existing Laya and Jev clients only change a base URL.

Observable

Prometheus metrics, a decision log in SQLite and a built-in dashboard.

Open source

Apache 2.0, runs on your hardware. CPU is fine, a small GPU is faster.

Measured, not promised

The bundled prompt-guard pack, before and after fine-tuning, on test rows the model never saw.

higher is better

prompt-guard.injection
v1 base
63.8%
v2 fine-tuned
94.8%
prompt-guard.jailbreak
v1 base
82.3%
v2 fine-tuned
100.0%

Measured on held-out test splits the model never saw: deepset/prompt-injections (116 rows) and jackhhao/jailbreak-classification (400 rows). Source: the committed EVAL.md. Bars for calibration error are scaled for visibility.

Run it in five minutes

Released under the Apache 2.0 license.