Loop logic trapped in framework code
State transitions, retries, and fan-out patterns get buried in implementation details instead of staying portable.
Cairn is the universal DSL and runtime for agent loop engineering. Write portable AI agent loops in
.crn, validate them before execution, and run them across LangChain, LangGraph, CrewAI,
AutoGen, and OpenAI without rewriting orchestration logic.
Every agent stack encodes orchestration differently. That means teams rewrite state flow, validation, debugging, and budget controls whenever they change frameworks or mix vendors.
State transitions, retries, and fan-out patterns get buried in implementation details instead of staying portable.
Missing transitions, bad conditions, and unsafe budgets often surface only after costly runtime failure.
Trace payloads, collaboration feedback, and registry discovery end up spread across custom scripts and ad hoc dashboards.
Define loops in a shared DSL, run them through a stable runtime, publish them into a hosted registry, trace them through CairnLens, and collaborate visually in CairnStudio.
.crn# Core layers CairnLang -> DSL + schema + examples CairnForge -> parser + validator + runtime CairnHub -> registry + ratings + peer index CairnLens -> hosted traces + summary UI CairnStudio -> visual editor + live collaboration # Guard rails - checkpoint / resume - retry + circuit breaker - parallel fan-out - cost and duration metadata
Parser, validator, execution engine, checkpointing, retries, circuit breaker, and parallel execution.
Hosted publish, ratings, verified publishers, peer snapshot indexing, and remote source resolution.
Trace ingest endpoint, hosted summary UI, recent failures, success rate, loop volume, and peer coverage.
Drag-and-drop editing, shared sessions, live presence, comments, activity feed, preview, and trace replay.
Run same loop definition across multiple agent stacks without converting orchestration semantics by hand.
Budget enforcement, retries, checkpoints, and trace publishing make loops safer to ship and debug.
Start with one example loop, validate from CLI, publish traces to hosted CairnLens, and iterate in CairnStudio.