Skip to content
All projects
Open sourceTypeSafe AIJevModel AdviceEvaluation

Agent-Workflow TypeSafe AI

A small connector that passes advice from TypeSafe AI/Jev to Agent-Workflow. Agent-Workflow's own rules make every decision.

Terminal output: pytest runs the offline suite, 25 passed and 1 skipped because the live test needs an API key
The offline test suite, with the one live test skipped

Summary

Why it exists. A model can still advise without running the workflow.

What it does. Agent-Workflow TypeSafe AI is a standalone connector for TypeSafe AI/Jev, first built to plug into Agent-Workflow.

My part. I set the line between model advice and rule-based decisions, and designed how evidence is sent, receipts are saved, failures fall back and versions stay compatible. I then extended the work into Agent-Workflow's built-in provider, comparative evaluation and the benchmarks.

System diagrams

Simplified drawings of how the parts fit together. They show the design, not a record of real runs.

TypeSafe gives advice, Agent-Workflow decidesTypeSafe gives advice, Agent-Workflow decides

Adapted from the connector repository's docs/ARCHITECTURE.md. The current Agent-Workflow benchmarks use the built-in model provider, so they say nothing about this connector.

Principles

Requests carry the full source text
Code builds each request, versions it and hashes it, so it includes the exact source evidence the task needs. A call that succeeds is not enough.

How it works

  • Requests are limited in size and have secrets removed
  • Saved receipts that record what was sent and where it came from
  • In the follow-up SWE-manager study, code builds each request so it carries the full source text. A later audit of exact requests found the first Choice answer right on 17/30 tasks and the final answer after retries on 16/30, so the design keeps the first answer as evidence.

How it's built

  • Agent-Workflow 0.11.x also has its own built-in optional routing provider. The current benchmark studies use that built-in provider and do not use this standalone connector.

Where AI models are used

  • Answer a small set of questions registered in advance, through TypeSafe AI/Jev.
  • Return advice as saved evidence. It never performs workflow actions itself.

Failure and recovery

  • Missing credentials, SDK problems, uncertainty and provider failures each get a named status. None of them gives the model any control.
  • API-call logging is optional and off by default. Any text it keeps is treated as sensitive.

Measured evidence

SWE-manager v2 TypeSafe study

results not yet published

16/30 without TypeSafe vs 15/30 with it · +27.0% tokens/task in the TypeSafe setup

A new 30-pair SWE-Lancer manager study, planned in advance. Runs with TypeSafe had code build the task context and always made a TypeSafe call. Runs without TypeSafe did not.

The TypeSafe setup also added 27.46 s mean total time and showed no gain in correct answers. With 30 pairs, this covers only this setup and this task family, and says nothing general about TypeSafe.

sample size: 302026-10-03
Study plan (results not yet published)

Evidence & documentation

Visitor analytics: page interactions, source category, browser information, and network IP metadata are recorded in private server logs. No analytics cookies are used. Opt out of analytics in this browser.