@anthropic-ai/claude-agent-sdk 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/README.md +18 -15
  2. package/cli.js +957 -1031
  3. package/package.json +1 -1
  4. package/sdk-tools.d.ts +0 -42
  5. package/sdk.mjs +2 -2
package/README.md CHANGED
@@ -1,41 +1,44 @@
1
- # Claude Code
1
+ # Claude Agent SDK
2
2
 
3
- ![](https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat-square) [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-code)
3
+ ![](https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat-square) [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk)
4
4
 
5
- [npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square
5
+ [npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-agent-sdk.svg?style=flat-square
6
6
 
7
- Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows -- all through natural language commands. Use it in your terminal, IDE, or tag @claude on Github.
7
+ The Claude Agent SDK enables you to programmatically build AI agents with Claude Code's capabilities. Create autonomous agents that can understand codebases, edit files, run commands, and execute complex workflows.
8
8
 
9
- **Learn more in the [official documentation](https://docs.claude.com/en/docs/claude-code/overview)**.
10
-
11
- <img src="https://github.com/anthropics/claude-code/blob/main/demo.gif?raw=1" />
9
+ **Learn more in the [official documentation](https://docs.claude.com/en/api/agent-sdk/overview)**.
12
10
 
13
11
  ## Get started
14
12
 
15
- 1. Install Claude Code:
13
+ Install the Claude Agent SDK:
16
14
 
17
15
  ```sh
18
- npm install -g @anthropic-ai/claude-code
16
+ npm install @anthropic-ai/claude-agent-sdk
19
17
  ```
20
18
 
21
- 2. Navigate to your project directory and run `claude`.
19
+ ## Migrating from the Claude Code SDK
20
+
21
+ The Claude Code SDK is now the Claude Agent SDK. Please check out the [migration guide](https://docs.claude.com/en/docs/claude-code/sdk/migration-guide) for details on breaking changes.
22
22
 
23
23
  ## Reporting Bugs
24
24
 
25
- We welcome feedback during this beta period. Use the `/bug` command to report issues directly within Claude Code, or file a [GitHub issue](https://github.com/anthropics/claude-code/issues).
25
+ We welcome your feedback. File a [GitHub issue](https://github.com/anthropics/claude-agent-sdk-typescript/issues) to report bugs or request features.
26
+
27
+ ## Connect on Discord
28
+
29
+ Join the [Claude Developers Discord](https://anthropic.com/discord) to connect with other developers building with the Claude Agent SDK. Get help, share feedback, and discuss your projects with the community.
26
30
 
27
31
  ## Data collection, usage, and retention
28
32
 
29
- When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the `/bug` command.
33
+ When you use the Claude Agent SDK, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command.
30
34
 
31
35
  ### How we use your data
32
36
 
33
- We may use feedback to improve our products and services, but we will not train generative models using your feedback from Claude Code. Given their potentially sensitive nature, we store user feedback transcripts for only 30 days.
34
-
35
- If you choose to send us feedback about Claude Code, such as transcripts of your usage, Anthropic may use that feedback to debug related issues and improve Claude Code's functionality (e.g., to reduce the risk of similar bugs occurring in the future).
37
+ See our [data usage policies](https://docs.anthropic.com/en/docs/claude-code/data-usage).
36
38
 
37
39
  ### Privacy safeguards
38
40
 
39
41
  We have implemented several safeguards to protect your data, including limited retention periods for sensitive information, restricted access to user session data, and clear policies against using feedback for model training.
40
42
 
41
43
  For full details, please review our [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) and [Privacy Policy](https://www.anthropic.com/legal/privacy).
44
+