Requiem: a crash post-mortem that speaks as the program that died
说明与用途
Requiem 是一个本地 CLI 工具,捕获程序崩溃,删除敏感信息,并生成包含原因、修复建议和程序第一人称悼词的 obituaries 卡片,无需外部网络调用。
问题
Crashes produce sensitive logs that risk leaking private data when sent to external services.
结果
Requiem provides a privacy‑preserving, offline crash post‑mortem that outputs a readable obituary card, including cause, fix, and a program‑voice eulogy.
工作流
- Run the target command via
requiem run -- <cmd> - Capture exit code, signal, duration, and stderr/stdout
- Parse traceback and map signals to names
- Redact secrets from captured output
- Query local Gemma 3 1B model for diagnosis and eulogy (or fallback to deterministic output)
- Store obituary in
data/obituaries.jsonl - Display obituary card in terminal
证据
Requiem produces an obituary card with the cause of death, a suggested fix, and a first person eulogy written as if the program itself were speaking.
All of this is stdlib Python, about 400 lines. No API keys. No network calls when using --no-model.
Crash logs are sensitive. A traceback can contain file paths, hostnames, SQL, auth headers, customer data, or tokens. Sending that to a cloud crash explainer leaks private information.
- 记录日期: 2026-10-27T09:26:12.683Z