← Files Tree Ring MemoryARCHIVED FILE

hooks/codex-hooks.json

1.32 KB · Oct 3, 2026 · 06:32 UTC

↓ Download file

{
  "description": "Load bounded Tree Ring context at startup and enforce one agent-mediated memory checkpoint at stop.",
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "\"${PLUGIN_ROOT}/hooks/codex-hook.sh\"",
            "timeout": 10,
            "statusMessage": "Loading Tree Ring context",
            "additionalContextLimit": 6000
          }
        ]
      }
    ],
    "SubagentStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "\"${PLUGIN_ROOT}/hooks/codex-hook.sh\"",
            "timeout": 10,
            "statusMessage": "Loading Tree Ring worker context",
            "additionalContextLimit": 6000
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "\"${PLUGIN_ROOT}/hooks/codex-hook.sh\"",
            "timeout": 10,
            "statusMessage": "Checking Tree Ring memory"
          }
        ]
      }
    ],
    "SubagentStop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "\"${PLUGIN_ROOT}/hooks/codex-hook.sh\"",
            "timeout": 10,
            "statusMessage": "Checking Tree Ring worker memory"
          }
        ]
      }
    ]
  }
}

SHA-256: f904595b951cbb29e6ccf31d93d7c51fee3438c90291e8643037509b054135e9