Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.291, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 6 Oct 2026 03:21 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 6 Oct 2026 03:37 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
2,097
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits93to this page, all time
The whole hunk
from line 2097, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 2097
20972097
20982098## Hook Types
20992099
2100For a comprehensive guide on using hooks with examples and common patterns, see the [Hooks guide](/docs/en/agent-sdk/hooks).
2100For a guide on using hooks with examples and common patterns, see the [Hooks guide](/docs/en/agent-sdk/hooks).
21012101
21022102### `HookEvent`
21032103
from line 3057
30573057};
30583058```
30593059
3060Powerful search tool built on ripgrep with regex support.
3060Search tool built on ripgrep with regex support.
30613061
30623062### TaskStop
30633063
from line 5407
54075407 resetsAt?: number;
54085408 utilization?: number;
54095409 errorCode?: "credits_required";
5410 canUserPurchaseCredits?:
5410 canUserPurchaseCredits?: boolean;
5411 hasCharge
No line in this hunk matches that.