Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
-- Consecutive failures per background task, object and reason code. A success deletes the
-- object's rows for that task, so the inbox card disappears exactly when the worker works again.
CREATE TABLE IF NOT EXISTS background_task_health (
task TEXT NOT NULL,
subject TEXT NOT NULL,
reason_code TEXT NOT NULL,
streak INTEGER NOT NULL CHECK(streak > 0),
first_failed_at TEXT NOT NULL,
last_failed_at TEXT NOT NULL,
PRIMARY KEY (task, subject, reason_code)
);