core beginner

State Ops Agent

Focused example for SetState, ReplaceState, DeleteKeys, SetPath, and DeletePath via pure cmd execution.

state stateops actions core-mechanics l1

Related guides and notebooks

What you’ll learn

  • When to use SetState vs ReplaceState.
  • How to remove keys and nested paths safely.
  • How state operations stay pure under cmd/2.

How it works

Each button executes one action that returns a specific StateOp. The demo immediately renders the resulting state and logs each mutation.

Focus

This example intentionally stays local and deterministic:

  • No network
  • No external services
  • No background runtime required