Skip to content

Commit 6e08936

Browse files
Update Claude Code docs - 2025-09-05 | Updated: sdk__sdk-overview.md,security.md settings.md | Removed: sdk__sdk-typescript.md
1 parent eae328d commit 6e08936

5 files changed

Lines changed: 35 additions & 754 deletions

File tree

docs/docs_manifest.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -153,32 +153,26 @@
153153
"sdk__sdk-overview.md": {
154154
"original_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-overview",
155155
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-overview.md",
156-
"hash": "b0ed967b280d3b05362a9c50f206c925db6d75c8ef73449dba71c02b41d49f6e",
157-
"last_updated": "2025-08-26T18:05:59.281269"
156+
"hash": "6ad619a51b8d5f17bb81c7f8d471d9b2245d5e8c35c6b6194b4b0c9643676fd4",
157+
"last_updated": "2025-09-05T21:04:22.508910"
158158
},
159159
"sdk__sdk-python.md": {
160160
"original_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-python",
161161
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-python.md",
162162
"hash": "c7a81ed658275171bd157211bd29efef96103cac51934ff4c1ce56b0855706bf",
163163
"last_updated": "2025-08-26T21:04:06.579637"
164164
},
165-
"sdk__sdk-typescript.md": {
166-
"original_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-typescript",
167-
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/sdk/sdk-typescript.md",
168-
"hash": "39b55637cf499d67df484cee1fc1ef1ef22e559902d6961c46d7e17b0319100d",
169-
"last_updated": "2025-08-28T03:18:54.287491"
170-
},
171165
"security.md": {
172166
"original_url": "https://docs.anthropic.com/en/docs/claude-code/security",
173167
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/security.md",
174-
"hash": "58b552f95840f16b7506d56f6d9df54cd5e8d52d9c957a751c602e35d3b9302d",
175-
"last_updated": "2025-08-29T21:04:32.640465"
168+
"hash": "859dee1f761e603a2aaa8e848da6f495b15b7c4452113221a04a6c419377184f",
169+
"last_updated": "2025-09-05T21:04:23.600611"
176170
},
177171
"settings.md": {
178172
"original_url": "https://docs.anthropic.com/en/docs/claude-code/settings",
179173
"original_md_url": "https://docs.anthropic.com/en/docs/claude-code/settings.md",
180-
"hash": "a311e00d197c76fb0dfd2c360f2c00cd53e7e688195fdb411cffd2c99dc8f70c",
181-
"last_updated": "2025-08-29T21:04:33.214127"
174+
"hash": "432da98a1db2a3fdec01f290c4b67d981aa486fcce9f469a4f362eef6a2f6861",
175+
"last_updated": "2025-09-05T21:04:24.130218"
182176
},
183177
"setup.md": {
184178
"original_url": "https://docs.anthropic.com/en/docs/claude-code/setup",
@@ -231,18 +225,20 @@
231225
}
232226
},
233227
"fetch_metadata": {
234-
"last_fetch_completed": "2025-09-05T18:06:14.473418",
235-
"fetch_duration_seconds": 19.950221,
228+
"last_fetch_completed": "2025-09-05T21:04:27.837705",
229+
"fetch_duration_seconds": 22.645453,
236230
"total_pages_discovered": 37,
237-
"pages_fetched_successfully": 38,
238-
"pages_failed": 0,
239-
"failed_pages": [],
231+
"pages_fetched_successfully": 37,
232+
"pages_failed": 1,
233+
"failed_pages": [
234+
"/en/docs/claude-code/sdk/sdk-typescript"
235+
],
240236
"sitemap_url": "https://docs.anthropic.com/sitemap.xml",
241237
"base_url": "https://docs.anthropic.com",
242-
"total_files": 38,
238+
"total_files": 37,
243239
"fetch_tool_version": "3.0"
244240
},
245-
"last_updated": "2025-09-05T18:06:14.473454",
241+
"last_updated": "2025-09-05T21:04:27.837728",
246242
"base_url": "https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/docs/",
247243
"github_repository": "mnestorov/cc-docs-mirror",
248244
"github_ref": "main",

docs/sdk__sdk-overview.md

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
> Build custom AI agents with the Claude Code SDK
44
5+
## SDK Options
6+
7+
The Claude Code SDK is available in multiple forms to suit different use cases:
8+
9+
* **[Headless Mode](/en/docs/claude-code/sdk/sdk-headless)** - For CLI scripts and automation
10+
* **[TypeScript SDK](/en/docs/claude-code/sdk/sdk-typescript)** - For Node.js and web applications
11+
* **[Python SDK](/en/docs/claude-code/sdk/sdk-python)** - For Python applications and data science
12+
513
## Why use the Claude Code SDK?
614

715
Built on top of the agent harness that powers Claude Code, the Claude Code SDK provides all the building blocks you need to build production-ready agents:
@@ -29,14 +37,6 @@ Here are some example agent types you can create:
2937
* Customer support agents that resolve technical issues
3038
* Content creation assistants for marketing teams
3139

32-
## SDK Options
33-
34-
The Claude Code SDK is available in multiple forms to suit different use cases:
35-
36-
* **[Headless Mode](/en/docs/claude-code/sdk/sdk-headless)** - For CLI scripts and automation
37-
* **[TypeScript SDK](/en/docs/claude-code/sdk/sdk-typescript)** - For Node.js and web applications
38-
* **[Python SDK](/en/docs/claude-code/sdk/sdk-python)** - For Python applications and data science
39-
4040
## Core Concepts
4141

4242
### Authentication
@@ -50,6 +50,17 @@ The SDK also supports authentication via third-party API providers:
5050

5151
For detailed configuration instructions for third-party providers, see the [Amazon Bedrock](/en/docs/claude-code/amazon-bedrock) and [Google Vertex AI](/en/docs/claude-code/google-vertex-ai) documentation.
5252

53+
### Full Claude Code Feature Support
54+
55+
The SDK provides access to all the default features available in Claude Code, leveraging the same file system-based configuration:
56+
57+
* **Subagents**: Launch specialized agents stored as Markdown files in `./.claude/agents/`
58+
* **Hooks**: Execute custom commands configured in `./.claude/settings.json` that respond to tool events
59+
* **Slash Commands**: Use custom commands defined as Markdown files in `./.claude/commands/`
60+
* **Memory (CLAUDE.md)**: Maintain project context through `CLAUDE.md` files that provide persistent instructions and context
61+
62+
These features work identically to their Claude Code counterparts by reading from the same file system locations.
63+
5364
### System Prompts
5465

5566
System prompts define your agent's role, expertise, and behavior. This is where you specify what kind of agent you're building.
@@ -66,37 +77,6 @@ Control which tools your agent can use with fine-grained permissions:
6677

6778
Extend your agents with custom tools and integrations through MCP servers. This allows you to connect to databases, APIs, and other external services.
6879

69-
## Common Use Cases
70-
71-
### Automated Testing and CI/CD
72-
73-
Create agents that run tests, analyze results, and fix issues automatically in your CI/CD pipeline.
74-
75-
### Code Review and Security Audits
76-
77-
Build agents that review pull requests for security vulnerabilities, code quality, and compliance.
78-
79-
### Incident Response
80-
81-
Deploy SRE agents that diagnose production issues, analyze logs, and suggest fixes.
82-
83-
### Documentation Generation
84-
85-
Create agents that generate and maintain documentation based on your codebase.
86-
87-
### Data Analysis
88-
89-
Build agents that analyze data, generate reports, and create visualizations.
90-
91-
## Best Practices
92-
93-
* **Use JSON output format** for programmatic parsing of responses
94-
* **Handle errors gracefully** - check exit codes and implement retry logic
95-
* **Use session management** for maintaining context in multi-turn conversations
96-
* **Implement timeouts** for long-running operations
97-
* **Respect rate limits** when making multiple requests
98-
* **Test thoroughly** before deploying to production
99-
10080
## Related Resources
10181

10282
* [CLI Reference](/en/docs/claude-code/cli-reference) - Complete CLI documentation

0 commit comments

Comments
 (0)