Skip to content

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.

TypeScript

Squashed history of Claude Code

8enmann555b6b5b8a5f
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 83086b7f..5c1b5d1e 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -42,9 +42,10 @@ RUN mkdir -p /workspace /home/node/.claude && \
WORKDIR /workspace
-RUN wget https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_arm64.deb && \
- sudo dpkg -i git-delta_0.18.2_arm64.deb && \
- rm git-delta_0.18.2_arm64.deb
+RUN ARCH=$(dpkg --print-architecture) && \
+ wget "https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_${ARCH}.deb" && \
+ sudo dpkg -i "git-delta_0.18.2_${ARCH}.deb" && \
+ rm "git-delta_0.18.2_${ARCH}.deb"
# Set up non-root user
USER node
@@ -66,8 +67,7 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
-x
# Install Claude
-# TODO(ben): Add this back in when we have a public release
-# RUN npm install -g @anthropic-ai/claude-code
+RUN npm install -g @anthropic-ai/claude-code
# Copy and set up firewall script
COPY init-firewall.sh /usr/local/bin/
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..819e86aa
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+* text=auto eol=lf
+*.sh text eol=lf
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..67b80ecf
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,34 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: '[BUG] '
+labels: bug
+assignees: ''
+---
+
+## Environment
+- Platform (select one):
+ - [ ] Anthropic API
+ - [ ] AWS Bedrock
+ - [ ] Google Vertex AI
+ - [ ] Other: <!-- specify -->
+- Claude CLI version: <!-- output of `claude --version` -->
+- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
+- Terminal: <!-- e.g. iTerm2, Terminal App -->
+
+## Bug Description
+<!-- A clear and concise description of the bug -->
+
+## Steps to Reproduce
+1. <!-- First step -->
+2. <!-- Second step -->
+3. <!-- And so on... -->
+
+## Expected Behavior
+<!-- What you expected to happen -->
+
+## Actual Behavior
+<!-- What actually happened -->
+
+## Additional Context
+<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
\ No newline at end of file
diff --git a/README.md b/README.md
index 6c63d9f2..9db5d6d2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
# Claude Code (Research Preview)
-![](https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat-square)
+![](https://img.shields.io/badge/Node.js-18%2B-brightgreen?style=flat-square) [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-code)
+
+[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-code.svg?style=flat-square
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.
@@ -15,18 +17,21 @@ Some of its key capabilities include:
## Get started
-<ol>
- <li>
- Run the following command in your terminal: <br />
- <code>npm install -g @anthropic-ai/claude-code</code>
- </li>
- <li>
- Navigate to your project directory and run <code>claude</code>
- </li>
- <li>
- Complete the one-time OAuth process with your Anthropic Console account.
- </li>
-</ol>
+1. If you are new to Node.js and Node Package Manager (`npm`), then it is recommended that you configure an NPM prefix for your user.
+ Instructions on how to do this can be found [here](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview#recommended-create-a-new-user-writable-npm-prefix).
+
+ *Important* We recommend installing this package as a non-privileged user, not as an administrative user like `root`.
+ Installing as a non-privileged user helps maintain your system's security and stability.
+
+2. Install Claude Code:
+
+ ```sh
+ npm install -g @anthropic-ai/claude-code
+ ```
+
+3. Navigate to your project directory and run <code>claude</code>.
+
+4. Complete the one-time OAuth process with your Anthropic Console account.
### Research Preview
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 00000000..087e9697
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,12 @@
+# Security Policy
+Thank you for helping us keep Claude Code secure!
+
+## Reporting Security Issues
+
+The security of our systems and user data is Anthropic's top priority. We appreciate the work of security researchers acting in good faith in identifying and reporting potential vulnerabilities.
+
+Our security program is managed on HackerOne and we ask that any validated vulnerability in this functionality be reported through their [submission form](https://hackerone.com/anthropic-vdp/reports/new?type=team&report_type=vulnerability).
+
+## Vulnerability Disclosure Program
+
+Our Vulnerability Program Guidelines are defined on our [HackerOne program page](https://hackerone.com/anthropic-vdp).