Program your AI with strategies.
Define how context flows, how decisions are made, and how systems behave. Run everything locally with full control.
SUPPORTED PROVIDERS
Architecture
Three primitives for programmable AI systems
Separate orchestration, memory, and model execution.
Host Platform
A local-first runtime that handles UI, storage, execution, and system orchestration.
Strategy Engine
Define how context is constructed, how decisions are made, and how workflows execute.
Execution Runtime
Run workflows across models and tools without rewriting system logic.
Developer Experience
Code-first strategy control
Write strategies as code to define context flow, decision logic, and system behavior.
export default {
onContextBuild(ctx) {
ctx.slots.add("system", {
role: "system",
content: "You are a helpful assistant."
})
ctx.slots.add("history", ctx.history.recent(10))
ctx.slots.add("input", ctx.input)
return ctx.slots.render()
}
}Strategy SDK
Build reusable strategy modules with explicit lifecycle control.
Type-safe hooks
Compose behavior using typed interfaces and predictable contracts.
Context flow control
Define how information moves through your system at each step.
Composable execution
Coordinate models, tools, and memory through strategy logic.
Open Source
Open. Hackable. Yours.
AfferLab is an extensible platform for building programmable AI systems.