Who it is forA developer building an agent workflow that takes actions such as replies, refunds or deletions and needs a safe stop point.
The problemAn agent that cannot measure its own certainty either acts on guesses or asks a human about everything.
The outcomeThe agent proceeds when the confidence is high and escalates to a person when the answer is close to a coin flip.
What you need first
- A TypeSafe API key from https://console.typesafe.ai/, or an OpenRouter API key
- A macOS or Linux terminal to run the installer
- A supported agent client such as Claude Code, Claude Desktop, Codex or Hermes
Steps
- Run
curl -fsSL https://raw.githubusercontent.com/itsmostafa/system-one-connector/main/install.sh | sh - Run
TYPESAFE_API_KEY=your-key evaluate setup mcp - Write a rule in your agent's instructions: proceed when the top probability is above your chosen threshold, otherwise ask a person
- Test the rule on a few known cases from your own history
- Adjust the threshold until the escalations match what a person would have escalated
Prompt for your agent
Use the evaluate tool from the itsmostafa/system-one-connector repo to answer this question about <case description>: <your question>. Proceed only if the top probability is at least <threshold>, otherwise return 'escalate'. Verify the returned confidence field matches the highest probability before deciding.
Caveat. The threshold is your choice and the README gives no recommended value, so test it on your own cases before relying on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for itsmostafa/system-one-connector and "Let an agent act only when it is confident"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer