soma.cell

Programs: agents

17 verified Soma programs in the agents domain. Each page shows the source and what soma check, soma test, soma verify and soma run printed on it.

ProgramLinesUses
Human-in-the-loop approval gate guarding an irreversible action70a state machine, an agent cell
Bounded-retry agent — the verified-termination poster child60a state machine, an agent cell
Token-budget enforcement, made testable52a state machine, an agent cell, LLM calls (think), try / catch
Agent with preconditions and a memory invariant — refuses bad input59a state machine, a memory invariant, an agent cell, require / fail
A horde: one [task] agent per document, a bounded pool, a hard token budget, each verdict stored exactly once, a summary at the end58an agent cell, LLM calls (think), pipes (|>), lambdas, require / fail, several cells
A population simulation in rounds: every agent of a round sees the same62an agent cell, LLM calls (think), pipes (|>), lambdas, several cells
Agent with persistent memory via remember()/recall()61a state machine, an agent cell, LLM calls (think), try / catch
Multi-agent content pipeline with verified handoffs70a state machine, an agent cell, several cells
Planning agent: decompose a goal into ordered subtasks, then execute64a state machine, an agent cell, require / fail
A ReAct-style agent whose tools are real, deterministic computations63a state machine, an agent cell, LLM calls (think), pipes (|>), try / catch, lambdas, tools
Sentiment-routing agent: classify a message, route by polarity67a state machine, an agent cell, LLM calls (think), match, tools
Reflective tool-dispatch agent: routes a named action to the right tool77a state machine, an agent cell, LLM calls (think), match, try / catch, tools
Self-auditing agent: it inspects its own execution trace59a state machine, an agent cell, LLM calls (think), try / catch, tools
Support-ticket triage agent65a state machine, an agent cell, LLM calls (think), tools
Turn-bounded conversation agent — proves a chat loop terminates61a state machine, an agent cell, LLM calls (think), try / catch, require / fail
Agent lifecycle typed against a sum type — typos become compile errors57a state machine, an agent cell, a sum type, match
The killer feature: an agent whose termination is PROVEN by soma verify52a state machine, an agent cell, LLM calls (think), try / catch