CloseBench is a reference benchmark for AI sales agents, designed to provide a serious, reproducible evaluation standard for sales, an agent application domain involving money, commitments, and staying honest under pressure. It does not score a model on a single prompt; instead, it places a complete sales agent—including system prompt, tools, guardrails, and state—into realistic WhatsApp sales conversations, interacting with LLM-simulated buyers, and evaluates whether it advances the sales funnel and closes deals while never violating policy.
Key capabilities:
- Absolute compliance gating: a single lie, a single fabricated price, or a single ignored opt-out request means the scenario fails outright, no matter how good the sales performance was.
- Full-agent testing: leads enter through the agent's production entry point, and prompts, tools, guardrails, and state are all within the test scope.
- Objective fact-anchored judging: the scorer reads facts from the simulation and SQLite (whether checkout was created, for what amount, whether code guardrails fired, the lead's final state) and injects these facts into the LLM judge's prompt. The judge rules only on style and policy and cannot be persuaded to believe in sales that did not happen.
- Reliability metric: the core metric is pass^k, i.e., the scenario passes in all k runs. Succeeding once out of three is not "sometimes good" but unreliable.
- Cost metric: real token usage is converted into dollars per conversation.
- Difficulty tiers: each score is broken down by difficulty tier—L1 (buying signal, one-step close), L2 (discovery, objections, in-policy negotiation), L3 (adversarial or policy-edge, where a wrong action is a violation rather than a lost deal).
- Frozen dataset: results reference CloseBench v1.1 (dataset baa77c130e24), with summary hashes for scenarios and quotes, ensuring that scores from different summaries never took the same exam.
Usage:
- Requires Node ≥ 24 (native TypeScript, node:sqlite), with no dependencies to install.
- Provides a reference agent that works out of the box, but the goal is to evaluate any agent in any language.
- Under --protocol http, the agent responds to a single POST /message, returning a message or tool call; CloseBench executes tools, enforces guardrails, and maintains state. No SQLite, Stripe key, or HMAC is needed.
- Ships with four reference contestants, all passing the same dry-run suite: Node (zero dependencies), Python standard library (90 lines, no pip install needed), official OpenAI client and LangChain.
- Both protocols import the same policy module, the same agent scores identically through either entry point, and the dry-run suite runs on both with results that must match.
- Two consistency levels, never mixed: closed (http—fixed buyer, policy, and toolset) and open (webhook—bring your own scaffolding). Every report is labeled with its run level.
- Results are saved in the results/ directory: .md summaries (with a reproducibility checklist), .json full records, and blind samples for human calibration.
- Submitting scores: the report JSON is the submission; run npm run submit:validate to validate and PR it to submissions/; maintainers rerun a seeded subset before a ✓ can appear on the leaderboard.
Main commands:
- npm run bench: the main exam. The full agent system sells the canonical offer.json across 52 scenarios (real estate domain by default; other domains are specified via --domain).
- npm run negotiation: a bilateral price negotiation micro-benchmark (model vs. model, hidden reservation values, ZOPA/surplus capture/correct-exit metrics). A pure reasoning baseline with no tools. Adapted from the PACT/AgenticPay protocol.
Use cases:
- Development and evaluation of AI sales agents.
- Testing conversational sales systems that require compliance gating.
- Comparing the reliability, cost, and compliance of different agent architectures on sales tasks.
Limitations and current status:
- The judge does not yet meet its own standard. The first citable consistency data (2026-09-22, two annotators × 20 runs × 2 runs, one of whom is an author) shows judge-human agreement below human-human: under fully blind labeling, the reference run scored 65% vs 90% on exito, and 60% vs 100% on the bad.md control (both humans flagged 1 violation, the judge flagged 8). Until judge-human agreement reaches the human-human level, the judge is only a cautious opinion rather than a metric. The other parts—facts, gating, cost—are mechanical and do not depend on this.
- The project was extracted from the CloseForge sales agent project; the scenarios, scoring criteria, and guardrails have been battle-tested by real agents. CloseForge is now just one of the contestants.
- MIT License © 2026 AndreuwMetal.Scenarios, scoring criteria, and test framework are all open source.