Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Agent Messages: an agent that reads its own messages gets them all, once; honest waits; full-path send allowed (#1222)

Dee734d47e61ed4
diff --git a/cli/src/agentClient/commands.ts b/cli/src/agentClient/commands.ts
index 9d2ba143a..23515439d 100644
--- a/cli/src/agentClient/commands.ts
+++ b/cli/src/agentClient/commands.ts
@@ -583,7 +583,7 @@ export async function agentOrigin(deps: ClientDeps = {}, record: Rpc = messagesR
if (refusal) throw new AgentClientError('SPAWN_LIMIT', refusal)
},
prompt: (text, machineId) => {
- // Said once, at the top: the task is from an agent, not the person (the lamp team's tmux paste read as the
+ // Said once, at the top: the task is from an agent, not the person (a teammate's tmux paste read as the
// owner's). It reads the answer itself (`show`): an invitation to reply had the first eval's agent send its
// whole report back as a message as well, which would land in the middle of the starter's own turn. Nor is the
// new harness told to message it: being started by it gives no way to, only a tab with Agent Messages on does
diff --git a/cli/src/engines/__fixtures__/hook-installers.golden.json b/cli/src/engines/__fixtures__/hook-installers.golden.json
index 7cf05e021..d9d2ac3b4 100644
--- a/cli/src/engines/__fixtures__/hook-installers.golden.json
+++ b/cli/src/engines/__fixtures__/hook-installers.golden.json
@@ -27,7 +27,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -59,7 +59,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -464,7 +464,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -496,7 +496,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -611,7 +611,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -642,7 +642,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -673,7 +673,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-after\"\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -704,7 +704,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 30\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -736,7 +736,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -795,7 +795,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-first\"\n },\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -826,7 +826,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ],\n \"matcher\": \"other\"\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -857,7 +857,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -889,7 +889,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -925,7 +925,7 @@
"elsewhere/real.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -960,7 +960,7 @@
"elsewhere/real.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -1185,7 +1185,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "600",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -1243,7 +1243,7 @@
"moved/claude-work/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
},
"moved/claude-work/settings.json.<pid>.tmp": {
"type": "file",
@@ -1276,7 +1276,7 @@
"home/.claude/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
},
"home/.harness": {
"type": "dir",
@@ -1308,7 +1308,7 @@
"home/.claude/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
},
"home/.harness": {
"type": "dir",
@@ -1368,7 +1368,7 @@
"home/.claude/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
},
"home/.harness": {
"type": "dir",
@@ -1427,7 +1427,7 @@
"home/.claude/settings.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"hooks\": {\n \"SessionStart\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
},
"home/.harness": {
"type": "dir",
@@ -1467,7 +1467,7 @@
"elsewhere/real.json": {
"type": "file",
"mode": "644",
- "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\"\n ]\n }\n}\n"
+ "text": "{\n \"model\": \"opus\",\n \"nested\": {\n \"list\": [\n 1,\n 2.5,\n \"x\"\n ],\n \"none\": null\n },\n \"note\": \"caf\u00e9 \u2713 \ud83c\udf89\",\n \"hooks\": {\n \"SessionStart\": [\n {\n \"matcher\": \"resume\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-start\",\n \"timeout\": 9\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"UserPromptSubmit\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-prompt\"\n }\n ]\n },\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PreToolUse\": [\n {\n \"matcher\": \"Bash\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"foreign-tool\"\n }\n ]\n }\n ],\n \"SessionEnd\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"Stop\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"StopFailure\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"<command claude 19473>\",\n \"timeout\": 5\n }\n ]\n }\n ],\n \"PostToolUse\": [\n {\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n \"timeout\": 5\n }\n ]\n }\n ]\n },\n \"permissions\": {\n \"allow\": [\n \"Bash(harness send:*)\",\n \"Bash(<root>/home/.local/bin/harness send:*)\"\n ]\n }\n}\n"
}
}
},
@@ -1515,7 +1515,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -1563,7 +1563,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2012,7 +2012,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2060,7 +2060,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2209,7 +2209,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2256,7 +2256,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2303,7 +2303,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2350,7 +2350,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2398,7 +2398,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2514,7 +2514,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2562,7 +2562,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2610,7 +2610,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2657,7 +2657,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"elsewhere/real.json": {
"type": "file",
@@ -2708,7 +2708,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"elsewhere/real.json": {
"type": "file",
@@ -2859,7 +2859,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -2985,7 +2985,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -3066,7 +3066,7 @@
"moved/codex-work/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
}
}
},
@@ -3110,7 +3110,7 @@
"home/.codex/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"home/.harness": {
"type": "dir",
@@ -3158,7 +3158,7 @@
"home/.codex/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"home/.harness": {
"type": "dir",
@@ -3235,7 +3235,7 @@
"home/.codex/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"home/.harness": {
"type": "dir",
@@ -3316,7 +3316,7 @@
"home/.codex/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"home/.harness": {
"type": "dir",
@@ -3363,7 +3363,7 @@
"home/.codex/rules/harness.rules": {
"type": "file",
"mode": "600",
- "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\n"
+ "text": "# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\nprefix_rule(pattern=[\"harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<root>/home/.local/bin/harness\", \"send\"], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", \"send\"], decision=\"allow\")\n"
},
"home/.harness": {
"type": "dir",
diff --git a/cli/src/engines/claude/hookContract.ts b/cli/src/engines/claude/hookContract.ts
index 58f5cba2e..1fee277ef 100644
--- a/cli/src/engines/claude/hookContract.ts
+++ b/cli/src/engines/claude/hookContract.ts
@@ -21,7 +21,9 @@ export const hooks: HookContract = {
// Agent Messages: a teammate's message reaches a working agent at its next tool call (kit/messagesHook.ts).
// Its reply, `harness send`, is allowed in the person's permission rules: auto mode's check refused a
// Harness command outright, and a person away from the pane cannot answer a question.
- inbox: { event: 'PostToolUse', allow: { list: ['permissions', 'allow'], rule: 'Bash(harness send:*)' } },
+ // The launcher's full path too; not `{node} {cli}`, whose versioned path would leave a stale rule in the
+ // person's list at every runtime update (a rules file of its own can be rewritten; this list is theirs).
+ inbox: { event: 'PostToolUse', allow: { list: ['permissions', 'allow'], rules: ['Bash(harness send:*)', 'Bash({launcher} send:*)'] } },
commandNamesHome: false,
upToDate: { command: 'first-ours', matcher: false },
messages: {
diff --git a/cli/src/engines/codex/hookContract.ts b/cli/src/engines/codex/hookContract.ts
index 9f3218cea..d911eefec 100644
--- a/cli/src/engines/codex/hookContract.ts
+++ b/cli/src/engines/codex/hookContract.ts
@@ -17,7 +17,17 @@ export const hooks: HookContract = {
// Its reply, `harness send`, needs the daemon, which Codex's sandbox cannot reach: measured with
// `codex sandbox` (codex-cli 0.162.1), neither 127.0.0.1:18473 nor the daemon's socket answered. An `allow`
// rule runs it outside without asking; Codex reads every `.rules` file in its `rules` folder.
- inbox: { event: 'PostToolUse', allow: { file: 'rules/harness.rules', rule: 'prefix_rule(pattern=["harness", "send"], decision="allow")' } },
+ inbox: {
+ event: 'PostToolUse',
+ allow: {
+ file: 'rules/harness.rules',
+ rules: [
+ 'prefix_rule(pattern=["harness", "send"], decision="allow")',
+ 'prefix_rule(pattern=["{launcher}", "send"], decision="allow")',
+ 'prefix_rule(pattern=["{node}", "{cli}", "send"], decision="allow")',
+ ],
+ },
+ },
commandNamesHome: true,
upToDate: { command: 'first', matcher: true },
messages: {
diff --git a/cli/src/engines/facets/hooks.ts b/cli/src/engines/facets/hooks.ts
index 8c01433ed..6109b0b19 100644
--- a/cli/src/engines/facets/hooks.ts
+++ b/cli/src/engines/facets/hooks.ts
@@ -87,7 +87,13 @@ export interface HookSettings {
* added to a list in the settings file (`list`, the person's other rules kept), or a rules file of the
* engine's that Harness owns whole (`file`, in the settings' home).
*/
-export type SendAllowance = { list: readonly [string, string]; rule: string } | { file: string; rule: string }
+/**
+ * A rule may name `{launcher}` (the `harness` in `~/.local/bin`), `{node}` and `{cli}` (the managed Node and the CLI's
+ * bundle), filled in with this computer's paths as it is installed: an agent runs `harness send` by its full path too,
+ * where a rule for `harness send` alone does not apply. A Codex lead sent that way, so each send asked to leave the
+ * sandbox (2026-10-12).
+ */
+export type SendAllowance = { list: readonly [string, string]; rules: readonly string[] } | { file: string; rules: readonly string[] }
/**
* An engine's record of hooks a person reviewed: in its config file in the same home, a table per hook keyed
diff --git a/cli/src/engines/kit/hookSettings.spec.ts b/cli/src/engines/kit/hookSettings.spec.ts
index a789cc3c3..5aba26df3 100644
--- a/cli/src/engines/kit/hookSettings.spec.ts
+++ b/cli/src/engines/kit/hookSettings.spec.ts
@@ -9,6 +9,7 @@ import { defaultHookHome, installHookSettings } from './hookSettings.js'
import { HOOK_SCRIPT } from './notifyHooks.js'
import type { HookPreparationProof } from './nativeHookFiles.js'
import { messagesCommand } from './messagesHook.js'
+import { managedNodePath } from '../../lib/nodeRuntime.js'
import * as preparations from './nativeHookFiles.js'
import { reviewHash, reviewRecords } from './hookReview.js'
@@ -156,7 +157,9 @@ it('allows harness send in Claude Code beside the person\'s own rules, once', as
writeFileSync(file, JSON.stringify({ permissions: { allow: ['Bash(npm test:*)'], deny: ['Bash(rm:*)'], defaultMode: 'auto' } }))
expect(await installHookSettings('claude', claude.settings, 19473, home)).toBe(true)
const first = readFileSync(file, 'utf8')
- expect(JSON.parse(first).permissions).toEqual({ allow: ['Bash(npm test:*)', 'Bash(harness send:*)'], deny: ['Bash(rm:*)'], defaultMode: 'auto' })
+ // By its full path too: an agent where `harness` is not on its PATH runs the launcher itself (2026-10-12).
+ expect(JSON.parse(first).permissions).toEqual({ allow: ['Bash(npm test:*)', 'Bash(harness send:*)', `Bash(${join(env.HARNESS_BIN_DIR, 'harness')} send:*)`],
+ deny: ['Bash(rm:*)'], defaultMode: 'auto' })
expect(await installHookSettings('claude', claude.settings, 19473, home)).toBe(true)
expect(readFileSync(file, 'utf8')).toBe(first)
})
@@ -179,8 +182,12 @@ it('allows harness send in a Codex rules file of its own, leaving the person\'s
writeFileSync(own, 'prefix_rule(pattern=["git", "push"], decision="allow")\n')
expect(await installHookSettings('codex', codex.settings, 19473, home)).toBe(true)
const rules = join(home, 'rules', 'harness.rules')
+ // By its full path too, the launcher's or the managed Node's with the CLI's bundle: a Codex lead sent that way,
+ // and each send asked to leave the sandbox (2026-10-12).
expect(readFileSync(rules, 'utf8')).toBe('# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\n'
- + 'prefix_rule(pattern=["harness", "send"], decision="allow")\n')
+ + 'prefix_rule(pattern=["harness", "send"], decision="allow")\n'
+ + `prefix_rule(pattern=[${JSON.stringify(join(env.HARNESS_BIN_DIR, 'harness'))}, "send"], decision="allow")\n`
+ + `prefix_rule(pattern=[${JSON.stringify(managedNodePath())}, ${JSON.stringify(join(env.ADAPTER_CLI_DIR, 'cli.js'))}, "send"], decision="allow")\n`)
expect(statSync(rules).mode & 0o777).toBe(0o600)
expect(readFileSync(own, 'utf8')).toBe('prefix_rule(pattern=["git", "push"], decision="allow")\n')
const written = statSync(rules).ino
diff --git a/cli/src/engines/kit/hookSettings.ts b/cli/src/engines/kit/hookSettings.ts
index ec5fb037e..3733248d8 100644
--- a/cli/src/engines/kit/hookSettings.ts
+++ b/cli/src/engines/kit/hookSettings.ts
@@ -11,6 +11,7 @@ import { dirname, join } from 'node:path'
import { env } from '../../config/env.js'
import type { HookSettings } from '../facets/hooks.js'
import { prepareReviewed } from './hookReview.js'
+import { managedNodePath } from '../../lib/nodeRuntime.js'
import { isMessagesBlock, messagesCommand, writeMessagesHook } from './messagesHook.js'
import { command, HOOK_SCRIPT, isOurs, foreignHookBlocks, type Settings } from './notifyHooks.js'
import { HookPreparationHeld, inspectHookFile, runHookPreparation, type HookPreparationAttempt } from './nativeHookFiles.js'
@@ -70,7 +71,9 @@ async function installMessagesBlock(settings: HookSettings, home: string, attemp
const ours = blocks.filter(isMessagesBlock)
blockChanged = ours.length !== 1 || ours[0].matcher !== undefined || ours[0].hooks?.length !== 1
|| ours[0].hooks[0]?.command !== inboxCommand || ours[0].hooks[0]?.timeout !== settings.timeout
- const changed = (allow && 'list' in allow && withRule(current, allow.list, allow.rule)) || blockChanged
+ let allowed = false
+ if (allow && 'list' in allow) for (const rule of allow.rules) allowed = withRule(current, allow.list, sendRule(rule)) || allowed
+ const changed = allowed || blockChanged
current.hooks[event] = [...foreignHookBlocks(blocks, isMessagesBlock), { hooks: [{ type: 'command', command: inboxCommand, timeout: settings.timeout }] }]
const next = changed ? JSON.stringify(current, null, 2) + '\n' : observed.content!
const reviewed = settings.reviewed ? prepareReviewed(settings.reviewed, home, file, JSON.parse(next) as Settings) : null
@@ -91,12 +94,21 @@ async function installMessagesBlock(settings: HookSettings, home: string, attemp
verifyRequired()
}
if (allow && 'file' in allow) {
- try { writeRulesFile(join(home, allow.file), allow.rule) } catch (err) {
+ // Each path written as a Starlark string's contents: the file's rules are `prefix_rule(pattern=["…"])`.
+ try { writeRulesFile(join(home, allow.file), allow.rules.map((rule) => sendRule(rule, (path) => JSON.stringify(path).slice(1, -1))).join('\n')) } catch (err) {
console.warn(`[hooks] could not allow harness send in ${join(home, allow.file)} (the engine asks before each one):`, err instanceof Error ? err.message : err)
}
}
}
+/** A declared allowance with this computer's paths in place of `{launcher}`, `{node}` and `{cli}` (SEND_RULE_PATHS). */
+function sendRule(rule: string, quote: (path: string) => string = (path) => path): string {
+ const paths: Record<string, string> = {
+ launcher: join(env.HARNESS_BIN_DIR, 'harness'), node: managedNodePath(), cli: join(env.ADAPTER_CLI_DIR, 'cli.js'),
+ }
+ return rule.replace(/\{(launcher|node|cli)\}/g, (_, name: string) => quote(paths[name]))
+}
+
/**
* Add `rule` to the list at `[table, list]` (`permissions.allow`), creating what is missing and keeping every
* other rule. A shape Harness does not know is left as it is: the person's rules are never rewritten to fit.
@@ -111,8 +123,8 @@ function withRule(settings: Settings, [table, list]: readonly [string, string],
}
/** A rules file Harness owns whole: written atomically, and only when it does not already say exactly this. */
-function writeRulesFile(file: string, rule: string): void {
- const text = `# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\n${rule}\n`
+function writeRulesFile(file: string, rules: string): void {
+ const text = `# Written by Harness: agents in a tab with Agent Messages on reply with harness send. Do not edit.\n${rules}\n`
try { if (readFileSync(file, 'utf8') === text) return } catch { /* not written yet */ }
mkdirSync(dirname(file), { recursive: true, mode: 0o700 })
const temporary = `${file}.${process.pid}.tmp`
diff --git a/cli/src/messages/command.spec.ts b/cli/src/messages/command.spec.ts
index a706f5bea..cc34e6307 100644
--- a/cli/src/messages/command.spec.ts
+++ b/cli/src/messages/command.spec.ts
@@ -47,14 +47,22 @@ describe('what harness send prints', () => {
{ id: 'm2', from: 'api', text: 'x'.repeat(200), state: 'queued' },
] })).toBe(`Teammates: api\n\nYour last messages:\n [m1 to api, web] first line (delivered)\n [m2 from api] ${'x'.repeat(157)}… (queued)`)
expect(formatSent({ roster: 'Teammates: api', recent: [{ id: 'm3', from: 'api', state: 'failed' }] })).toBe('Teammates: api\n\nYour last messages:\n [m3 from api] (failed)')
+ // What was waiting for it, whole: an agent reading its messages this way saw only first lines (2026-10-12).
+ expect(formatSent({ roster: 'Teammates: api', recent: [
+ { id: 'm4', from: 'api', text: 'cause found\nbranch fix 3f2a9c1\ndetails in the README', state: 'delivered', unread: true },
+ { id: 'm5', to: ['api'], text: 'thanks', state: 'delivered' },
+ ] })).toBe('Teammates: api\n\nNew messages for you (now read):\n\n[m4 from api]\ncause found\nbranch fix 3f2a9c1\ndetails in the README'
+ + '\n\nYour last messages:\n [m5 to api] thanks (delivered)')
expect(formatSent({ id: 'm1234567', recipients: [
{ name: 'api', state: 'delivered', via: 'prompt' },
{ name: 'web', state: 'queued', reason: 'working: arrives at its next tool call' },
{ name: 'phone', state: 'delivered', via: 'hook' },
+ { name: 'lead', state: 'delivered', via: 'read' },
] })).toBe([
'm1234567 → api: delivered (as a prompt)',
'm1234567 → web: queued · working: arrives at its next tool call',
'm1234567 → phone: delivered (at its tool call)',
+ 'm1234567 → lead: delivered (it read it)',
].join('\n'))
expect(formatSent({})).toBe('')
})
diff --git a/cli/src/messages/command.ts b/cli/src/messages/command.ts
index 711292b8f..d01b50aa2 100644
--- a/cli/src/messages/command.ts
+++ b/cli/src/messages/command.ts
@@ -84,16 +84,22 @@ export function paneOwner(pane: string, tmux: (args: string[]) => string = (args
/** One recipient's line: what became of the message for them. */
export function formatSent(reply: Record<string, unknown>): string {
if (typeof reply.roster === 'string') {
- const recent = (Array.isArray(reply.recent) ? reply.recent as Record<string, unknown>[] : []).map((m) => {
- const who = Array.isArray(m.to) ? `to ${(m.to as unknown[]).join(', ')}` : `from ${String(m.from)}`
+ const all = Array.isArray(reply.recent) ? reply.recent as Record<string, unknown>[] : []
+ const who = (m: Record<string, unknown>) => Array.isArray(m.to) ? `to ${(m.to as unknown[]).join(', ')}` : `from ${String(m.from)}`
+ // A message read here is given whole: an agent that reads its messages this way, its hook never running, saw
+ // only each one's first line (2026-10-12).
+ const unread = all.filter((m) => m.unread === true).map((m) => `[${String(m.id)} ${who(m)}]\n${String(m.text ?? '')}`)
+ const recent = all.filter((m) => m.unread !== true).map((m) => {
const first = String(m.text ?? '').split('\n')[0]
- return ` [${String(m.id)} ${who}] ${first.length > 160 ? `${first.slice(0, 157)}…` : first} (${String(m.state)})`
+ return ` [${String(m.id)} ${who(m)}] ${first.length > 160 ? `${first.slice(0, 157)}…` : first} (${String(m.state)})`
})
- return recent.length ? `${reply.roster}\n\nYour last messages:\n${recent.join('\n')}` : reply.roster
+ return [String(reply.roster),
+ ...(unread.length ? [`New messages for you (now read):\n\n${unread.join('\n\n')}`] : []),
+ ...(recent.length ? [`Your last messages:\n${recent.join('\n')}`] : [])].join('\n\n')
}
const id = String(reply.id ?? '')
const lines = (Array.isArray(reply.recipients) ? reply.recipients as Record<string, unknown>[] : []).map((r) => {
- const via = r.via === 'hook' ? ' (at its tool call)' : r.via === 'prompt' ? ' (as a prompt)' : ''
+ const via = r.via === 'hook' ? ' (at its tool call)' : r.via === 'prompt' ? ' (as a prompt)' : r.via === 'read' ? ' (it read it)' : ''
return `${id} → ${String(r.name)}: ${String(r.state)}${via}${r.reason ? ` · ${String(r.reason)}` : ''}`
})
return lines.join('\n')
diff --git a/cli/src/messages/mailbox.spec.ts b/cli/src/messages/mailbox.spec.ts
index a12ca8484..021958acf 100644
--- a/cli/src/messages/mailbox.spec.ts
+++ b/cli/src/messages/mailbox.spec.ts
@@ -3,7 +3,7 @@ import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { PaneInbox } from './inbox.js'
-import { ATTEMPT_MS, deliveryKey, FINISHED_KEEP_MS, Mailbox, MAX_BACKOFF_MS, PARK_MS, PARKED_MAX_MS, PUMP_MS, WITHHELD, type MailboxAgent, type MailboxDeps } from './mailbox.js'
+import { ATTEMPT_MS, deliveryKey, FINISHED_KEEP_MS, HOOKLESS_MS, HOOKLESS_REASON, Mailbox, MAX_BACKOFF_MS, PARK_MS, PARKED_MAX_MS, PUMP_MS, WITHHELD, type MailboxAgent, type MailboxDeps } from './mailbox.js'
import type { DeliveryStatus, Message } from './model.js'
import { MessageStore } from './store.js'
@@ -97,6 +97,42 @@ describe('Agent Messages\' mailbox', () => {
expect(t.delivered).toHaveLength(1)
})
+ it('stops promising the next tool call once a working agent has taken nothing for a long while', () => {
+ // A Codex lead running since before Agent Messages never ran the hook: every message to it read "arrives at its
+ // next tool call" for an hour while it read them with `harness send` (2026-10-12).
+ const t = setup()
+ const delivery = t.accept()
+ t.event(delivery.attempt!.id, 'rejected', 'team_waiting_idle')
+ expect(t.statuses.at(-1)).toMatchObject({ reason: 'working: arrives at its next tool call' })
+ t.tick(HOOKLESS_MS - 1)
+ t.mailbox.pump()
+ expect(t.statuses.at(-1)).toMatchObject({ reason: 'working: arrives at its next tool call' })
+ t.tick(1)
+ t.mailbox.pump()
+ expect(t.statuses.at(-1)).toMatchObject({ state: 'queued', reason: HOOKLESS_REASON })
+ // And a later refusal while it works says the same, never the promise again.
+ t.event(delivery.attempt!.id, 'rejected', 'team_waiting_idle')
+ expect(delivery.reason).toBe(HOOKLESS_REASON)
+ })
+
+ it('delivers what the agent read itself, withdrawing the hook\'s copy, but never under a typed attempt in flight', () => {
+ const t = setup()
+ const parked = t.accept()
+ t.event(parked.attempt!.id, 'rejected', 'team_waiting_idle')
+ const typing = t.accept(message('m0000002'))
+ expect(typing.attempt).toBeDefined()
+ expect(t.mailbox.read('api', ['m0000001', 'm0000002', 'm0000009'])).toEqual(['m0000001'])
+ expect(parked).toMatchObject({ state: 'delivered', via: 'read' })
+ expect(t.inbox.waiting('%3', parked.key)).toBe(false)
+ expect(t.statuses.at(-1)).toMatchObject({ messageId: 'm0000001', state: 'delivered', via: 'read' })
+ expect(typing.state).toBe('queued')
+ // Read once: a second look marks nothing, and another agent's messages are never its.
+ expect(t.mailbox.read('api', ['m0000001'])).toEqual([])
+ expect(t.mailbox.read('web', ['m0000002'])).toEqual([])
+ t.mailbox.pump()
+ expect(t.delivered.filter(([, , id]) => id.includes(parked.key))).toHaveLength(1)
+ })
+
it('waits longer between typed attempts at an agent that keeps refusing, up to a limit, and says why', () => {
const t = setup()
const delivery = t.accept()
diff --git a/cli/src/messages/mailbox.ts b/cli/src/messages/mailbox.ts
index a12532995..2401be9fa 100644
--- a/cli/src/messages/mailbox.ts
+++ b/cli/src/messages/mailbox.ts
@@ -37,6 +37,15 @@ export const ATTEMPT_MS = 120_000
export const PARK_MS = 20_000
/** How long a parked attempt is left with the core before it is forgotten: the core may have lost it. */
export const PARKED_MAX_MS = 10 * 60_000
+/**
+ * How long a message waits on a working agent's hook before its reason stops promising the next tool call. An
+ * engine reads its hooks as it starts: Codex agents running since before Agent Messages never ran the hook, and
+ * every message to their lead read "arrives at its next tool call" for an hour while it polled `harness send`
+ * (2026-10-12).
+ */
+export const HOOKLESS_MS = 10 * 60_000
+export const HOOKLESS_REASON = 'working, and no tool call has taken it: it may have started before Agent Messages. '
+ + 'It reads its messages with `harness send`; restarting it gives it them at once'
/** How long a finished delivery is kept: its outcome lives on in the history. */
export const FINISHED_KEEP_MS = 24 * 3600_000
@@ -176,7 +185,7 @@ export class Mailbox {
delivery.attempt = undefined
delivery.nextTryAt = this.now() + (attempt.parked ? 0 : Math.min(MAX_BACKOFF_MS, PUMP_MS * 2 ** Math.min(delivery.tries, 4)))
if (!attempt.parked) this.deps.inbox.restore(delivery.pane, delivery.key)
- this.report(delivery, WAITING[event.reason ?? ''] ?? event.reason ?? 'waiting')
+ this.report(delivery, event.reason === 'team_waiting_idle' ? this.idleReason(delivery) : WAITING[event.reason ?? ''] ?? event.reason ?? 'waiting')
this.save()
}
@@ -191,6 +200,7 @@ export class Mailbox {
}
for (const delivery of this.local) {
if (delivery.state !== 'queued') continue
+ if (delivery.reason === WAITING.team_waiting_idle) this.report(delivery, this.idleReason(delivery))
if (delivery.pane && taken.has(`${delivery.pane.slice(1)}-${delivery.key}`) && this.deps.inbox.claimed(delivery.pane, delivery.key)) { this.finish(delivery, 'hook'); continue }
if (delivery.attempt) { this.watch(delivery); continue }
if (!this.deps.ready()) continue
@@ -242,7 +252,7 @@ export class Mailbox {
attempt.parked = true
attempt.parkedAt = now
this.deps.inbox.restore(delivery.pane, delivery.key)
- this.report(delivery, WAITING.team_waiting_idle)
+ this.report(delivery, this.idleReason(delivery))
this.save()
this.deps.writable?.()
} else if ((attempt.parked && now - (attempt.parkedAt ?? now) > PARKED_MAX_MS)
@@ -256,12 +266,34 @@ export class Mailbox {
}
}
+ /**
+ * The agent read what waits for it (`harness send` alone): each of [messageIds] it was not given yet is
+ * delivered, its inbox file withdrawn, so neither its hook nor a typed prompt gives it again. One being typed
+ * this moment is left to that attempt. Answers the ids it marked.
+ */
+ read(agentId: string, messageIds: readonly string[]): string[] {
+ const wanted = new Set(messageIds)
+ const marked: string[] = []
+ for (const delivery of this.local) {
+ if (delivery.state !== 'queued' || delivery.agentId !== agentId || !wanted.has(delivery.messageId)) continue
+ if (delivery.attempt && !delivery.attempt.parked) continue
+ this.finish(delivery, 'read')
+ marked.push(delivery.messageId)
+ }
+ return marked
+ }
+
+ /** Why a message waits for a working agent: its next tool call, until that has not come for a long while. */
+ private idleReason(delivery: LocalDelivery): string {
+ return this.now() - delivery.at >= HOOKLESS_MS ? HOOKLESS_REASON : WAITING.team_waiting_idle
+ }
+
private put(delivery: LocalDelivery, message: Message, agent: MailboxAgent): void {
try { this.deps.inbox.put(agent.pane, delivery.key, { session: agent.session, text: this.deps.text(delivery, message) }) }
catch { /* the next pump puts it again */ }
}
- private finish(delivery: LocalDelivery, via: 'hook' | 'prompt', reason?: string): void {
+ private finish(delivery: LocalDelivery, via: 'hook' | 'prompt' | 'read', reason?: string): void {
delivery.state = 'delivered'
delivery.via = via
delivery.reason = reason
diff --git a/cli/src/messages/model.ts b/cli/src/messages/model.ts
index 8a2ef0594..e0d5ff75f 100644
--- a/cli/src/messages/model.ts
+++ b/cli/src/messages/model.ts
@@ -40,8 +40,9 @@ export interface DeliveryStatus {
machineId: string
agentId: string
state: DeliveryState
- /** How it was delivered: the messages hook at a tool call, or a prompt typed into an idle agent. */
- via?: 'hook' | 'prompt'
+ /** How it was delivered: the messages hook at a tool call, a prompt typed into an idle agent, or the agent read
+ * it itself (`harness send` alone lists what waits for it). */
+ via?: 'hook' | 'prompt' | 'read'
reason?: string
at: number
}
diff --git a/cli/src/messages/service.spec.ts b/cli/src/messages/service.spec.ts
index 34cb57d96..0fb8e338c 100644
--- a/cli/src/messages/service.spec.ts
+++ b/cli/src/messages/service.spec.ts
@@ -141,6 +141,32 @@ describe('harness send', () => {
expect((api.recent as Array<Record<string, unknown>>).at(-1)).toMatchObject({ id: twice.id, from: 'lead', state: 'queued' })
})
+ it('gives an agent that reads its messages itself every one still waiting, whole and once, then its last few', async () => {
+ // A Codex lead running since before Agent Messages never ran the hook and, always working, was never typed to: it
+ // read `harness send` alone, which gave only its last five, each still "queued" (2026-10-12).
+ const t = setup()
+ const ids: string[] = []
+ for (let i = 1; i <= 7; i++) {
+ const sent = await t.ask({ action: 'send', pane: '%1', to: 'api', text: `finding ${i}\nwith its details` })
+ ids.push(String(sent.id))
+ // api is working: each typed attempt goes back to the hook, which never runs.
+ t.deliveryEvent({ deliveryId: t.delivered.at(-1)![2], sessionId: 'api', state: 'rejected', reason: 'team_waiting_idle' })
+ }
+ const first = (await t.ask({ action: 'send', pane: '%2' })).recent as Array<Record<string, unknown>>
+ const unread = first.filter((m) => m.unread === true)
+ expect(unread.map((m) => m.id)).toEqual(ids)
+ expect(unread.every((m) => m.state === 'delivered' && m.text === `finding ${ids.indexOf(String(m.id)) + 1}\nwith its details`)).toBe(true)
+ const history = await t.ask({ action: 'history', tabId: 'app' }) as { messages: Array<{ statuses: Array<Record<string, unknown>> }> }
+ expect(history.messages.flatMap((m) => m.statuses).filter((s) => s.agentId === 'api').every((s) => s.state === 'delivered' && s.via === 'read')).toBe(true)
+ // Read once: the next look gives nothing new, and its last five as before.
+ const again = (await t.ask({ action: 'send', pane: '%2' })).recent as Array<Record<string, unknown>>
+ expect(again.filter((m) => m.unread)).toEqual([])
+ expect(again.map((m) => m.id)).toEqual(ids.slice(-5))
+ // The sender sees them delivered.
+ const lead = (await t.ask({ action: 'send', pane: '%1' })).recent as Array<Record<string, unknown>>
+ expect(lead.every((m) => m.state === 'delivered')).toBe(true)
+ })
+
it('tells two teammates with the same start apart only by more of the name', async () => {
const t = setup({
agents: [session('lead', '%1'), session('api-a', '%2'), session('api-b', '%3')],
diff --git a/cli/src/messages/service.ts b/cli/src/messages/service.ts
index d88e85d1f..3ca3b0cce 100644
--- a/cli/src/messages/service.ts
+++ b/cli/src/messages/service.ts
@@ -60,6 +60,8 @@ export const WHO_MS = 60_000
export const SWEEP_AFTER_MS = 10 * 60_000
const PANE = /^%\d{1,9}$/
+/** The most messages `harness send` alone gives an agent at once, unread ones first. */
+const UNREAD_MAX = 20
/** Whether `wanted` is the whole of a name the engine cut short: Codex titles its terminal with the folder cut to fit
* ("claude-code-2026-10-1..."), and an agent that wrote the folder out in full was told no teammate had that name
* (a fresh Mac, 2026-10-12). Both arguments in lower case. */
@@ -379,13 +381,23 @@ export function startAgentMessages(core: CoreApi, options: MessagesOptions = {})
}
/** The last messages a harness sent or was sent, oldest first, as `harness send` lists them. */
+ /**
+ * What `harness send` alone gives an agent besides the roster: every message still waiting for it, which it has
+ * now read, then its last few. An agent whose engine started before Agent Messages never runs the hook and, always
+ * working, is never typed to: it read its messages this way, but only the last five, each still "queued", and a
+ * restart would have given it all of them again (a Codex lead, 2026-10-12).
+ */
function recentFor(me: Member, count = 5): Array<Record<string, unknown>> {
const mine = (m: Member) => m.machineId === me.machineId && m.agentId === me.agentId
- return store.state.history.filter((e) => mine(e.message.from) || e.message.to.some(mine)).slice(-count).map((e) => {
+ const involving = store.state.history.filter((e) => mine(e.message.from) || e.message.to.some(mine))
+ const waiting = involving.filter((e) => !mine(e.message.from) && e.statuses.find((s) => mine(s))?.state === 'queued').slice(-UNREAD_MAX)
+ const read = new Set(mailbox.read(me.agentId, waiting.map((e) => e.message.id)))
+ const shown = [...new Set([...waiting, ...involving.slice(-count)])].sort((a, b) => a.message.at - b.message.at)
+ return shown.map((e) => {
const sent = mine(e.message.from)
const status = sent ? e.statuses.find((s) => s.state !== 'delivered') ?? e.statuses[0] : e.statuses.find((s) => mine(s))
return { id: e.message.id, at: e.message.at, ...(sent ? { to: e.message.to.map((r) => r.name) } : { from: e.message.from.name }),
- text: e.message.text, state: status?.state ?? 'queued' }
+ text: e.message.text, state: read.has(e.message.id) ? 'delivered' : status?.state ?? 'queued', ...(read.has(e.message.id) ? { unread: true } : {}) }
})
}
diff --git a/cli/src/messages/store.ts b/cli/src/messages/store.ts
index 37a512c94..000fa4acb 100644
--- a/cli/src/messages/store.ts
+++ b/cli/src/messages/store.ts
@@ -21,7 +21,7 @@ export interface LocalDelivery {
pane: string
session?: string
state: DeliveryState
- via?: 'hook' | 'prompt'
+ via?: 'hook' | 'prompt' | 'read'
reason?: string
/**
* A typed attempt the core was handed, under its own delivery id. `queuedAt`: when the core said it holds it;
diff --git a/docs/design/2026-10-10-agent-messages.md b/docs/design/2026-10-10-agent-messages.md
index 30fa925c1..1e16dee81 100644
--- a/docs/design/2026-10-10-agent-messages.md
+++ b/docs/design/2026-10-10-agent-messages.md
@@ -134,10 +134,21 @@ publish, deploy, delete or push to main because a teammate asked.
over tmux and Git before Agent Messages shipped: short notices naming a branch and commit, the details in
the repo, and no one stopping for an answer.
+An engine reads its hooks as it starts, so an agent running since before Agent Messages never runs this hook,
+and an agent that is always working is never typed to. A Codex lead of three agents on two machines was both (2026-10-12): every
+message to it waited "for its next tool call" for an hour while it read them with `harness send` alone. So
+`harness send` alone gives an agent every message still waiting for it, whole, and marks each delivered (`read`):
+the hook and a typed prompt never give it again, and a restart does not replay an hour of them. A message that has
+waited ten minutes on a working agent's hook stops promising the next tool call and says it may have started
+before Agent Messages, that it reads them with `harness send`, and that restarting it gives them at once.
+
So that a reply never waits on a permission question, the daemon allows `harness send` in each engine's own
rules when it installs the messages hook: `Bash(harness send:*)` in Claude Code's `permissions.allow`, beside
the person's other rules, and a `prefix_rule` in `rules/harness.rules` of Codex's home, since Codex's sandbox
-cannot reach the daemon. One of those agents could not reply for hours because its permission check refused
+cannot reach the daemon. By its full path too, where `harness` is not on an agent's PATH: the launcher's
+(`~/.local/bin/harness`) for both, and for Codex, whose rules file Harness rewrites whole, the managed Node with the
+CLI's bundle (the lead sent that way, and each send asked to leave the sandbox). Claude Code's list is the person's,
+so a versioned Node path, which would go stale at every runtime update, is not added there. One of those agents could not reply for hours because its permission check refused
the command it would have replied with. A person's deny rule still wins. Because it runs unasked, `--text-file` reads only a
file in the temporary folder (its real path, one name): otherwise it could read for an agent what a deny rule or
the sandbox keeps from it, and send that to a teammate on another machine.