Skip to content

Jev directory

Tool Prune

A zero-dependency tool selector that narrows a large pool of agent tools to the relevant few before the LLM call, running offline with TurboQuant or on TypeSafe Jev when a TYPESAFE_API_KEY is set.
Stars
8
Language
JavaScript
License
MIT
Reading time
3 min
Published by
Community
Author
hemanth
Last verified
Oct 2026

hemanth/tool-prune

User repository on GitHub

View on GitHub

Calibrated tool selection and schema pruning for AI agents. Zero dependencies.

Forks
0
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

Highlights

  • Ships as npm and pip packages that default to the offline TurboQuant engine and route to TypeSafe Jev only when a key is present.
  • filter() auto-selects candidates from the score drop-off or takes { k: 5 }, and the README claims prompt-token cuts of up to 92%.
  • dispatch() runs a tool directly when confidence clears your threshold, described as under 160 ms with zero LLM generation cost.
  • On Gorilla BFCL v3, the Jev engine is listed at 100.0% distractor top-1 at 189 ms; TurboQuant variants score 85-87%.
  • TurboQuant uses turboquant-search (WASM SIMD) in JS or turbovec (Rust SIMD) in Python, with a built-in FWHT fallback.

Quickstart

bash
npm install tool-prune
# or
pip install tool-prune

# Optional: TypeSafe API key for cloud reasoning
export TYPESAFE_API_KEY="apikey_..."

Watch out

Copy reviewed against the repo README on 2026-10-15; the pasted README was truncated mid-way through the 60-tool agent architecture benchmark table, so only its first row was visible. Benchmark numbers are the README's own, and the 92% token-cut claim is not tied to a named eval in the excerpt.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai