Skip to main content

jevbrief

Clean, traceable state briefings for TypeSafe's Jev, from any source.

Other tools show what Jev decided. jevbrief shows what Jev was told, what it wasn't told, and why.

PyPI Python License: MIT Docs

Documentation  ·  Quick start  ·  Adapters  ·  Benchmarks  ·  Contributing


Animation: facts from a source flow into the rules, noise is dropped with a reason code, the rest goes to Jev, and Jev picks one

Why jevbrief

Jev turns state into typed decisions. It does its best work on small, relevant state, and it is weak at raw numbers, dates, and long lists of irrelevant detail. Real sources are the opposite: a web page has hundreds of elements, an agent can call a hundred tools, and a failed build prints thousands of log lines.

jevbrief sits between your source and Jev. It keeps what matters, drops the rest with a reason for every drop, asks Jev one clear question, and records the whole decision so you can replay it.

Before and after: 1,395 raw log lines at 29,678 tokens become 5 log groups at 1,070 tokens, and Jev picks the config reload failure

Quick start

pip install jevbrief          # tools, ci, otel, and json; add [web] or [nes], or [all] for everything

Set TYPESAFE_API_KEY (get one at console.typesafe.ai) in your environment or a .env file. inspect needs no key and costs nothing. ask calls Jev and --view replays the decision:

gh run view <run id> --log-failed > run.log
jevbrief inspect run.log --adapter ci --goal "CI is red on main"
jevbrief ask     run.log --adapter ci --goal "CI is red on main" --view
27 log lines -> 7 failures -> 3 sent to Jev
likely cause: Run pytest -q: E KeyError: 'currency_code'   (confidence 0.84)
looks flaky: no (0.07)

Building an agent? One call narrows any mix of tools to the ones that fit the current step, and returns your own objects. The tools can be your functions, MCP servers, LangChain, CrewAI, OpenAI, or Anthropic tools.

from jevbrief import select_tools, pick_tool

llm.bind_tools(select_tools(tools, goal))     # ranking only: local, free, no API key
pick = pick_tool(tools, goal)                 # Jev picks one: pick.tool, pick.confidence

Adapters

Adapter Reads Jev answers Install
tools Your functions, MCP servers, LangChain, CrewAI, OpenAI, and Anthropic tools Which tool the agent should call next jevbrief
ci GitHub Actions logs and JUnit XML Which error broke the build, and whether it looks flaky jevbrief
otel OpenTelemetry logs (OTLP JSON) Which log group explains an incident jevbrief
json Any JSON or JSON Lines, with a config file Which item fits, or which action to take jevbrief
web Web pages, through Playwright Which element to click next jevbrief[web]
nes An NES game's memory Which move to make next jevbrief[nes]

Each adapter's page covers its quick start, input, reason codes, options, and limits. Want another source? Suggest it or build it.

Benchmarks

Both arms use the same Jev and the same question, with three runs per task and median input tokens. The raw arm sends what a naive integration would send.

Adapter Data Accuracy, raw → jevbrief Input tokens, raw → jevbrief
tools 105 real MCP tools, 40 hand-written goals 82% → 88% 13,450 → 3,685
ci 16 real failed GitHub Actions runs 88% → 100% 30,502 → 988
otel 6 synthetic incidents 83% → 100% 29,678 → 1,070
json 9 synthetic queries 89% → 100% 3,848 → 2,002
web 10 synthetic pages 100% → 100% 5,400 → 2,344
nes 100 moves on a real level block 8.6 → block 56.4 2,829 → 713

Not every result favors jevbrief:

  • On ci's second question, whether the failure is flaky, jevbrief scored 67% against 93%.
  • The synthetic sets were built alongside the adapters.

See how the benchmarks work for the method and caveats.

Contributing

git clone https://github.com/parthkomalwad/jevbrief && cd jevbrief
python -m venv .venv && . .venv/bin/activate    # Windows: .venv\Scripts\activate
pip install -e ".[dev]" && pytest -q

License

MIT. Community project, not affiliated with TypeSafe AI.

Release files for jevbrief 0.4.0

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

Source distribution (sdist)

Source distribution for jevbrief 0.4.0
File Size Uploaded
jevbrief-0.4.0.tar.gz 84.8 kB Details

Built distribution (wheel)

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

Total release size: 157.5 kB

Release files / jevbrief-0.4.0.tar.gz

Download URL jevbrief-0.4.0.tar.gz
Size 84.8 kB
Tags Source
SHA-256 checksum
How to use checksums
719c0c2289a077b542924f008437a352a0abe136a76a07e36b60a5fd255d80d1
BLAKE2b-256 checksum
How to use checksums
c32bcae9798334f478bfc4068aa7e15a122c9f673efb208828794119f4ace216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / jevbrief-0.4.0-py3-none-any.whl

Download URL jevbrief-0.4.0-py3-none-any.whl
Size 72.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96bda20705b12ab1d119390f7279e5c1a51e0cccfc982ccbba5c3aa45de28eb8
BLAKE2b-256 checksum
How to use checksums
150aa7aff4be2b11719ab9dac0d6654041bca300bf44962201470b1f6d1c71fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.5.0

2 release files

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

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