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 indoTurn: model call, guardrails, tool batch, repeat. The turn's Restate invocation ID is itsturnId.
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.