npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-fastpath

v0.2.0

Published

Jev MCP server: a decision layer for Claude Code, Codex, and Cursor built on TypeSafe Jev (System One model). Ship gates, risk checks, file triage that keeps files out of your agent's context, and a safe headless browser.

Readme

agent-fastpath

A Jev MCP server: a decision layer for your coding agent, built on TypeSafe Jev (System One model). Ship gates, risk checks, file triage, and browser verification, with typed, calibrated answers.

npm CI License: MIT

Coding agents like Claude Code, Codex, and Cursor spend context and time on small decisions: is this CI log ready to ship, which of these 40 files handle auth, did the page actually say "Order confirmed". agent-fastpath answers them with typed, calibrated results in milliseconds to a couple of seconds, and hands control back when it is not sure.

  • Keeps files out of your agent's context. Triage reads files on the server. In the benchmark, the agent read 408 tokens instead of 35,256.
  • Rules first, then Jev. Clear-cut cases are decided by code in under a millisecond. The rest go to TypeSafe Jev, a System One model that returns typed decisions with calibrated probabilities instead of text.
  • Says when it is unsure. Every result is accept, review, or escalate, so your agent knows when to ask you.
  • Safe browser. Headless Playwright with SSRF protection and a gate on irreversible actions like delete or pay.

Works with any MCP client, with setup guides for Claude Code, Codex, Cursor, Google Antigravity, Gemini CLI, OpenCode, VS Code (GitHub Copilot), Cline, Zed, Amp, and Pi.

Use cases

  • Ship gate for CI and test logs. The ship_gate preset returns READY_TO_SHIP, NEEDS_REVIEW, or BLOCKED.
  • Find the relevant files without reading them. fastpath_triage ranks up to 500 files against a query and returns short snippets.
  • Risk check before destructive commands. The risk preset flags rm -rf, git push --force, DROP TABLE, and similar.
  • Catch ambiguous or contradictory requirements. The ambiguity preset returns ask_user instead of guessing.
  • Verify what a web page says. fastpath_browser checks claims like "the order was confirmed" against the live page.

How it differs from a plain Jev connector

A basic Jev MCP server passes your agent's questions to Jev and returns the answer. agent-fastpath adds the parts an agent needs to act on that answer safely:

  • Ready-made presets (ship_gate, risk, severity, ambiguity, relevance, verify_claim, and more), so the agent does not write question schemas.
  • Deterministic rules before Jev, so obvious cases like a failing build or git push --force are decided instantly and never cost an API call.
  • A confidence gate that turns low-confidence or near-tied answers into review or escalate instead of a guess.
  • Server-side file triage and a safe browser, so files and page HTML stay out of your agent's context.
  • Secret redaction and evidence traces for every decision.

Tools

| Tool | What it does | | --- | --- | | fastpath_evaluate | Answers typed questions about text: a choice, a score, or a yes/no probability. Presets cover common cases (ship_gate, risk, severity, ambiguity, relevance, verify_claim, and more). | | fastpath_triage | Ranks files by relevance to a query. The server reads the files, so they never enter your agent's context. | | fastpath_browser | Drives a headless browser one step at a time and returns a short element table instead of screenshots or HTML. | | fastpath_evidence | Explains a previous result: questions asked, full distributions, gate decision. | | fastpath_capabilities | Shows the active provider, limits, and security settings. |

Every result has a status:

  • accept: confident, act on it.
  • review: plausible, check the evidence first.
  • escalate: not confident, or the input needs a human (for example, contradictory requirements). Decide yourself or ask the user.

Install

Requires Node 20.12+ and a TypeSafe API key.

claude mcp add agent-fastpath -s user -e TYPESAFE_API_KEY=<key> -- npx -y agent-fastpath start
npx playwright install chromium   # only needed for the browser tool

For any other client, print its config with npx agent-fastpath install-config <client>:

| Client | Command | | --- | --- | | Codex | npx agent-fastpath install-config codex | | Cursor | npx agent-fastpath install-config cursor | | Google Antigravity | npx agent-fastpath install-config antigravity | | Gemini CLI | npx agent-fastpath install-config gemini-cli | | OpenCode | npx agent-fastpath install-config opencode | | VS Code (GitHub Copilot) | npx agent-fastpath install-config vscode | | Cline | npx agent-fastpath install-config cline | | Zed | npx agent-fastpath install-config zed | | Amp | npx agent-fastpath install-config amp | | Pi | npx agent-fastpath install-config pi | | Anything else | npx agent-fastpath install-config generic |

Full setup for each client and all settings: configuration. Check your setup with npx agent-fastpath doctor.

Without an API key the server still runs: deterministic checks work, and semantic questions return escalate instead of guessing.

Example

{
  "tool": "fastpath_evaluate",
  "arguments": {
    "preset": "ambiguity",
    "state": "Update the user record immediately, but defer all database writes until midnight."
  }
}
{
  "status": "escalate",
  "decision": true,
  "reasonCode": "AMBIGUITY_DETECTED",
  "recommendedAction": "ask_user",
  "answers": {
    "is_ambiguous": { "noul": 0.85, "answer": true, "confidence": 0.85 },
    "ambiguity_type": { "choice": "contradictory", "confidence": 0.9, "probabilities": { "contradictory": 0.93, "underspecified": 0.06, "missing_context": 0.01, "none": 0 } }
  },
  "traceId": "trc_6ae27274499cf7e7"
}

How it decides

  1. Rules first. Clear-cut cases are answered by code in under a millisecond: a failing test run blocks ship_gate, git push --force is HIGH_RISK.
  2. Then Jev. Everything else goes to TypeSafe Jev, the System One model, in a single request.
  3. Then a confidence gate. Low confidence or near-tied options return review or escalate instead of an answer.

More in architecture.

Safety

  • The browser cannot reach localhost, private networks, or cloud metadata endpoints. Every connection, including redirects and page scripts, goes through a checking proxy.
  • Clicking anything labelled like delete, buy, pay, or publish requires allowIrreversible: true.
  • Triage reads only inside the directories you allow.
  • Recognized secret formats are redacted before semantic requests and evidence traces.
  • Tool callers can tighten these limits but not loosen them.

Semantic evaluation sends redacted state to the configured TypeSafe endpoint. Path triage keeps full files out of the MCP host context, but sends bounded, redacted excerpts to TypeSafe for relevance scoring. Do not include files that must never leave the machine. See the security policy and detailed security model.

Development

npm install
npx playwright install chromium
npm run check        # typecheck, tests, build, and a smoke test of the built CLI
npm run test:live    # the full scenario suite against the real API (needs TYPESAFE_API_KEY)
npm run bench        # context and latency benchmark (needs TYPESAFE_API_KEY)

License

MIT

This package was previously published as agentctl-fastpath.

Contributions are welcome; see CONTRIBUTING.md. Release changes are recorded in CHANGELOG.md.