{
  "id": "f5e5cab9aa125a1f2e925caeeb021a30c139174059cd135a2182d8f13164feb5",
  "label": "estimate-tool-ScheduleWakeup",
  "generatedAt": "2026-06-09T00:30:02.865Z",
  "url": "https://api.anthropic.com/v1/messages/count_tokens?beta=true",
  "headers": {
    "anthropic-beta": "claude-code-20250219,context-1m-2025-08-07,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24,token-counting-2024-11-01",
    "anthropic-version": "2023-06-01",
    "content-type": "application/json",
    "x-api-key": "<redacted>"
  },
  "body": {
    "model": "claude-opus-4-8",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "<system-reminder>\nAs you answer the user's questions, you can use the following context:\n# currentDate\nToday's date is 2026-06-08.\n\n      IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.\n</system-reminder>\n\n"
          },
          {
            "type": "text",
            "text": "say hi",
            "cache_control": {
              "type": "ephemeral"
            }
          },
          {
            "type": "text",
            "text": "{\"description\":\"Schedule when to resume work in /loop dynamic mode — the user invoked /loop without an interval, asking you to self-pace iterations of a specific task.\\n\\nDo NOT schedule a short-interval wakeup to poll for background work you started — when harness-tracked work finishes, you are re-invoked automatically, so polling is wasted. Instead schedule a long fallback (1200s+) so the loop survives if the work hangs or never notifies. The exception is external work the harness cannot track (a CI run, a deploy, a remote queue) — there, pick a delay matched to how fast that state actually changes.\\n\\nPass the same /loop prompt back via `prompt` each turn so the next firing repeats the task. For an autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` as `prompt` instead — the runtime resolves it back to the autonomous-loop instructions at fire time. (There is a similar `<<autonomous-loop>>` sentinel for CronCreate-based autonomous loops; do not confuse the two — ScheduleWakeup always uses the `-dynamic` variant.) Omit the call to end the loop.\\n\\n## Picking delaySeconds\\n\\nThe Anthropic prompt cache has a 5-minute TTL. Sleeping past 300 seconds means the next wake-up reads your full conversation context uncached — slower and more expensive. So the natural breakpoints:\\n\\n- **Under 5 minutes (60s–270s)**: cache stays warm. Right for actively polling external state the harness can't notify you about — a CI run, a deploy, a remote queue.\\n- **5 minutes to 1 hour (300s–3600s)**: pay the cache miss. Right when there's no point checking sooner — waiting on something that takes minutes to change, genuinely idle, or as the long fallback heartbeat when something else is the primary wake signal.\\n\\n**Don't pick 300s.** It's the worst-of-both: you pay the cache miss without amortizing it. If you're tempted to \\\"wait 5 minutes,\\\" either drop to 270s (stay in cache) or commit to 1200s+ (one cache miss buys a much longer wait). Don't think in round-number minutes — think in cache windows.\\n\\nFor idle ticks with no specific signal to watch, default to **1200s–1800s** (20–30 min). The loop checks back, you don't burn cache 12× per hour for nothing, and the user can always interrupt if they need you sooner.\\n\\nThink about what you're actually waiting for, not just \\\"how long should I sleep.\\\" If you're polling a CI run that takes ~8 minutes, sleeping 60s burns the cache 8 times before it finishes — sleep ~270s twice instead.\\n\\nThe runtime clamps to [60, 3600], so you don't need to clamp yourself.\\n\\n## The reason field\\n\\nOne short sentence on what you chose and why. Goes to telemetry and is shown back to the user. \\\"watching CI run\\\" beats \\\"waiting.\\\" The user reads this to understand what you're doing without having to predict your cadence in advance — make it specific.\\n\",\"input_schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"additionalProperties\":false,\"properties\":{\"delaySeconds\":{\"description\":\"Seconds from now to wake up. Clamped to [60, 3600] by the runtime.\",\"type\":\"number\"},\"prompt\":{\"description\":\"The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`).\",\"type\":\"string\"},\"reason\":{\"description\":\"One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific.\",\"type\":\"string\"}},\"required\":[\"delaySeconds\",\"reason\",\"prompt\"],\"type\":\"object\"},\"name\":\"ScheduleWakeup\"}"
          }
        ]
      },
      {
        "role": "system",
        "content": "The following skills are available for use with the Skill tool:\n\n- deep-research: \n- update-config: \n- keybindings-help: \n- verify: \n- code-review: \n- simplify: \n- fewer-permission-prompts: \n- loop: \n- claude-api: \n- run: \n- init: \n- review: \n- security-review: "
      }
    ],
    "thinking": {
      "type": "adaptive"
    },
    "output_config": {
      "effort": "high"
    },
    "system": [
      {
        "type": "text",
        "text": "x-anthropic-billing-header: cc_version=2.1.168.c27; cc_entrypoint=sdk-ts; cch=e5b75;"
      },
      {
        "type": "text",
        "text": "You are a Claude agent, built on Anthropic's Claude Agent SDK.",
        "cache_control": {
          "type": "ephemeral"
        }
      }
    ]
  },
  "bodyCanonicalSha256": "4d240c9008709e791156eb9ae9e790ed56b08cf9ed08a94ac3088cdbcb6bc79e"
}
