Answer: Mods and hooks API calls run under time and size limits; for example, a hook's own execution time for one event is 10 seconds (or 50 milliseconds for a prompt.edit hook), and a tree's nesting depth is 32 levels below the root element. Status: Confirmed Entry: tool/claude-code/pricing-and-limits/mod-limits Revision: 3 Digest: sha256:11600c446e57f97f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:17Z Last changed: 2026-11-19T12:19:13Z (Image bytes per tree: — → 2 MiB) Last verified: 2026-11-20T12:23:50Z Next check: 2026-11-21T12:23:50Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of hook execution time | 10 seconds | seconds | [1] | 2026-11-20 prompt.edit hook execution time | 50 milliseconds | milliseconds | [1] | 2026-11-20 catch handler execution time | 1 second | second | [1] | 2026-11-20 process.run timeout | 30 seconds by default, 10 minutes at most | | [1] | 2026-11-20 tree nesting depth | 32 levels below the root element | levels | [1] | 2026-11-20 elements and text children per tree | 20,000 | | [1] | 2026-11-20 Raster cells per tree | 262,144 | | [1] | 2026-11-20 Image bytes per tree | 2 MiB | MiB | [1] | 2026-11-20 Sources: [1] Anthropic. "Mods reference". https://code.claude.com/docs/en/plugins/mods/reference.md Role: primary. Accessed: 2026-11-20T12:23:50Z Quote: "A hook's own execution time for one event, not counting time inside `next` or a mods API call other than `$.clock.sleep` | 10 seconds, or 50 milliseconds for a `prompt.edit` hook" (Supports: hook execution time) Quote: "10 seconds, or 50 milliseconds for a `prompt.edit` hook" (Supports: prompt.edit hook execution time) Quote: "A `.catch` handler's execution time | 1 second" (Supports: catch handler execution time) Quote: "`$.process.run` timeout | 30 seconds by default, 10 minutes at most" (Supports: process.run timeout) Quote: "Nesting depth of one tree | 32 levels below the root element" (Supports: tree nesting depth) Quote: "Elements and text children in one tree | 20,000" (Supports: elements and text children per tree) Quote: "`Raster` cells in one tree, each `Raster`'s `columns` times its `rows` | 262,144" (Supports: Raster cells per tree) Quote: "PNG or RGBA bytes of all the `Image`s in one tree | 2 MiB" (Supports: Image bytes per tree) Published: 2026-11-20T02:55:29Z Snapshot SHA-256: 68af2b8c3585c594b6fd2cf5d66f5c3b5075cfb7f1822606dc98ddb5e7b1135f (captured 2026-11-19T12:19:13Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T12:19:13Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:23:50Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:50Z Last attempt: 2026-11-20T12:23:50Z Notes and limitations: Extracted automatically from a single official source (section "Limits"). Related: https://latestn.com/tool/claude-code/pricing-and-limits/per-step-per-model-usage How do I track per-step and per-model token usage in the Claude Agent SDK? https://latestn.com/tool/claude-code/pricing-and-limits/reduce-token-usage How can I reduce token usage in Claude Code? https://latestn.com/tool/claude-code/pricing-and-limits/request-pricing-long-prompts How are requests priced against Claude apps gateway spend limits, including long-prompt rates? https://latestn.com/tool/claude-code/pricing-and-limits/limit-turns-and-spend-sdk How do I limit the number of turns or spending in a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/pricing-and-limits/marketplace-download-limits What download limits apply to files hosted in a Claude Code plugin marketplace? https://latestn.com/tool/claude-code/pricing-and-limits/measure-plugin-token-cost How do I measure the token cost of a Claude Code plugin? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:19:13Z | changed | Image bytes per tree: — → 2 MiB | [1] 2026-11-19T12:19:13Z | changed | Raster cells per tree: — → 262,144 | [1] 2026-11-19T12:19:13Z | changed | elements and text children per tree: — → 20,000 | [1] 2026-11-19T12:19:13Z | changed | tree nesting depth: — → 32 levels below the root element | [1] 2026-11-19T12:19:13Z | changed | catch handler execution time: — → 1 second | [1] 2026-11-19T12:19:13Z | changed | prompt.edit hook execution time: — → 50 milliseconds | [1] 2026-11-19T12:19:13Z | changed | catch handler time: 1 second → — | [1] 2026-11-19T12:19:13Z | changed | store limit: 4 MiB of JSON in total → — | [1] 2026-11-19T12:19:13Z | changed | http.fetch call time: 30 seconds → — | [1] 2026-11-19T12:19:13Z | changed | http.fetch response body: 4 MiB → — | [1] 2026-11-19T12:19:13Z | changed | http.fetch request body: 4 MiB, counted in characters → — | [1] 2026-11-19T12:19:13Z | changed | fs read/write limit: 4 MiB for one file → — | [1] 2026-11-19T12:19:13Z | changed | hook execution time: 10 seconds, or 50 milliseconds for a `prompt.edit` hook → 10 seconds | [1] 2026-11-15T12:24:05Z | recovered | Check succeeded again | — 2026-11-15T12:24:05Z | changed | catch handler time: — → 1 second | [1] 2026-11-15T12:24:05Z | changed | store limit: — → 4 MiB of JSON in total | [1] 2026-11-15T12:24:05Z | changed | http.fetch response body: — → 4 MiB | [1] 2026-11-15T12:24:05Z | changed | fs read/write limit: — → 4 MiB for one file | [1] 2026-11-15T12:24:05Z | changed | store size: 4 MiB of JSON in total → — | [1] 2026-11-15T12:24:05Z | changed | model.complete maxTokens: 1024 by default, up to 64,000 or the model's output limit → — | [1] 2026-11-15T12:24:05Z | changed | fs read/write: 4 MiB for one file → — | [1] 2026-11-15T12:24:05Z | changed | process.run stdout/stderr: 4 MiB each → — | [1] 2026-11-14T12:19:38Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-13T03:05:17Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/pricing-and-limits/mod-limits/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/pricing-and-limits/mod-limits POST: https://latestn.com/dispute/tool/claude-code/pricing-and-limits/mod-limits with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/pricing-and-limits/mod-limits?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What limits apply to Claude Code mods? Revision 3, last verified 2026-11-20T12:23:50Z. https://latestn.com/tool/claude-code/pricing-and-limits/mod-limits (accessed 2026-11-21T09:54:52Z). @misc{LatestN_tool_claude_code_pricing_and_limits_mod_limits_r3, title = {What limits apply to Claude Code mods?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/pricing-and-limits/mod-limits}}, note = {Revision 3; digest sha256:11600c446e57f97f; last verified 2026-11-20T12:23:50Z; accessed 2026-11-21T09:54:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/pricing-and-limits/mod-limits