Who it is forA developer or analyst who needs the strongest of several drafts or answers and wants the calls to run in parallel.
The problemAsking several agents by hand, one after another, is slow and makes it hard to see which answer wins.
The outcomeA Workflow card in chat that shows each agent call as it happens and returns the candidate answers from the run.
What you need first
- A Mac with Apple Silicon for the signed download, or Node.js 24, Bun 1.4.2 and Just for running from source
- An existing codex, claude, Antigravity or grok login, or a provider set up in Settings → Models
- A workspace folder where workflow files can live
Steps
- Clone the repo with
git clone https://github.com/longsurf-ai/endo.gitand enter it withcd endo. - Install dependencies with
just install --frozen-lockfile. - Start the desktop app with
just desktop. - In chat, run /best-of-n on your question and watch the Workflow card show each call.
- Open the workflow file in your workspace to change how many agents or phases it uses. (inferred, check the README)
Prompt for your agent
In the longsurf-ai/endo repo, run the /best-of-n workflow on <my question> from the Endo chat. Expected output: a Workflow card listing each agent call and the candidate answers. Verify that calls from more than one provider appear before you accept a result.
Caveat. The README names /best-of-n as a shipped workflow but does not describe its internals, so check the workflow file before relying on its exact behavior.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for longsurf-ai/endo and "Fan a question out to several agents with best-of-n"
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