Before Klaus design or code changes, inspect and test exact installed Pi and Claude Agent SDK APIs; never rely on memory, bridge code, or summaries. Use dbg?.(...) only for bounded, secret-free diagnostics. Set/unset KLAUS_DEBUG_LOG before starting Pi, then restart; never call dbg(...), because disabled tracing must skip argument evaluation.