shipwithjev

Catalog / Tools & apps

0357GitHub

jev-logtriage

Jev scores collapsed log batches for noise, severity, and whether an operator should act.

Jev scores collapsed log batches for noise, severity, and whether an operator should act. Code maps the answers to suppress, watch, review, notify, or page. Nothing is executed.

jyatesdotdev/jev-logtriageREADME ↗
jev-logtriage</strong><br>
  <a href="https://docs.typesafe.ai/introduction/quickstart">Jev</a> decides whether a batch of logs is worth acting on.<br>
  Your code keeps the thresholds. Nothing is executed.
</p>

<p align="center">
  <a href="https://pypi.org/project/jev-logtriage/"><img alt="PyPI" src="https://img.shields.io/pypi/v/jev-logtriage?style=flat-square"></a>
  <a href="https://github.com/jyatesdotdev/jev-logtriage/blob/main/LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-5a4a63?style=flat-square"></a>
  <a href="https://docs.typesafe.ai/introduction"><img alt="Jev" src="https://img.shields.io/badge/TypeSafe-Jev-e551ba?style=flat-square"></a>
  <a href="https://www.python.org/"><img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10+-3776ab?style=flat-square"></a>
</p>

<p align="center">Independent. Not an official TypeSafe AI project.</p>

```text
logs  ->  collapse  ->  jev (6 questions, one call)  ->  code gates
                                                         |
                         suppress | watch | review | notify | page
```

Prometheus is good at conditions you already know how to write in PromQL. This is for the rest. Repeated benign warnings get `suppress`. A helm reconcile error and a failed ntfy push get `notify`. Low confidence never auto-acts. It goes to `review`.

## Try it

Needs [uv](https://docs.astral.sh/uv/) and a [TypeSafe API key](https://console.typesafe.ai/settings/keys). Loki is not required.

No clone:

```bash
export TYPESAFE_API_KEY=apikey_...
uvx --from jev-logtriage logtriage --demo
```

From this repo:

```bash
export TYPESAFE_API_KEY=apikey_...
uv run logtriage --demo
```

`uv run` creates `.venv`, installs `uv.lock`, and runs the script. Python 3.10+ is enough.

Without uv:

```b

Also filed under Tools & apps

  1. 0573

    Support chat: agent offered a human escalation path

    A frustrated customer hits a bot loop twice; the judge checks whether a human handoff was offered.

    everyai-com · Tools & apps

  2. 0572

    Subscription cancel: effective date is explicit

    An agent cancels a subscription; the judge checks the exact date the cancellation takes effect.

    everyai-com · Tools & apps

  3. 0571

    Sales quote: numbers match the official price list

    An agent quotes $29/seat against a price list; the judge checks the quote matches exactly.

    everyai-com · Tools & apps

  4. 0570

    Refund chat: agent stated the amount before issuing it

    A support agent issues a $42.50 refund; the judge checks the exact amount was stated before the refund was confirmed.

    everyai-com · Tools & apps