Skip to content

Framework

Build for your domain. Keep the work moving.

Cayu is an open-source Python framework for building and running domain-specific long-horizon agents, with a durable runtime built in. Choose and configure the components your agent needs.

01 / The whole picture

One framework. The pieces of your agent.

You build with Cayu’s Python APIs and components. The harness you assemble defines how the agent works; the integrated runtime supports its execution. Together, they power your domain-specific product.

Framework, harness, runtime, and agent: their roles in Cayu
ConceptIts role in Cayu
FrameworkThe Python structure, APIs, defaults, and components you build with.
HarnessThe system you assemble with Cayu: context, tools, memory, policies, domain logic, and verification.
RuntimeThe integrated execution machinery: sessions, state, workers, recovery, approvals, and budgets.
AgentThe resulting product that performs work in your domain.

An end-to-end example

Build an agent that buys the right potatoes.

Follow a campus dining agent from tools and business rules to durable sessions, human approval, and a verified receipt.

The harness is specific to your domain. The runtime provides reusable execution capabilities that you configure for the job.

02 / Framework capabilities

Choose the capabilities your agent needs.

Build the whole agent with Cayu’s Python APIs, components, and defaults. Compose models, tools, context, memory, collaborators, and evaluations into a harness for your domain.

03 / Assemble the harness

Put your expertise into how the agent works.

Start with Cayu’s defaults, then compose the context, tools, rules, and checks the job needs. Your team controls the behavior through editable Python.

Context & knowledge

Choose the documents, records, instructions, and evidence the model sees at each step.

For document review: required fields and source records.

Tools & integrations

Connect Python functions, business systems, and external capabilities to the work.

Read documents, look up records, and prepare a review report.

Domain logic

Express the rules, calculations, and workflows specific to the job in ordinary Python.

Validate fields and route exceptions using your business rules.

Memory

Define what the agent retains, how it retrieves prior work, and which knowledge needs review.

Recall reviewed exceptions and relevant earlier decisions.

Policies & approvals

Set the permitted actions, spending limits, and points where a person must decide.

Require review before writing back to a business system.

Verification & evals

Define completion checks and evaluation cases for the result and the path taken.

Check coverage, source evidence, and handling of exceptions.

Illustrative job: review 5,000 documents, flag exceptions, and produce a report with evidence.

04 / Build the agent

From a defined job to a working application.

  1. Define the job and its finish line.

    Specify the inputs, expected outputs, success criteria, and decisions that need human review.
  2. Start a Python project.

    cayu new myagent creates a project with places for prompts, tools, policies, memory, domain code, tests, and evals.
  3. Compose and configure.

    Add your domain behavior, choose a model provider, connect the tools, and configure storage, approvals, and budgets.
  4. Evaluate, then put it to work.

    Check representative cases, inspect a run, and refine the harness before deploying it for the people using the agent.

Follow the quickstart

Build directly in Python, or use Codex, Claude Code, or Cursor to help develop your Cayu project.

05 / Integrated runtime

Let the work continue across hours and days.

A long-horizon agent accumulates state, makes many decisions, and may wait for people or external systems. Cayu includes the execution machinery to keep that work recorded and controlled.

Goal → model & tools → recorded progress → wait or recover → continue → checked result

06 / Verify and improve

Define what good work looks like in your domain.

Build evaluations around your business rules, expected outputs, and permission boundaries. Inspect the recorded session as well as the final answer.

  • Turn representative jobs and reviewed failures into evaluation cases.
  • Check outputs, tool use, approvals, and the evidence supporting completion.
  • Compare changes to prompts, models, tools, or policies before adopting them.
  • Use session forks, replay, and comparison results in your own improvement process.

Your evaluations cover the criteria you define. Your application decides how candidate changes are generated, reviewed, and released.

Explore evaluations

07 / Deploy and operate

Your agent. Your operating environment.

Run the Cayu application where your models, data, and business systems live. Choose your providers, storage, and execution environment. Cayu Cloud is optional.

Your Python application

Develop locally and deploy on your own infrastructure. Build the interface, authentication, and business authorization your users need.

The included operator dashboard

Inspect sessions, workflows, usage, and evals alongside the agent’s application. Configure durable storage and access policies for your deployment.

Cayu Cloud for your team

Currently invite-only. Use a shared workspace to build in Console, deploy agents, manage operations, and evaluate improvements with Compound.

Compound focuses on evaluations and reviewed improvement. Its planned Self Improvement — Genetic Algorithm experience is Coming.

Under the hood

Python components you can inspect and extend.

Start with the defaults. Configure or replace the components your harness and application need.

Measured evidence

Inspect the cost of the choices you make.

Context, caching, and tool-exposure choices change what long-horizon execution costs. Cayu ships paired comparisons you can run on your own workload, with every attempt attributed and priced from a source you supply.

Savings depend on the model, prompt, cache state, prices, and quality gate. Deterministic runs use labeled fixture prices; live runs report provider usage and dollar evidence only from a model catalog you supply. These are measurement tools, not universal savings claims.

Domain-specific long-horizon agents

Give your expertise a way to do the work.