You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Claude Code v1.0.108 - SDK Hooks and Permission Control
🔧 Major SDK enhancements:
- Added TypeScript/JS lifecycle hooks for PreToolUse, PostToolUse, etc.
- Enhanced canUseTool permission control with input modification
- Full Claude Code feature support documentation (subagents, hooks, slash commands)
- Improved SDK architecture and type safety
🛡️ Security updates:
- Clarified write access restrictions and permission boundaries
🛠️ Tool changes:
- Removed LS tool from available tools list
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: content/anthropic-blog/engineering/claude-code-best-practices.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Claude Code is intentionally low-level and unopinionated, providing close to raw
9
9
10
10
This post outlines general patterns that have proven effective, both for Anthropic's internal teams and for external engineers using Claude Code across various codebases, languages, and environments. Nothing in this list is set in stone nor universally applicable; consider these suggestions as starting points. We encourage you to experiment and find what works best for you!
11
11
12
-
_Looking for more detailed information? Our comprehensive documentation at [claude.ai/code](https://claude.ai/redirect/website.v1.33c33977-ff7a-4ee3-a942-4474e8555f53/code)__covers all the features mentioned in this post and provides additional examples, implementation details, and advanced techniques._
12
+
_Looking for more detailed information? Our comprehensive documentation at [claude.ai/code](https://claude.ai/redirect/website.v1.9c12b785-b9e6-48bf-b1ff-0b48423aca71/code)__covers all the features mentioned in this post and provides additional examples, implementation details, and advanced techniques._
Copy file name to clipboardExpand all lines: content/claude-code-docs/sdk/sdk-overview.md
+19-39Lines changed: 19 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,14 @@
2
2
3
3
> Build custom AI agents with the Claude Code SDK
4
4
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
+
5
13
## Why use the Claude Code SDK?
6
14
7
15
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:
29
37
* Customer support agents that resolve technical issues
30
38
* Content creation assistants for marketing teams
31
39
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
-
40
40
## Core Concepts
41
41
42
42
### Authentication
@@ -50,6 +50,17 @@ The SDK also supports authentication via third-party API providers:
50
50
51
51
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.
52
52
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
+
53
64
### System Prompts
54
65
55
66
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:
66
77
67
78
Extend your agents with custom tools and integrations through MCP servers. This allows you to connect to databases, APIs, and other external services.
68
79
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
0 commit comments