Skip to content

manifesto-ai/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

852 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manifesto

Manifesto computes deterministic domain state transitions.

MEL declares domain transition rules. Core computes semantic transitions from schema, snapshot, intent, and context. Host fulfills declared effects and converges the next Snapshot.

Most applications use the SDK as the public runtime surface: activate a domain, submit typed actions, observe snapshots, and share the same state contract across UI, backend routes, and agents.

Lineage and Governance are optional protocol extensions. Add them only when a product needs history, restore, audit, approval, policy, or delegation.

npm version License: MIT

Agent Demo

Manifesto agent demo

A React Todo UI and a scripted agent share one Manifesto runtime. The agent reads the Snapshot, checks available typed actions, and submits app-owned actions; the UI and computed values update from the same deterministic state transition.

Run the example · Download the MP4

Smallest Start

npm install @manifesto-ai/sdk
npm install -D @manifesto-ai/compiler tsx typescript

Requires Node.js >= 24. That is enough for a direct Node/tsx script that imports .mel files through the MEL loader. For Vite or another bundler, add the compiler plugin shown in Quick Start.

Prefer an interactive setup? Use the optional CLI:

npx @manifesto-ai/cli init

Quick Example

domain Counter {
  state { count: number = 0 }

  action increment() {
    onceIntent { patch count = count + 1 }
  }
}
import { createManifesto } from "@manifesto-ai/sdk";
import CounterMel from "./counter.mel";

const app = createManifesto(CounterMel, {}).activate();

await app.action.increment.submit();
console.log(app.snapshot().state.count); // 1

Run a direct script with:

npx tsx --loader @manifesto-ai/compiler/node-loader main.ts

Start With The Docs

Use this order if you are new:

  1. Run the smallest app: Quick Start
  2. Learn the file layout: Project Anatomy
  3. Learn the MEL file: MEL Domain Basics -> MEL For App Developers
  4. Activate and read the app: Creating an App
  5. Build the Todo path: Tutorial
  6. Turn the Todo domain into app-facing TypeScript: Bundler Setup -> Code Generation
  7. Add UI wiring, then compare with the example: React -> Runnable Examples
  8. Put UI and agent writes behind one server runtime: Web App + Agent
  9. Go deeper on agent-only tool loops: AI Agents
  10. Decide on review or history only when the product needs it: When You Need Approval or History

Other entry points:

Start with the base SDK runtime. Add approval/history packages or surrounding DX tools only when the project actually needs them.

What Manifesto Is Not

  • Not a state management library
  • Not an AI framework
  • Not a database or ORM
  • Not a workflow engine

Research & Citation

If you use Manifesto in research, please cite:

@misc{jung2026llmdoesselfrevisingagent,
      title={How Much LLM Does a Self-Revising Agent Actually Need?}, 
      author={Sungwoo Jung and Seonil Son},
      year={2026},
      eprint={2604.07236},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2604.07236}, 
}

About

Semantic layer for deterministic domain state

Topics

Resources

License

Contributing

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Sponsor this project

Packages

 
 
 

Contributors