kousun12/semantic-algos: aka "Why Combinators"
Summary
kousun12 provides a standard library of semantic algorithms designed to extract reasoning and humanities-based judgment from LLMs through repeatable, composable procedures.
Semantic algorithms require judgment.
Unlike ordinary programs that execute exact operations over data, these procedures compose interpretive operations over questions like tracing causes or reframing ideas.
Each procedure is repeatable; its execution requires judgment.
Subagents ensure execution isolation.
The `sem-run` meta-program launches one subagent per semantic operation, returning the entire run as a linked Markdown trace for inspection.
lets the harness orchestrate one subagent per semantic operation
Skills function as formal contracts.
Every skill in the standard library includes a `SKILL.md` defining its input conditions, control structure, output form, stopping rules, and guardrails.
a recognizable input condition; 2. a control structure that changes the reasoning; 3. ordered operations an agent can execute
Composition creates complex programs.
Chaining operators allows for user-space programs like 'court-jester' or 'cassandra' that move beyond single skills into sophisticated reasoning structures.
Chained together, they become small semantic programs
Procedures define transferable logic.
The value of a program lies in its structural method, such as using Nietzsche's Camel, Lion, and Child, rather than just the names used.
The procedure is the transferable part.
Highlights
Sem has no parser, type checker, generated code, or checked-in executable runtime.
If removing the procedure would not change the answer's structure, the skill is only a writing prompt.
Stdlib of reasoning procedures to milk the humanities out of LLMs
Ordinary programs compose exact operations over data. These skills compose interpretive operations over questions: trace causes, test premises, compare options, reframe ideas, or give them
Read the original ↗Save to your Sponge
Summarized with Sponge. Quotes are the author’s own words.