← Back to Discover

ProgressGate

ProgressGate is an experimental npm library that detects semantic stagnation in AI agent loops, even when every action looks different.

Observability & evalsLibraries & SDKs

What it does

ProgressGate judges progress by whether an agent's underlying assumption has changed, not by how many actions the agent has taken. Install it with npm install progressgate. Once per run, your code calls gate.run with the run's goal. Before each next expensive model call, your code awaits run.observe with the current step. The result includes a decision that tells your code whether to stop, replan or proceed. The current release is v0.1.0 and is labeled Experimental. ProgressGate says a step count cannot tell productive exploration from busywork, because it cannot know whether the agent is still testing the same falsified assumption.

Capabilities

  • Returns one of four decisions: HALT, REPLAN, CONTINUE or WARN.
  • On HALT, your code stops the run.
  • On REPLAN, your code injects feedback using result.reasonCode.
  • On CONTINUE or WARN, the agent proceeds as normal.
  • Uses TypeSafe Jev for semantic judgments.
  • Includes an interactive demo of a failing deployment with the goal "Fix the failing deployment".

When to use it

  • An agent keeps testing the same falsified assumption with actions that look different.
  • You want to stop paying for an agent that spins on expensive model calls.
  • You need to check progress before each next expensive model call.