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 startNode 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.
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."
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
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.
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.
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 builtTeams
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.
- Harness Prime splits each question. The lead agent reads the question, sends each part to the right specialist, and writes one answer.
- Specialists do the work. Each one can have its own model, tools, playbooks and data.
- 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.
- Build with AI drafts the team. Describe a team and a first version lands on the canvas, with every part and connection checked first.

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
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.
Built in
Tools your teams use
Knowledge pipelines, visual workflows and Build with AI give your teams what they need.
- Knowledge pipelinesLoad files, a CSV or a code repository, clean and split them, embed them and store them for search. A run only embeds what changed.
- ChatflowsA chat model, the agent or chain that answers, memory and tools, on one canvas. Each chatflow gets a prediction API, an embed and a shareable link.
- AgentflowsWorkflows that run step by step and can start from a chat message, a form, a webhook or a schedule.
- Harnesses: Agent TeamsHarness Prime reads each message and sends the work to specialists, each with its own instructions and tools, like the Analyst with its own database. Every specialist gets a task that stands on its own, and the run card shows the tokens each one used.
- Build with AIDescribe a team, an assistant, a pipeline or a workflow, and a first version lands on the canvas. Every part and connection is checked first.
- Share and embedA public link for any chatflow, and a chat button or full-page chat on your website, served by your Cuttlely server.
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 startNode 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 --gateruns 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.
Governance for real teams
- Roles and permissionsOwner, Admin, Builder and Viewer are built in, and you can add your own roles. Deleting a flow checks the permission first.
- Each team keeps its own workFlows and harnesses belong to one team. Another team gets not found.
- Sign in your wayStart with one owner account, then choose Local login, WorkOS AuthKit or a generic OpenID Connect provider. Owner recovery stays available.
- Audit logSign-ins, invites, role changes, and access-key lifecycle and aggregate usage events.
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 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.
Live run statusA running harness card says what each specialist is doing, with a timer and optional playful lines you can turn off per chatflow.
Sortable answer tablesClick a column header in a chat answer to sort numbers, amounts, dates or text. The answer itself does not change.
Generic OIDCSign people in through Okta, Entra ID or another OpenID Connect provider. Test the sign-in before you switch.
Local loginLocal accounts and one-time invite links. Active owners can cancel another pending owner invite; active owners stay read-only.
SCIM provisioningOkta or Entra ID creates, updates and deactivates users, and groups map to teams with a preview.
WorkOSSign people in with WorkOS AuthKit, with owner recovery ready first.
AnalystA specialist that answers from a database. The panel is regrouped, and a harness says when this server has no database for it.
Tidy layoutOne click puts Harness Prime first and one row per specialist. Undo puts the cards back.
Web pages as source textThe Web Browser card can return excerpts of the real page and record the address it read.
Trusted outputsBind a tested query to exact Markdown, a chart or a complete CSV, with opt-in formula escaping.
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 guideIntegrations
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.
Get started
Start in minutes
- Start Cuttlely. Run
docker compose up -din a clone of the repository, ornpx cuttlely startwith Node 20+ and Docker. - Create your account. The server log prints a ready block with a one-time setup link (
/setup#code=...) and a setup code. Show it withdocker compose logs cuttlely | grep "Setup code"ornpx cuttlely logs. Open that link, or open the app and paste the code. - 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.
- DockerThe install most people want. SQLite, one container.
- RenderA hosted install with Postgres, from the Blueprint in the repository.
- From sourceFor changing Cuttlely. Node 24 and pnpm.

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.

