Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
New read-only gbrain doctor check session_lane_budget counts this database role's connections across every gbrain process (by process kind and host, from the gbrain <kind>:<pid>:<nonce> connection name) and warns at 80% of the limit, naming the kinds holding the most. Behind a Supabase pooler, set GBRAIN_SESSION_LANE_LIMIT to the project's pool_size to compare (Postgres cannot read it); without it the check reports the counts only. Without a pooler the limit is max_connections less the reserved slots. Not applicable on PGLite.