mirror of
https://github.com/anthropics/claude-code.git
synced 2026-02-19 04:27:33 -08:00
Compare commits
2 Commits
bcherny-pa
...
ashwin/cha
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccfdadbd44 | ||
|
|
555b6b5b8a |
@@ -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/
|
||||
|
||||
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
* text=auto eol=lf
|
||||
*.sh text eol=lf
|
||||
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -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. -->
|
||||
87
CHANGELOG.md
Normal file
87
CHANGELOG.md
Normal file
@@ -0,0 +1,87 @@
|
||||
# Changelog
|
||||
|
||||
## 0.2.61
|
||||
|
||||
- Navigate menus with vim-style keys (j/k) or bash/emacs shortcuts (Ctrl+n/p) for faster interaction
|
||||
- Enhanced image detection for more reliable clipboard paste functionality
|
||||
- Fixed an issue where ESC key could crash the conversation history selector
|
||||
|
||||
## 0.2.59
|
||||
|
||||
- Copy+paste images directly into your prompt
|
||||
- Improved progress indicators for bash and fetch tools
|
||||
- Bugfixes for non-interactive mode (-p)
|
||||
|
||||
## 0.2.54
|
||||
|
||||
- Quickly add to Memory by starting your message with '#'
|
||||
- Press ctrl+r to see full output for long tool results
|
||||
- Added support for MCP SSE transport
|
||||
|
||||
## 0.2.53
|
||||
|
||||
- New web fetch tool lets Claude view URLs that you paste in
|
||||
- Fixed a bug with JPEG detection
|
||||
|
||||
## 0.2.50
|
||||
|
||||
- New MCP "project" scope now allows you to add MCP servers to .mcp.json files and commit them to your repository
|
||||
|
||||
## 0.2.49
|
||||
|
||||
- Previous MCP server scopes have been renamed: previous "project" scope is now "local" and "global" scope is now "user"
|
||||
|
||||
## 0.2.47
|
||||
|
||||
- Press Tab to auto-complete file and folder names
|
||||
- Press Shift + Tab to toggle auto-accept for file edits
|
||||
- Automatic conversation compaction for infinite conversation length (toggle with /config)
|
||||
|
||||
## 0.2.44
|
||||
|
||||
- Ask Claude to make a plan with thinking mode: just say 'think' or 'think harder' or even 'ultrathink'
|
||||
|
||||
## 0.2.41
|
||||
|
||||
- MCP server startup timeout can now be configured via MCP_TIMEOUT environment variable
|
||||
- MCP server startup no longer blocks the app from starting up
|
||||
|
||||
## 0.2.37
|
||||
|
||||
- New /release-notes command lets you view release notes at any time
|
||||
- `claude config add/remove` commands now accept multiple values separated by commas or spaces
|
||||
|
||||
## 0.2.36
|
||||
|
||||
- Import MCP servers from Claude Desktop with `claude mcp add-from-claude-desktop`
|
||||
- Add MCP servers as JSON strings with `claude mcp add-json <n> <json>`
|
||||
|
||||
## 0.2.34
|
||||
|
||||
- Vim bindings for text input - enable with /vim or /config
|
||||
|
||||
## 0.2.32
|
||||
|
||||
- Interactive MCP setup wizard: Run "claude mcp add" to add MCP servers with a step-by-step interface
|
||||
- Fix for some PersistentShell issues
|
||||
|
||||
## 0.2.31
|
||||
|
||||
- Custom slash commands: Markdown files in .claude/commands/ directories now appear as custom slash commands to insert prompts into your conversation
|
||||
- MCP debug mode: Run with --mcp-debug flag to get more information about MCP server errors
|
||||
|
||||
## 0.2.30
|
||||
|
||||
- Added ANSI color theme for better terminal compatibility
|
||||
- Fixed issue where slash command arguments weren't being sent properly
|
||||
- (Mac-only) API keys are now stored in macOS Keychain
|
||||
|
||||
## 0.2.26
|
||||
|
||||
- New /approved-tools command for managing tool permissions
|
||||
- Word-level diff display for improved code readability
|
||||
- Fuzzy matching for slash commands
|
||||
|
||||
## 0.2.21
|
||||
|
||||
- Fuzzy matching for /commands
|
||||
31
README.md
31
README.md
@@ -1,6 +1,8 @@
|
||||
# Claude Code (Research Preview)
|
||||
|
||||

|
||||
 [![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
|
||||
|
||||
|
||||
12
SECURITY.md
Normal file
12
SECURITY.md
Normal file
@@ -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).
|
||||
Reference in New Issue
Block a user