Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.251, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+12added
Lines−28removed
From line
905
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits115to this page, all time
The whole hunk
from line 905, 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 905
905905});
906906```
907907
908**Loading CLAUDE.md project instructions:**
908To load CLAUDE.md project instructions, include `"project"` in `settingSources`. See [Modify system prompts](/docs/en/agent-sdk/modifying-system-prompts#claude-md-files-for-project-level-instructions) for how CLAUDE.md loading interacts with the system prompt options.
909909
910```typescript theme={null}
911import { query } from "@anthropic-ai/claude-agent-sdk";
912
913// Load project settings to include CLAUDE.md files
914const result = query({
915 prompt: "Add a new feature following project conventions",
916 options: {
917 systemPrompt: {
918 type: "preset",
919 preset: "claude_code" // Use Claude Code's system prompt
920 },
921 settingSources: ["project"], // Loads CLAUDE.md from project directory
922 allowedTools: ["Read", "Write", "Edit"]
923 }
924});
925```
926
927910#### Settings precedence
928911
929912When multiple sources are loaded, settings are merged with this precedence (highest to lowest):
from line 2669
26862669Creates and manages a structured task list for tracking progress.
26872670
26882671<Note>
2689 On TypeScript Agent SDK 0.3.233 and later, the following tools aren't available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, or later versions of those families unless you opt in:
2672 On TypeScript Agent SDK 0.3.233 and later, the following restriction applies.
26902673
2674 The following tools aren't available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, or later versions of those families unless you opt in:
2675
26912676 * `TodoWrite`
26922677 * `TaskCreate`
26932678 * `TaskGet`
from line 3622
36373622Returns the previous and updated task lists.
36383623
36393624<Note>
3640 On TypeScript Agent SDK 0.3.233 and later, the following tools aren't available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, or later versions of those families unless you opt in:
3625 On TypeScript Agent SDK 0.3.233 and later, the following restriction applies.
36413626
3627 The following tools aren't available on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, or later versions of those families unless you opt in:
3628
36423629 * `TodoWrite`
36433630 * `TaskCreate`
36443631 * `TaskGet`
from line 3780
37933780
37943781```typescript theme={null}
37953782type ExitWorktreeOutput = {
3796 action: "keep" | "remo
3783 action: "keep" | "remove";
3784 originalCwd: string;
3785 worktreePath: string;
3786 worktreeBranch?: string;
3787 tmuxSessionName?: string;
3788 discardedFiles?: number;
3789 discardedCommits?: number;
3790 message: st
No line in this hunk matches that.