Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Undead Agent - My AI Agent Dies, Comes Back, and Tells Me What It Saw

说明与用途

Undead Agent 展示了如何使用 Temporal 持久化工作流,让本地 AI 在进程被杀死后恢复到上一次完成的步骤,避免重复调用模型并提供幽灵式叙述。

问题

AI agents performing long multi‑step jobs often crash, causing the entire job to restart and incur repeated model calls.

结果

The Undead Agent demonstrates that a local AI workflow can be made resilient to process termination by separating disposable workers from durable workflow state. The agent resumes exactly where it left off, avoiding redundant model calls and providing a ghost‑style narration of its last moments.

工作流

  • Install Ollama and pull Gemma model
  • Start Temporal dev server
  • Run keepalive script
  • Run dashboard
  • Run client to trigger job
  • Kill the agent via dashboard
  • New worker resumes workflow from last checkpoint
  • Ghost narrates last state
  • Agent completes remaining steps and writes report

证据

Every step runs as a durable Temporal workflow, so if the process is killed mid‑thought, a brand new process takes over the workflow without redoing any finished work.

来源

The agent itself is a short Temporal workflow. It lists the files, summarizes each one as its own activity, then writes the report.

来源

  • 记录日期: 2026-11-01T12:14:01.510Z