Classifies autopilot reconnection errors as recoverable or unrecoverable.
// Source: https://github.com/inbrainfun/inbrain | License: MIT | Copyright 2026 Inbrain Contributors // Provided via justclaw.it.com; keep this notice with the code. /** * inbrain autopilot — Self-maintaining brain daemon. * * v0.11.1 shape: * - Default path (minion_mode != off AND engine == postgres): spawn a * `inbrain jobs work` child process, submit ONE `autopilot-cycle` job * per interval with an idempotency_key so slow cycles don't stack up. * The forked worker drains the queue durably; restart with 10s backoff * on crash (5-crash cap → autopilot stops with a clear error). * - Fallback (minion_mode=off, PGLite, or `--inline`): run sync → * extract → embed inline, same as pre-v0.11.1 behavior. * * Usage: * inbrain autopilot [--repo <path>] [--in ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key