Agent 工具

stanley-code

@devagrawal0976TypeScriptMIT更新于 2026-09-19可当场跑

基于有界TypeSafe Jev的编码agent工作流管理工具。

英文原文

Bounded TypeSafe Jev workflows for coding agents.

devagrawal09/stanley-code

它在哪儿调用了 Jev

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

src/adapters/jev.ts:1

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 examples/workflows/stale-todo-audit.ts:28

  1. stale选项

    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.

用你自己的内容跑一遍

代码
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.' } },
  },
});

取自 src/workflows/analyze-diff.ts:359

  1. evidence_sufficient是/否

    Is the shown diff evidence sufficient for the selected classification?

用你自己的内容跑一遍

代码
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?' },
  },
});

取自 src/workflows/check-task.ts:195

  1. weakens_expectation是/否

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

  2. expectation_change_stated_in_task是/否

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

用你自己的内容跑一遍

代码
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?' },
  },
});

同类的其他项目