Agent 工具

pijev

@tonyzdev2TypeScriptMIT更新于 2026-09-20可当场跑

PiJev 是一个终端编码 agent,结合 Jev 排序文件、选择技能和处理失败,编码模型负责写代码,基于 Pi 构建。

英文原文

PiJev: a terminal coding agent with Jev in the loop — Jev ranks the repository's files before the first call, picks skills and triages failures; your coding model writes the code. Built on Pi.

tonyzdev/pijev

它在哪儿调用了 Jev

const endpoint = env.PIJEV_JEV_ENDPOINT ?? (provider === "vercel" ? "https://ai-gateway.vercel.sh/v4/ai" : "https://api.typesafe.ai/v1/systemone");

src/config.ts:26

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

它问 Jev 的问题

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

取自 test/gateway.test.ts:7

  1. relevant是/否

    Is this relevant?

  2. category选项

    Choose a category.

    • codeCode defect
    • environmentMissing executable

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    relevant: { type: 'boolean', instructions: 'Is this relevant?' },
    category: { type: 'choice', instructions: 'Choose a category.',
      criteria: { code: 'Code defect', environment: 'Missing executable' } },
  },
});

取自 test/jev.test.ts:7

  1. category选项

    Classify the failure.

    • codeCode defect
    • networkNetwork failure

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    category: { type: 'choice', instructions: 'Classify the failure.',
      criteria: { code: 'Code defect', network: 'Network failure' } },
  },
});

同类的其他项目