Actor runtime

From anubhavg-icpl/vibe · View interactive version

Actor runtime is an AI agent skill from the GitHub repository anubhavg-icpl/vibe. Build an AutoGen v0.4-shaped actor runtime with private state, inbox-per-actor, message-only IPC, fault isolation, and a dead-letter queue. Use when you need help with actor runtime.

How to use this skill

Skill file

Given a multi-agent task, produce an actor runtime and the agent actors needed.

Produce:

  1. A Message type with sender, recipient, topic, body, mid.
  2. An Actor base class with receive(message, runtime). Actor state is private.
  3. A Runtime with a shared queue, send(), run_until_idle(), and a dead-letter queue. Exceptions in handlers go to DLQ; do not propagate.
  4. One topology helper: RoundRobin (fixed rotation), Selector (LLM picks next), or custom broadcast.
  5. Observability hooks per message: emit OTel spans with gen_ai.agent.name and gen_ai.operation.name per Lesson 23.

Hard rejects:

Refusal rules:

Output: message.py, actor.py, runtime.py, teams.py, README.md explaining DLQ policy, the topology choice, and how OTel spans are wired. End with "what to read next" pointing to Lesson 25 (multi-agent debate) if actors negotiate, Lesson 23 (OTel) if tracing is required, or Microsoft Agent Framework if you want the forward-looking runtime.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.