An AI agent framework alternative to LangGraph and CrewAI
On this page
Cernanto is an alternative to an AI agent framework such as LangGraph or CrewAI when the work has a procedure: a refund, an approval, a support follow-up. With a framework or an agent SDK you write the orchestration, and where an agent loop runs, a model picks each step at run time. Here you write the procedure in plain English, a compiler turns it into TypeScript, and a model answers only the typed questions the English asks.
Is it an AI agent framework or a workflow engine?
It covers the ground of both, as a language. Like a multi-agent framework, it gives you agents that call each other, use tools, keep memory and wait for a person, the human-in-the-loop step. Like a durable workflow engine, it journals every call and timer and resumes after a crash. There is no SDK to import and no orchestration code to write: the agents are written in English, and the compiler writes the code between them.
Cernanto vs LangGraph, CrewAI, Mastra and the agent SDKs
There you write and maintain the orchestration in Python or TypeScript, and where you hand the steps to an agent loop, a model chooses each one at run time. Here you maintain the English and the compiler writes the TypeScript; a model is asked only at the sentences that call for a judgment, and its answer is recorded, so a restart takes the same path without asking again. Use a framework when you want direct control of its Python or TypeScript code, including open-ended agent loops, predefined workflows or a combination of the two.
The agent SDKs stand on the same side of this comparison: the OpenAI Agents SDK, the Claude Agent SDK, Google's Agent Development Kit (ADK) and the Microsoft Agent Framework, the successor of AutoGen and Semantic Kernel. With each, the orchestration is code you write and keep, in the languages its SDK offers.
How do I enforce an approval rule before an AI agent calls a billing tool?
Here the model makes no tool calls. The rule is a sentence of the source, compiled into code: policy as code, reviewed as a diff in Git and tested before it ships. A model answers typed questions, and code decides what happens next. Where the rule is an approval, the code waits for it: the invoice example holds a €150 difference until its approver answers. In the refund desk the one line that pays a refund sits behind the policy’s checks, so no wording gets a request past them, and a case the policy does not settle goes to a person.
judge decision.decideWhich message 'What does the customer ask for in the message?' ASKS
judge decision.decideIf message 'The customer says the item is unused.'That is all a model sees for the refund desk’s two decisions: the customer’s message and one question. Looking up the order, checking the policy and paying the refund are code: they cost no tokens, and every request goes through the same checks. You can point to the checks in front of the one line that pays. Each answer is recorded, and after a crash a model answer you paid for is not asked again. The runtime holds the billing credential on your own machines, and nothing sent to a model carries it.
To see why a request ended as it did, cernanto trace reads it back as a conversation, in
the terminal or in the runtime’s web UI: each judgment asked and its answer, and each call
made. An agent set to debug also stores what its compiled code says at each operation.
Traces: on, debug or off. The policy in force is the package that
was deployed, a file committed in Git beside the source it was compiled from.
The same policy as a hand-written agent loop · When is a model called at run time? · See an invoice wait for its approver
What a production agent needs besides the model
- Durable execution. Every call between agents, every timer and every judgment is journaled, and a crashed process resumes where it stopped.
- Human-in-the-loop. A call can wait for a person for as long as it takes, and resumes after a restart.
- Multi-agent work. Agents call each other like functions, each compiled against the other’s contract, in one process or across servers.
- Observability. Calls, judgments and failures are traced with nothing added to your
source, and
cernanto traceor the runtime’s web UI reads a request back as a conversation. - Tests before it ships. Your coding assistant writes the code, and a second session writes the tests from your source without seeing it. They run against the deployed agent and the real services.
The architectural choices
The same library can support more than one architecture. In particular, a framework does not require a model to choose every step.
| Approach | Source you maintain | What determines the next step | Verification and recovery |
|---|---|---|---|
| A prompt-driven agent loop | Instructions plus application code | A model, within the tools and limits the application provides | Depends on the application's tests and persistence design |
| A coding assistant writing application code | Usually the application code, often with a specification alongside it | The resulting program | The checks and runtime you configure |
| A durable workflow engine | Workflow code or a state-machine definition | The program, including any model calls you add | Your tests and the engine's recovery semantics |
| Cernanto | The source and its compiled package | Generated TypeScript, with declared model judgments | Static gates, independent tests and journaled execution |
To inspect Cernanto's claims, read an agent's source and package, inspect its generated code and tests, and follow a restart walkthrough. Recompile the same source with another coding assistant and run the retained tests against the new implementation.
The comparison examples put a refund policy beside a prompt-driven implementation and a compiled workflow. Consult that guide for the test setup and available measurements.
Guarantees and limits · How it works · Is it open source?
Compare with the others
- Durable execution: Temporal, Inngest, Restate and AWS Step Functions
Cernanto vs Temporal, Inngest and Restate: what happens to a waiting workflow when you deploy or a worker crashes, and how a long-running agent recovers.
- Spec-driven development: Spec Kit, Kiro and a spec file
Cernanto vs GitHub Spec Kit and Kiro: a natural-language specification stays the source, and gates and live tests decide which AI-generated code ships.
- Workflow automation: n8n, Zapier, Make and Power Automate
Cernanto vs n8n, Zapier and Make: connect a private API with no inbound port, retry without duplicate notifications, and review each workflow change in Git.