The operator asked for the shell guard to go (2026-11-20): the plugin no longer carries a PreToolUse hook or guard.json, the binary no longer has a guard verb, and the claude_code_guard tool, its record and the refusal-ranked order of the instead-of table are gone. The SessionStart and Stop hooks of the wait list stay, run by the same binary at the same path, which is also the home-fs helper's. The rendered rule against ssh to a mesh machine stays as the session's own and no longer claims a guard enforces it; claude-agent no longer passes the guard's override.
10 lines
417 B
Bash
Executable File
10 lines
417 B
Bash
Executable File
#!/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.
|
|
exec sudo -iu "$agent" claude "$@"
|