Copied to clipboard!
The Optional Edge

A general-purpose language—
with optional reasoning built in.

Write standard deterministic programs with primitives, functions, modules, and storage. When your project benefits from model-assisted reasoning, invoke it directly as a first-class language primitive.

Core Sesi

General-purpose programming; AI remains optional

  • Native Sandboxed File System Access
  • Built-in HTTP Client & Micro Web Server
  • Embedded JSON Document Storage Engine
  • Git-centric Decentralized Package Manager
  • Optional Type Annotations and Type Inference
Runtime Engine Node.js LTS / Standalone Binary

First-Class Reasoning

Opt-in AI primitives with strict guardrails

prompt generateCode {  "Write a function to reverse a string"}let code = model("gemini-3.1-pro-preview") { generateCode }show code
Use model("local") for local inference, or configure supported external providers with environment credentials.
Reasoning workflow

A small addition to a normal program.

Reasoning does not replace Sesi's regular control flow. Define the task, choose where it runs, then work with the result alongside the rest of your program.

  1. 1

    Describe the task

    Use a named prompt block to combine instructions with values from your program.

  2. 2

    Choose a model

    Run locally or select a configured provider at the point where reasoning is needed.

  3. 3

    Use the result

    Assign the response to a value, display it, store it, or pass it into the next part of your program.

explain.sesi
Prompt → Model → Value
let topic = "event loops"prompt explain {"Explain " topic " in three short points."}let answer = model("local") { explain }show answer
No provider key required with model("local") Open documentation
Choose the boundary

Use reasoning where ambiguity begins.

Keep exact work in ordinary Sesi. Reach for a model when the job depends on interpretation, synthesis, classification, or natural-language output.

Deterministic

Core language

Use functions, conditions, loops, modules, storage, and network tools when the program should produce an exact, repeatable result.

validationtransformsautomation
Model-assisted

Optional reasoning

Use a prompt and model when the program needs to understand open-ended input or produce an answer that cannot be expressed as fixed rules.

summarizationclassificationgeneration

Explicitly invoked

Nothing calls a model unless the program reaches a model expression.

Local when preferred

Select model("local") to keep inference on your machine.

Part of the language

Prompts and model calls live beside ordinary variables and functions instead of in a separate framework.

Start with the language

Learn normal Sesi first. Add reasoning when it earns its place.

Explore the core syntax, then return here when your program needs model-assisted work.