Agent tooling

stanley-code

@devagrawal0976TypeScriptMITupdated 2026-09-19runnable

Bounded TypeSafe Jev workflows for coding agents.

devagrawal09/stanley-code

Where it calls Jev

import { TypeSafeClient } from "@typesafe-ai/sdk";

src/adapters/jev.ts:1

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from examples/workflows/stale-todo-audit.ts:28

  1. stalechoice

    Is this TODO comment still actionable?

    • actionableDescribes concrete remaining work.
    • staleRefers to work that is clearly done or no longer relevant.
    • cannot_tellThe comment alone does not say.

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    stale: { type: 'choice', instructions: 'Is this TODO comment still actionable?',
      criteria: { actionable: 'Describes concrete remaining work.', stale: 'Refers to work that is clearly done or no longer relevant.', cannot_tell: 'The comment alone does not say.' } },
  },
});

from src/workflows/analyze-diff.ts:359

  1. evidence_sufficienttrue/false

    Is the shown diff evidence sufficient for the selected classification?

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    evidence_sufficient: { type: 'boolean', instructions: 'Is the shown diff evidence sufficient for the selected classification?' },
  },
});

from src/workflows/check-task.ts:195

  1. weakens_expectationtrue/false

    Does test hunk ${hunk.id} weaken what the test expects?

  2. expectation_change_stated_in_tasktrue/false

    Does the requested behavior require or clearly entail that the old expectation in hunk ${hunk.id} should no longer hold?

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    weakens_expectation: { type: 'boolean', instructions: 'Does test hunk ${hunk.id} weaken what the test expects?' },
    expectation_change_stated_in_task: { type: 'boolean', instructions: 'Does the requested behavior require or clearly entail that the old expectation in hunk ${hunk.id} should no longer hold?' },
  },
});

Other projects in this category