mirror of
https://github.com/anthropics/claude-code.git
synced 2026-02-19 04:27:33 -08:00
Compare commits
35 Commits
sidb/fix-n
...
rboyce/act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78f98bb6b3 | ||
|
|
885a36faf3 | ||
|
|
eb0b297e11 | ||
|
|
6370398030 | ||
|
|
bb083eea94 | ||
|
|
d9cc2b58a2 | ||
|
|
0c3b9e94e1 | ||
|
|
3cf808d1ec | ||
|
|
e9f7c53b7c | ||
|
|
d1510f5eef | ||
|
|
715ea8ed4a | ||
|
|
0b881fcb4d | ||
|
|
9ca3c81936 | ||
|
|
4f162e6b79 | ||
|
|
e05a423901 | ||
|
|
4c9bd9cd74 | ||
|
|
0d22403ad1 | ||
|
|
931543f95f | ||
|
|
437f92b52e | ||
|
|
14c8c0df32 | ||
|
|
6767546666 | ||
|
|
5e54b4ccc1 | ||
|
|
895ce94465 | ||
|
|
7d0c29fe1a | ||
|
|
51fecc9881 | ||
|
|
8fdc766a16 | ||
|
|
26e9a5d6d3 | ||
|
|
6f27711e04 | ||
|
|
c28e7f1776 | ||
|
|
8811fc10e0 | ||
|
|
e394b39220 | ||
|
|
7b155bd8be | ||
|
|
0af8ef55f8 | ||
|
|
d337047b92 | ||
|
|
4adc8a066d |
@@ -54,8 +54,8 @@ USER node
|
||||
ENV NPM_CONFIG_PREFIX=/usr/local/share/npm-global
|
||||
ENV PATH=$PATH:/usr/local/share/npm-global/bin
|
||||
|
||||
# Set the default shell to bash rather than sh
|
||||
ENV SHELL /bin/zsh
|
||||
# Set the default shell to zsh rather than sh
|
||||
ENV SHELL=/bin/zsh
|
||||
|
||||
# Default powerline10k theme
|
||||
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.0/zsh-in-docker.sh)" -- \
|
||||
|
||||
@@ -88,7 +88,6 @@ echo "Host network detected as: $HOST_NETWORK"
|
||||
iptables -A INPUT -s "$HOST_NETWORK" -j ACCEPT
|
||||
iptables -A OUTPUT -d "$HOST_NETWORK" -j ACCEPT
|
||||
|
||||
# Set default policies to DROP first
|
||||
# Set default policies to DROP first
|
||||
iptables -P INPUT DROP
|
||||
iptables -P FORWARD DROP
|
||||
|
||||
2
.github/workflows/claude-issue-triage.yml
vendored
2
.github/workflows/claude-issue-triage.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
issues: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
|
||||
- name: Run Claude Issue Triage
|
||||
uses: ./.github/actions/claude-issue-triage-action
|
||||
|
||||
37
.github/workflows/claude.yml
vendored
Normal file
37
.github/workflows/claude.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Claude Code
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review_comment:
|
||||
types: [created]
|
||||
issues:
|
||||
types: [opened, assigned]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
|
||||
jobs:
|
||||
claude:
|
||||
if: |
|
||||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
|
||||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
|
||||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
issues: read
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run Claude Code
|
||||
id: claude
|
||||
uses: anthropics/claude-code-action@beta
|
||||
with:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
|
||||
75
CHANGELOG.md
75
CHANGELOG.md
@@ -1,5 +1,80 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0.11
|
||||
|
||||
- Claude Code can now also be used with a Claude Pro subscription
|
||||
- Added /upgrade for smoother switching to Claude Max plans
|
||||
- Improved UI for authentication from API keys and Bedrock/Vertex/external auth tokens
|
||||
- Improved shell configuration error handling
|
||||
- Improved todo list handling during compaction
|
||||
|
||||
## 1.0.10
|
||||
|
||||
- Added markdown table support
|
||||
- Improved streaming performance
|
||||
|
||||
## 1.0.8
|
||||
|
||||
- Fixed Vertex AI region fallback when using CLOUD_ML_REGION
|
||||
- Increased default otel interval from 1s -> 5s
|
||||
- Fixed edge cases where MCP_TIMEOUT and MCP_TOOL_TIMEOUT weren't being respected
|
||||
- Fixed a regression where search tools unnecessarily asked for permissions
|
||||
- Added support for triggering thinking non-English languages
|
||||
- Improved compacting UI
|
||||
|
||||
## 1.0.7
|
||||
|
||||
- Renamed /allowed-tools -> /permissions
|
||||
- Migrated allowedTools and ignorePatterns from .claude.json -> settings.json
|
||||
- Deprecated claude config commands in favor of editing settings.json
|
||||
- Fixed a bug where --dangerously-skip-permissions sometimes didn't work in --print mode
|
||||
- Improved error handling for /install-github-app
|
||||
- Bugfixes, UI polish, and tool reliability improvements
|
||||
|
||||
## 1.0.6
|
||||
|
||||
- Improved edit reliability for tab-indented files
|
||||
- Respect CLAUDE_CONFIG_DIR everywhere
|
||||
- Reduced unnecessary tool permission prompts
|
||||
- Added support for symlinks in @file typeahead
|
||||
- Bugfixes, UI polish, and tool reliability improvements
|
||||
|
||||
## 1.0.4
|
||||
|
||||
- Fixed a bug where MCP tool errors weren't being parsed correctly
|
||||
|
||||
## 1.0.1
|
||||
|
||||
- Added `DISABLE_INTERLEAVED_THINKING` to give users the option to opt out of interleaved thinking.
|
||||
- Improved model references to show provider-specific names (Sonnet 3.7 for Bedrock, Sonnet 4 for Console)
|
||||
- Updated documentation links and OAuth process descriptions
|
||||
|
||||
## 1.0.0
|
||||
|
||||
- Claude Code is now generally available
|
||||
- Introducing Sonnet 4 and Opus 4 models
|
||||
|
||||
## 0.2.125
|
||||
|
||||
- Breaking change: Bedrock ARN passed to `ANTHROPIC_MODEL` or `ANTHROPIC_SMALL_FAST_MODEL` should no longer contain an escaped slash (specify `/` instead of `%2F`)
|
||||
- Removed `DEBUG=true` in favor of `ANTHROPIC_LOG=debug`, to log all requests
|
||||
|
||||
## 0.2.117
|
||||
|
||||
- Breaking change: --print JSON output now returns nested message objects, for forwards-compatibility as we introduce new metadata fields
|
||||
- Introduced settings.cleanupPeriodDays
|
||||
- Introduced CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var
|
||||
- Introduced --debug mode
|
||||
|
||||
## 0.2.108
|
||||
|
||||
- You can now send messages to Claude while it works to steer Claude in real-time
|
||||
- Introduced BASH_DEFAULT_TIMEOUT_MS and BASH_MAX_TIMEOUT_MS env vars
|
||||
- Fixed a bug where thinking was not working in -p mode
|
||||
- Fixed a regression in /cost reporting
|
||||
- Deprecated MCP wizard interface in favor of other MCP commands
|
||||
- Lots of other bugfixes and improvements
|
||||
|
||||
## 0.2.107
|
||||
|
||||
- CLAUDE.md files can now import other files. Add @path/to/file.md to ./CLAUDE.md to load additional files on launch
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
Claude Code is a Beta research preview per our [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms). If Customer chooses to send us feedback about Claude Code, such as transcripts of Customer Claude Code usage, Anthropic may use that feedback to debug related issues or to improve Claude Code’s functionality (e.g., to reduce the risk of similar bugs occurring in the future). Anthropic will not train models using feedback from Claude Code.
|
||||
|
||||
© Anthropic PBC. All rights reserved. Use is subject to Anthropic's [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms).
|
||||
|
||||
45
README.md
45
README.md
@@ -1,53 +1,34 @@
|
||||
# Claude Code (Research Preview)
|
||||
# Claude Code
|
||||
|
||||
 [![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.
|
||||
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.
|
||||
|
||||
Some of its key capabilities include:
|
||||
**Learn more in the [official documentation](https://docs.anthropic.com/en/docs/claude-code/overview)**.
|
||||
|
||||
- Edit files and fix bugs across your codebase
|
||||
- Answer questions about your code's architecture and logic
|
||||
- Execute and fix tests, lint, and other commands
|
||||
- Search through git history, resolve merge conflicts, and create commits and PRs
|
||||
|
||||
**Learn more in the [official documentation](https://docs.anthropic.com/en/docs/agents/claude-code/introduction)**.
|
||||
<img src="./demo.gif" />
|
||||
|
||||
## Get started
|
||||
|
||||
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/claude-code/troubleshooting#recommended-solution-create-a-user-writable-npm-prefix).
|
||||
1. Install Claude Code:
|
||||
|
||||
*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.
|
||||
```sh
|
||||
npm install -g @anthropic-ai/claude-code
|
||||
```
|
||||
|
||||
2. Install Claude Code:
|
||||
|
||||
```sh
|
||||
npm install -g @anthropic-ai/claude-code
|
||||
```
|
||||
2. Navigate to your project directory and run `claude`.
|
||||
|
||||
3. Navigate to your project directory and run <code>claude</code>.
|
||||
## Reporting Bugs
|
||||
|
||||
4. Complete the one-time OAuth process with your Anthropic Console account.
|
||||
We welcome your feedback. Use the `/bug` command to report issues directly within Claude Code, or file a [GitHub issue](https://github.com/anthropics/claude-code/issues).
|
||||
|
||||
### Research Preview
|
||||
|
||||
We're launching Claude Code as a beta product in research preview to learn directly from developers about their experiences collaborating with AI agents. Our aim is to learn more about how developers prefer to collaborate with AI tools, which development workflows benefit most from working with the agent, and how we can make the agent experience more intuitive.
|
||||
|
||||
This is an early version of the product experience, and it's likely to evolve as we learn more about developer preferences. Claude Code is an early look into what's possible with agentic coding, and we know there are areas to improve. We plan to enhance tool execution reliability, support for long-running commands, terminal rendering, and Claude's self-knowledge of its capabilities -- as well as many other product experiences -- over the coming weeks.
|
||||
|
||||
### Reporting Bugs
|
||||
|
||||
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).
|
||||
|
||||
### Data collection, usage, and retention
|
||||
## Data collection, usage, and retention
|
||||
|
||||
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.
|
||||
|
||||
#### How we use your data
|
||||
### How we use your data
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user