Skip to content

Context-aware agent orchestration · Open source, Apache-2.0

Your applications deserve agents

Orchestrate AI agent teams that are lean by design, so each agent sees only what it needs. See what each run uses and costs, and replay real questions before you publish.

npx cuttlely start

Node 20+ and Docker · Docker not running? · github.com/cuttlely/cuttlely

Already have flows? Bring them over

New in 1.7.13: Cuttlely lets a chief delegate directly to specialists in agent mode. What's new

Upgrading? Back up first and follow the upgrade and recovery guide.

Try the demo

Watch a team resolve a complaint

Add one model key and select Try the demo. A customer writes in about a late espresso machine. A customer specialist reads the account, an operations specialist traces the parcel, and a policy specialist checks the written policy, each with its own data and tools. Harness Prime writes the decision, the reply and the actions, with the evidence. All the data is made up.

A narrated walkthrough of one real run, with captions. The live part plays in real time: this run's plan starts streaming at 0.8 seconds, the team is routed at 1.9 seconds, and the full answer lands at 19.8 seconds. Across five runs the median is 16.5 seconds.

One real run

Not the obvious answer

"My espresso machine was due Friday. Tracking hasn't moved in a week, and it's your second late order. I want a refund."

Maya Okafor, order LH-20417

It looks like a carrier delay, and she already had a goodwill credit for the last one. The specialists find something else.

See how the agent team worked it outHide how the agent team worked it out
  1. customer support desk database · 6.5 s · 2 tools

    A Plus customer, late twice in 120 days

    LH-18802 arrived 3 days late on 2026-08-15, with a $10 goodwill credit. LH-20417 is late now.

  2. operations warehouse and carrier scans · 4.8 s · 1 tool

    The carrier never had the parcel

    It failed the outbound scale check in Columbus on 2026-09-29 and went to an exception cage. Four more orders from the same packing wave are held. Reno can reship by Express for Thursday.

  3. policy after operations · 9.6 s · 1 tool

    Larkfield's fault, section 1.2

    So the goodwill limit does not apply. A second late delivery lifts Plus to the Premier remedy: a $55.80 credit, 20% of $279.00, and a call from the Customer Care Lead. Five held orders mean an operations incident.

Harness Prime decision, reply, actions, evidence · 19.8 s in all, median 16.5 s over five runs

Refund the $9.95 shipping, reship by Express for Thursday, recall the held parcel, add a $55.80 store credit, have the Customer Care Lead call, and open an operations incident for the packing wave. Or a full refund, if Maya prefers. Every amount and section comes from a specialist's tools.

How the team is built
The reply letter to Maya with the $9.95 shipping refund, reship from Reno and $55.80 store credit, followed by the Actions list and the Evidence from each specialist, citing the Service Recovery Policy.
Read how harnesses work

Teams

Agent teams that power your apps

Give your app a team instead of a single prompt. In Cuttlely, an agent team is called a harness.

  1. Harness Prime splits each question. The lead agent reads the question, sends each part to the right specialist, and writes one answer.
  2. Specialists do the work. Each one can have its own model, tools, playbooks and data.
  3. The analyst brings the numbers. It queries real tables and hands back the actual numbers. Put a sales, a budget and a CRM analyst in one team, each with its own database.
  4. Build with AI drafts the team. Describe a team and a first version lands on the canvas, with every part and connection checked first.
Harnesses guide
A harness canvas with its test chat open. The run card says Harness Prime sent work to analyst. The answer is a table of open tasks: draft agenda, open, and send invites, open.

Call it from your app

Use a team from your app

Your app sends the team a question through the API and gets back one researched answer, a chart or an action. Here is a real call to a small bakery team with two specialists, baker and orders.

Put the team behind a chatflow with one Harness card and publish it. With access-key enforcement enabled, create a key in Access Keys, grant the chatflow and its referenced Harness with predict and harness:run, and set the flow private in API Endpoint. New keys start with no grants or scopes. Enforcement defaults to off; validate migration on a restored backup and compare shadow decisions before enabling it. Existing keys keep working without rotation.

SDK/Settings and per-flow keys share one workspace list. Each key has expiry, RPM and daily/monthly UTC quotas, exact-origin and IP/CIDR allowlists, rotation with up to 24 hours of grace, revocation, prefixes, usage counters and audit events. Provider credentials and public share/embed links stay separate.Create and manage an access key, including operator rollout, expiry, quotas, rotation and recovery. Limiting supports one API instance; minute counters reset on restart. See current limits and follow-ons.

Request

Terminal window
curl -s http://localhost:43117/api/v1/prediction/<chatflow-id> \
-H "Authorization: Bearer $CUTTLELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "How much are two croissants and a sourdough loaf, and can I pick them up on Monday?"}' \
| jq '{text, agents: [.agents[] | {name, task}]}'

Response

{
"text": "Two croissants and a sourdough loaf cost $14.00. However, you cannot pick them up on Monday because the bakery is closed; pick up is possible Tuesday to Sunday from 7:00 to 15:00.",
"agents": [
{ "name": "baker", "task": "How much are two croissants and a sourdough loaf?" },
{ "name": "orders", "task": "Can I pick up two croissants and a sourdough loaf on Monday?" }
]
}

Harness Prime split the question: baker priced the order and orders checked the pickup day. The full response also has the tokens, the timings, the sources and any images the team made.

API guide

Built in

Tools your teams use

Knowledge pipelines, visual workflows and Build with AI give your teams what they need.

Cost and context

Put your agents on a token diet.

You choose what each agent sees, so it gets only the context it needs, and its output isn't capped. Every run shows tokens for each step where the provider reports them, and cost where the model is priced.

  • Each specialist gets its own job

    TypicalEvery agent gets the whole chat history.

    CuttlelyHarness Prime writes each specialist a task that stands on its own. The specialist gets that task and a short recap of the recent turns.

  • Data stays in the database

    TypicalQuery results are pasted into the prompt.

    CuttlelyThe analyst runs the query and hands back one page of rows. Say "show more" and it fetches the next page. Earlier pages stay out of the next prompt.

  • Only the tables you tick

    Without itThe whole database schema is pasted into the prompt.

    CuttlelyTick tables and views in Tables and views on the PostgreSQL MCP node. The analyst's prompt gets one line for each, with its column names, and queries that read anything else are refused. Rerun the benchmark below with scripts/analyst-schema-tokens.mjs.

  • Rules load when they're needed

    TypicalEvery instruction sits in one giant system prompt.

    CuttlelyPut long rules in playbooks. A specialist sees each playbook's name and when to use it, and opens the full text only when a question needs it.

  • Short handoffs

    TypicalWhole documents are pasted into the prompt that writes the final answer.

    CuttlelyHarness Prime reads a capped part of each specialist's answer, with the source names and a short snippet. The documents go back to your app in the response.

  • See every token

    TypicalYou find out what a run used on next month's bill.

    CuttlelyThe run card shows input and output tokens, cached tokens when the model reports them, and how long each step took. The API response carries the same numbers. The Publish check shows Live and the draft side by side with the tokens and time each one used. If a prompt had to be shortened, the run says so. The Usage page shows daily tokens and an estimated cost per flow and model, for models with a price set.

In our internal benchmarks, ticking only the needed tables on the PostgreSQL MCP node cut 2,562 tokens to 663.

npx cuttlely start

Node 20+ and Docker

Safe deploys

Replay every change before it goes live

Every edit saves to a draft while Live keeps serving your app. Compare asks real questions on Live and on the draft, side by side, and marks each answer Same, Changed, or Error before you publish. Turn on the passing test set and Publish waits until the draft passes.

Test with up to 100 question-and-answer pairs, with more on the roadmap.

  • Drafts never touch Live. The API, embeds and shared links keep serving Live until you publish.
  • Compare before you publish. Recent questions run on Live and on the draft, and each answer is marked Same, Changed, or Error.
  • Real answers become tests. Add one answer with Add to test set, or thumbs-up or thumbs-down answers from a time window, up to 500 new rows at a time.
  • Score the draft. Text, JSON, numeric and model evaluators give Pass, Fail or Error and a pass rate for Live and the draft.
  • Publish waits for a pass. The Passing test set gate is off until you turn it on, for a chatflow or an agentflow that starts from chat. Once on, Publish stays disabled until the current draft passes.cuttlely check --gate runs the same check in CI.
  • Every version is kept. Open an old version as your draft. Roll back the Live flow in one step.
  • Chatflows, agentflows, harnesses and pipelines keep each saved version, with what changed and who changed it.

This covers Publish of the current draft only. Roll back Live, Promote from Dev, and PUT /api/v1/chatflows/:id still change Live.See which paths stay open.

A/B test a change with Compare

Turn real answers into tests

Evaluations

cuttlely check --gate

Version history guide

Governance for real teams

Auth / SSO

Single sign-on and SCIM, built in.

Pick how people sign in, and let your identity provider manage the accounts it provisions. Choose the method and set up SCIM on the Auth / SSO admin page. Method changes and recovery sign-ins are in the audit log.

  • Your sign-in method. Local login, WorkOS AuthKit, or a generic OpenID Connect provider such as Okta or Entra ID. Test a provider before you switch, and owner recovery keeps an owner able to sign in. Choose the sign-in method.
  • SCIM v2 provisioning. Okta and Entra ID create, update and deactivate users and push groups. Deactivating a provisioned person in the identity provider ends their Cuttlely sessions and disables the API credentials and personal tokens they own. Set up SCIM.
  • Groups become teams, with a preview. Map a provider group to a team and role. Cuttlely shows exactly who gets access before you confirm, and manual memberships stay yours.
  • Provisioning at a glance. Operations shows request times, counts and recent errors with correlation ids, without storing provisioned profile attributes. SCIM API reference.
The SCIM provisioning card on Auth / SSO. Operations shows Users created 3, disabled 1 and group operations 1, one recent error with its correlation id, and the group mapping Support Engineers to Default Workspace as viewer.

The SCIM tests follow the request examples Okta and Entra ID publish. They are compatibility tests, not certification by either provider.

How-to guides

New and updated in 1.5

Step-by-step guides for the run card, answer tables, sign-in, provisioning, the analyst and the harness canvas.

All how-to guides

MCP

Every flow an MCP server.

Other agents can call your Live flow over MCP. Your edits wait in a draft until you publish, and side-by-side replay shows what changed first.

  • Off until you turn it on. Turn on MCP Server for a flow and you get an endpoint and a bearer token.
  • Live or published flows only, each flow is one tool call. Calls run the published version, never the draft, with no memory between calls.

Works with MCP clients via mcp-remote.

MCP endpoint guide

Integrations

Call your flows from IBM watsonx Orchestrate

Cuttlely agents answer over a standard chat API, so enterprise platforms can call them. Here's one we tested live: IBM watsonx Orchestrate.

  • External agent. Register a published chatflow under AI Gateway → Agent directory →Add agent. A native agent calls it as a collaborator, and chats keep context across turns. The flow must be private and accept a key with prediction access; enforcement off uses the legacy binding.Orchestrate guide.
  • MCP toolkit. The guide shows how to import a flow with MCP Server turned on as a remote MCP toolkit.MCP toolkit guide.
A 72-second narrated walkthrough with captions. A Cuttlely flow is added in Orchestrate as an external agent, a native agent hands it questions, the flow remembers the chat, and a wrong key gets no answer.

External agent guide

Get started

Start in minutes

  1. Start Cuttlely. Run docker compose up -d in a clone of the repository, or npx cuttlely start with Node 20+ and Docker.
  2. Create your account. The server log prints a ready block with a one-time setup link (/setup#code=...) and a setup code. Show it with docker compose logs cuttlely | grep "Setup code" or npx cuttlely logs. Open that link, or open the app and paste the code.
  3. Try the demo. On Chatflows, select Add a model key, paste a key from any chat model provider listed under Credentials, then select Try the demo. A customer care team opens with its chat ready.

Full steps

Server settings, All settings. Set up your server is above the table. Copy as .env is at the top. Owner password sign-in is Host and On. Local user passwords is Default, Off.

Change sign-in, the database, storage and more from Admin. A team can sign in with Local login, WorkOS AuthKit or generic OIDC, and SCIM keeps provisioned accounts in step with your identity provider. The audit log lists sign-in, role, and settings changes. Some limits apply immediately. Agent run time sets the specialist wait: four minutes by default, five minutes if needed, or 0 for unlimited. Save and restart to apply; a shorter turn limit still applies.

Cuttlely does not report usage, check for updates or load fonts, scripts or images from other sites. What Cuttlely connects to

See an agent team at work.

Start Cuttlely, add one model key, and the bakery team answers with a chart.

Cuttlely · Cute name, serious work.