restate-agent

Installation
SKILL.md

Extending the Restate reference agent

This repository is a complete agent, not a library. Two virtual objects, both keyed by agentId, run it:

  • Agent (agent/) is the controller. Its exclusive handlers decide everything about the conversation: start a turn, queue or steer a message, interrupt, profile, memories, approvals, schedules, sub-agents, notifications. It never runs a turn.
  • AgentSession (session/) owns the transcript and runs one turn at a time in doTurn: model call, guardrails, tool batch, repeat. The turn's Restate invocation ID is its turnId.

Every durable step of a turn is journaled. After a crash, the turn replays and reuses the recorded results. An external call that finished before its result was recorded can run again, so external writes need idempotency. Tools, approvals and sub-agents can wait for minutes or days without holding a process.

Installs
1
GitHub Stars
11
First Seen
Nov 5, 2026