Intents made reactive.

The library for reactive intent programming.

Abstract

Models now make more and more of software's decisions, but every answer they give is just one of many. Reintent holds those possibilities at once in a single program, for models to judge, regenerate or reprogram, while people stay in control. Out of this comes a new kind of interface, one that people use simply by expressing their intent.

λ=I(C)RealizationIntentChoices
cf. UI = f(state)
Sam

A birthday card for Grandma. She’s turning 90.

Greeting.intent.tsx
Quick start
function Greeting() {  const tone = useChoose(choices('warm', 'funny', 'formal'), {    question: '“A birthday card for Grandma. She’s turning 90.” Which tone?',    ask: ['model'],  });  const message = useGenerate({    instruction: 'One short line for Grandma’s 90th birthday card.',    uses: { tone },  });  return <Card tone={tone}>{message.value}</Card>;}

1Turn AI guesses into reliable software.

From probabilistic choices to a deterministic computation.

<World id="story">childhood .36unknown-world .33home .31sunset .20foggy .16childhood .12a-lighthouse .20home .10reviewC1C2′λtC1C2′
Fig. 1 · A realization through time.

2Let code, models and people decide together.

React for code, ReAct for models, and people have the final say.

CtλtWorldetλt+1=It+1(Ct+1)reviewI(·)hostobserveReprogramchanges I, KJudgeweights in KReducereduce(C, e)
Fig. 2 · The Loop.
Table 1 · Who answers a choice
ActorComputationWritesPath
CodeCodeDeterministic symbolic computationpriorReduce
System OneSystem OneFast decision-making modelbeliefJudge
System TwoSystem TwoSlow reasoning modelprogramReprogram
HumanHumanHas the final saydecisionReduce, review

3Build software people can steer.

Intent as Interface. A new interface for words and gestures.

Fig. 3 · A concept for creative software: AI helps people see and clarify what they imagine.
Table 2 · The labs
LabWhat it runs
The Door Above the SeaThe program above, as a tutorial, with its code.
MediaWhat a person decided stays as it is, and the model changes the rest.
Cut StudioVideoFour computations; a change runs only what depends on it.
Rough CutVideoA talk’s raw take, cut by speaking and by hand together.
RetouchPhotographyA picture’s look said in words; a slider turned by hand stays.
Mix DeskMusicA song mixed by hand and by voice; a pushed fader stays.
Dream StudioFilmA dream told in words, as a scene to watch, correct and replay.
Office & KnowledgeDecks and writing, where what a person decided stays as it is.
Magic SlidesProductivityForty-five slides on fourteen screens at once.
RewritePublishingA hand slides along the wordings a voice asked for.
SpaceA hand places things in space, and the model is a hand you can see beside it.
ForgeDesign & ManufacturingA suit of armour shaped by hand and by talking.
Exploded viewEngineeringA machine taken apart by hand and by asking.
Arrange a RoomInteriors & HomeA room said aloud, a piece put in place by hand.
City SandboxUrban PlanningA district moved by hand and voice; the model points, asks and objects.
Route SketchTravelA route drawn by hand on a map, its preferences said aloud.
AutopilotAutomotiveA trip planned, and the Loop goes on after the car leaves.
Drone ShowLive EventsSixteen drones; a hand draws the formations.
DataWhat is uncertain is drawn as a few possibilities for a person to pick; a decided rule runs on the data.
Point and sayAnalyticsA hand circles points, a voice asks, a hand picks how to split.
Day TraderFinanceA trading rule applied on every price tick.
Scene ReconstructionInsuranceA crash rebuilt from witnesses who disagree.
Smart Traffic LightSmart TransportA signal applied ten times a simulated second.
TechnicalFor developers.
Over-the-AirOne program pushed as source to a phone, a tablet and a terminal.
Shader StudioRealized once per choice, applied millions of times a second.
Score StudioA soundtrack of twelve choices, played by Web Audio.