Agent 工具

Antigravity-mcp-semantic-search-with-TypeSafeAi

@greenyamao1Python更新于 2026-09-18可当场跑

基于TypeSafe System One,为Antigravity、Cursor、Claude Code等AI编码助手提供快速语义代码搜索和差异审计功能。

英文原文

Fast semantic code search & diff sanity auditor for AI coding assistants (Antigravity, Cursor, Claude Code) powered by TypeSafe System One.

greenyamao/Antigravity-mcp-semantic-search-with-TypeSafeAi

它在哪儿调用了 Jev

return f"🌐 TypeSafe Connection Error: Unable to reach https://api.typesafe.ai. Check your network or proxy settings ({err_str})."

mcp_server.py:194

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

它问 Jev 的问题

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

取自 mcp_server.py:581

  1. scope_alignment打分

    Rate how well this diff aligns with the requested task without unnecessary modifications:

    • 0Minimal & focused: only requested modifications were made
    • 1Cascading changes: extra files/state touched to support the requested feature
    • 2Severe scope creep: unrelated refactors, deleted logic, or excessive changes
  2. touches_state是/否

    Does this diff modify global application state, stores, contexts, or database schemas?

  3. breaks_contracts是/否

    Does this diff alter public function/component signatures, exported methods, or prop types?

  4. removes_defenses是/否

    Does this diff remove error handling, try/catch blocks, null/undefined checks, or input validations?

  5. leftover_debug是/否

    Does this diff contain leftover debugging code such as print statements, console.log calls, hardcoded test strings, or unhandled TODOs?

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    scope_alignment: { type: 'score', instructions: 'Rate how well this diff aligns with the requested task without unnecessary modifications:',
      criteria: ['Minimal & focused: only requested modifications were made', 'Cascading changes: extra files/state touched to support the requested feature', 'Severe scope creep: unrelated refactors, deleted logic, or excessive changes'] },
    touches_state: { type: 'boolean', instructions: 'Does this diff modify global application state, stores, contexts, or database schemas?' },
    breaks_contracts: { type: 'boolean', instructions: 'Does this diff alter public function/component signatures, exported methods, or prop types?' },
    removes_defenses: { type: 'boolean', instructions: 'Does this diff remove error handling, try/catch blocks, null/undefined checks, or input validations?' },
    leftover_debug: { type: 'boolean', instructions: 'Does this diff contain leftover debugging code such as print statements, console.log calls, hardcoded test strings, or unhandled TODOs?' },
  },
});

同类的其他项目