NOETIC
Primitives to build agents from scratch.
Patterns to start fast.
$ bun add @noetic/core
Seven Primitives. Any Pattern.
run
Execute a pure function
(fn: (ctx) => T) => Stepllm
Call a language model
(params: ModelParams) => Steptool
Invoke an external tool
(name, input, fn) => Stepbranch
Conditional step selection
(condition, then, else) => Stepfork
Parallel step execution
(steps[], strategy) => Stepspawn
Launch a child agent
(agentConfig) => Steploop
Repeat steps until condition
(steps[], until) => StepCompose Primitives into Patterns
Layered Memory System
Scratchpad for current turn
Auto-extracted facts from conversation
Vector-indexed long-term storage
Past conversation summaries
Persistent agent checkpoints
assembleView() → merged context → LLM