Agent tooling

Antigravity-mcp-semantic-search-with-TypeSafeAi

@greenyamao1Pythonupdated 2026-09-18runnable

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

Where it calls 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

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 mcp_server.py:581

  1. scope_alignmentscore

    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_statetrue/false

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

  3. breaks_contractstrue/false

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

  4. removes_defensestrue/false

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

  5. leftover_debugtrue/false

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

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: {
    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?' },
  },
});

Other projects in this category