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. https://code.claude.com/docs/en/overview
Find a file
Chris Lloyd 1718a57495
Fix issues being auto-closed despite human activity (#26360)
The sweep script was closing issues based solely on when a lifecycle label
was applied, ignoring any human comments posted after the label. This caused
active issues (like #11792) to be closed even when users responded to the
stale warning.

Three changes:

1. Teach the triage bot about `stale` and `autoclose` labels so it removes
   them when a human comments on the issue.

2. Add a safety net in `closeExpired()` that checks for non-bot comments
   posted after the lifecycle label was applied — if any exist, skip closing.

3. Extend the 10-upvote protection (which previously only applied to
   enhancements) to all issue types, in both `markStale()` and
   `closeExpired()`.

Fixes #16497

## Test plan

Trace through scenarios manually:
- Issue with stale label + human comment after → triage removes label;
  sweep skips even if triage hasn't run yet (safety net)
- Issue with stale label + no human comment → closes as before
- Issue with 10+ upvotes of any type → never marked stale or closed

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-17 10:53:20 -08:00
.claude/commands fix(security): Remove overly broad gh api permission from dedupe command (#16549) 2026-01-07 08:46:31 +05:30
.claude-plugin chore: alphabetize plugins and update README with comprehensive table 2025-11-25 15:00:24 -07:00
.devcontainer feat(devcontainer): add Claude Code extension and VS Code marketplace URLs 2025-08-27 14:18:30 -07:00
.github Fix issues being auto-closed despite human activity (#26360) 2026-02-17 10:53:20 -08:00
.vscode Claude Code 2025-02-22 09:29:29 -08:00
examples Update settings-strict.json 2026-02-01 22:44:32 -08:00
plugins ensure comments are not left if --comment is not present 2026-02-11 13:42:06 -08:00
Script Improving the robustness of prerequisite checks 2025-08-15 23:38:40 +09:00
scripts Fix issues being auto-closed despite human activity (#26360) 2026-02-17 10:53:20 -08:00
.gitattributes Squashed history of Claude Code 2025-03-10 14:01:20 -07:00
.gitignore feat: Add learning-output-style plugin 2025-11-01 15:26:34 -07:00
CHANGELOG.md chore: Update CHANGELOG.md 2026-02-17 18:53:01 +00:00
demo.gif Update demo.gif with latest recording 2025-09-29 09:50:14 -07:00
LICENSE.md Release Claude Code 1.0.0 with general availability 2025-05-22 10:21:29 -07:00
README.md docs: update installation instructions in README 2026-01-12 15:12:24 -08:00
SECURITY.md Squashed history of Claude Code 2025-03-10 14:01:20 -07:00

Claude Code

npm

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.

Learn more in the official documentation.

Get started

Note

Installation via npm is deprecated. Use one of the recommended methods below.

For more installation options, uninstall steps, and troubleshooting, see the setup documentation.

  1. Install Claude Code:

    MacOS/Linux (Recommended):

    curl -fsSL https://claude.ai/install.sh | bash
    

    Homebrew (MacOS/Linux):

    brew install --cask claude-code
    

    Windows (Recommended):

    irm https://claude.ai/install.ps1 | iex
    

    WinGet (Windows):

    winget install Anthropic.ClaudeCode
    

    NPM (Deprecated):

    npm install -g @anthropic-ai/claude-code
    
  2. Navigate to your project directory and run claude.

Plugins

This repository includes several Claude Code plugins that extend functionality with custom commands and agents. See the plugins directory for detailed documentation on available plugins.

Reporting Bugs

We welcome your feedback. Use the /bug command to report issues directly within Claude Code, or file a GitHub issue.

Connect on Discord

Join the Claude Developers Discord to connect with other developers using Claude Code. Get help, share feedback, and discuss your projects with the community.

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

See our data usage policies.

Privacy safeguards

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.

For full details, please review our Commercial Terms of Service and Privacy Policy.