#!/bin/sh # The mesh's (module claude-code, novox/hq ADR 0266): start the agent as the account agents run as on this # machine. Written whole at every push: an edit here is overwritten. agent='${machine:agent-account}' if [ "$(id -un)" = "$agent" ]; then exec claude "$@" fi # Another account, the operator's, becomes the agent's through its own sudo: the person is the authority. The # operator's override of the guard travels only when it is set in this shell, as it would reach claude. if [ -n "$MESH_GUARD_OVERRIDE" ]; then exec sudo -iu "$agent" env MESH_GUARD_OVERRIDE="$MESH_GUARD_OVERRIDE" claude "$@" fi exec sudo -iu "$agent" claude "$@"