shipwithjev

Catalog / Tools & apps

0396GitHub

Stanley Code

Bounded Jev workflows for coding agents (formerly jev-code).

devagrawal09/stanley-codeREADME ↗
# Stanley

**A Jev-first, self-improving coding agent.**

Stanley is a command-line tool for checking and understanding code changes. Instead of naming a command,
you describe what you need. [TypeSafe Jev](https://typesafe.ai) routes the request to one workflow: a built-in,
a trusted repository workflow, or one Stanley wrote for itself. Each workflow is deterministic code that
gathers bounded evidence and asks Jev small fixed-choice questions about it; code, not a model, makes the
decisions. That is the hot path, and it never starts a general agent.

When no workflow supports a request, Stanley falls back to the [Pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent)
coding agent if it is installed, reports the agent's own account of what it did without claiming to have verified
it, and then, in the background, asks an agent to write a Stanley workflow for that kind of request. The
candidate is validated and staged; you promote it, and the next such request runs without any agent.

Stanley was previously published as the `jev-code` placeholder package; see [docs/decision-log.md](docs/decision-log.md).

## Get started

> **Release status:** `stanley-code` is not on npm yet. This README describes `0.1.0`, which is not released;
> until it is, build from source. (The old `jev-code` placeholder package on npm is `0.0.1` and does nothing.)

**Requirements:** Node.js 22.18 or newer, `git`, a Git repository to check, and a TypeSafe API key. Optional:
the [Pi coding agent](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) (`npm install -g
@earendil-works/pi-coding-agent`, configured with its own model credentials) for the agent fallback. CI tests
on Linux; Windows is untested.

**Install** (from source, until 0.1.0 is on npm):

```sh
git clone https://g

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