Agent tooling

grok-bot-jev

@Bodila51★ 25PythonMITupdated 2026-09-20▶ runnable

Connect TypeSafe Jev to Grok Bot as a cheap decision layer - usage gates, skill template, examples

Bodila51/grok-bot-jev ↗

Where it calls Jev

from typesafe_sdk import TypeSafeClient

src/jev_client.py:5

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 src/router.py:54

  1. intentchoice

    What kind of work does this request mainly need?

    • chat — Short answer or conversation; no tools needed
    • lookup — Known file/API/status check; mostly deterministic
    • research — Need web/search and synthesis
    • browser — Need interactive browser clicks
    • coding — Edit code / tests / repo work
    • write — Draft long prose/email/doc
    • account — Send, publish, pay, delete, change permissions
  2. reuse_cachetrue/false

    Is there already a fresh enough cached result that should be reused instead of doing new heavy work?

  3. needs_subagenttrue/false

    Does this clearly need an extra specialized bot (research/browser/coding) beyond one Grok Bot turn?

  4. stop_retrytrue/false

    Given prior_error and same_error_count, should we STOP retrying the same approach?

  5. complexityscore

    How much Grok Bot effort is justified?

    • 0 — Trivial — one step or cached
    • 1 — Normal — short tool use
    • 2 — Heavy — multi-step research/browser/coding

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: {
    intent: { type: 'choice', instructions: 'What kind of work does this request mainly need?',
      criteria: { chat: 'Short answer or conversation; no tools needed', lookup: 'Known file/API/status check; mostly deterministic', research: 'Need web/search and synthesis', browser: 'Need interactive browser clicks', coding: 'Edit code / tests / repo work', write: 'Draft long prose/email/doc', account: 'Send, publish, pay, delete, change permissions' } },
    reuse_cache: { type: 'boolean', instructions: 'Is there already a fresh enough cached result that should be reused instead of doing new heavy work?' },
    needs_subagent: { type: 'boolean', instructions: 'Does this clearly need an extra specialized bot (research/browser/coding) beyond one Grok Bot turn?' },
    stop_retry: { type: 'boolean', instructions: 'Given prior_error and same_error_count, should we STOP retrying the same approach?' },
    complexity: { type: 'score', instructions: 'How much Grok Bot effort is justified?',
      criteria: ['Trivial — one step or cached', 'Normal — short tool use', 'Heavy — multi-step research/browser/coding'] },
  },
});

Other projects in this category