🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUv520f3f8283a7
diff --git a/v3/implementation/adrs/ADR-051-infinite-context-compaction-bridge.md b/v3/implementation/adrs/ADR-051-infinite-context-compaction-bridge.mdindex 3f2dd25d7c..95fce351db 100644--- a/v3/implementation/adrs/ADR-051-infinite-context-compaction-bridge.md+++ b/v3/implementation/adrs/ADR-051-infinite-context-compaction-bridge.md@@ -650,19 +650,24 @@ All core functions are exported from the hook module:### Hook Wiring (settings.json)```json-// PreCompact (manual + auto matchers)+// PreCompact (manual + auto matchers) — preserves exit code 2 for compaction blocking{ "type": "command", "timeout": 5000,- "command": "node .claude/helpers/context-persistence-hook.mjs pre-compact 2>/dev/null || true" }+ "command": "/bin/bash -c 'node ... pre-compact 2>/dev/null; RC=$?; if [ $RC -eq 2 ]; then exit 2; fi; exit 0'" }// SessionStart{ "type": "command", "timeout": 6000,"command": "node .claude/helpers/context-persistence-hook.mjs session-start 2>/dev/null || true" }-// UserPromptSubmit (proactive archiving)+// UserPromptSubmit (proactive archiving + autopilot){ "type": "command", "timeout": 5000,"command": "node .claude/helpers/context-persistence-hook.mjs user-prompt-submit 2>/dev/null || true" }```+**Critical**: PreCompact hooks must NOT use `|| true` as that swallows exit code 2.+The bash wrapper `RC=$?; if [ $RC -eq 2 ]; then exit 2; fi; exit 0` preserves+exit code 2 (block compaction) while converting other errors to exit 0 (allow+compaction on hook failure).+### Operational Notes- **Early exit optimization**: `doUserPromptSubmit()` skips archiving when the existing