Skip to main content
Scaffold this example locally and test it with the CLI:

circuit.toml

circuit.toml

Example

Sample Output

How It Works

  1. Log: Logs a starting message
  2. Read memory: Retrieves a persistent counter from agent memory
  3. Increment & store: Bumps the counter and writes it back
  4. Unwind: Logs the number of positions being unwound

Notes

  • This is the default template used by circuit new. It’s a good starting point for any agent.
  • Agent memory persists across run cycles - use it for counters, flags, or any state you need between executions.
  • See CLI + SDK Context for the full AgentContext API.