claude-code
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. All original source code is the property of Anthropic.
Claude Code is a terminal-based AI coding agent built by Anthropic that helps developers write code faster through natural language commands. The agent understands your codebase, executes routine tasks, manages git workflows, and handles file operations autonomously using Claude's API. This repository contains leaked source code from Anthropic's official CLI tool, revealing a sophisticated 512,000+ line TypeScript codebase built on Bun and React/Ink. Developers can run it locally to interact with Claude directly from the terminal for software engineering tasks including code editing, shell command execution, codebase search, and multi-agent orchestration.
Key Features
Use Cases
- 01Execute complex refactoring tasks across multiple files using natural language instructions
- 02Automate git workflows including commit creation, code review, and PR comment analysis
- 03Search large codebases using semantic queries combined with ripgrep and LSP intelligence
- 04Spawn sub-agents to handle parallel development tasks with team-level orchestration
- 05Integrate external tools and data sources through MCP server connections
- 06Run scheduled coding tasks with cron triggers and proactive agent monitoring
Related Agents
View morehermes-agent
The agent that grows with you
agency-agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
openinterpreter
A coding agent for open models like Kimi K3
cline
Autonomous coding agent as an SDK, IDE extension, or CLI assistant.
claude-code — FAQ
What is Claude Code?+
Claude Code is Anthropic's official terminal-based AI agent that lets developers interact with Claude to perform software engineering tasks like editing files, running commands, searching codebases, and managing git workflows through natural language. This repository contains the leaked source code from March 2026.
How do I install and run Claude Code?+
Install Bun v1.3+ and Node.js v18+, then clone the repository and run 'npm install --legacy-peer-deps' followed by 'bun run start'. You must set the ANTHROPIC_API_KEY environment variable before running.
What are the prerequisites for using Claude Code?+
You need Bun v1.3 or later, Node.js v18 or later, and an Anthropic API key set as the ANTHROPIC_API_KEY environment variable. The tool makes API calls to Anthropic's Claude models, so usage will incur API costs.
Which AI clients or editors does Claude Code work with?+
Claude Code runs as a standalone terminal CLI tool and includes a bridge system for IDE integration with VS Code and JetBrains IDEs. It does not run inside other AI clients—it is the client itself.
Is Claude Code free to use?+
The leaked source code is available in this repository, but using Claude Code requires an Anthropic API key and will incur costs based on your API usage. The tool includes built-in cost tracking to monitor token consumption.
Can Claude Code connect to MCP servers?+
Yes, Claude Code has native Model Context Protocol support through the MCPTool and /mcp slash command, allowing you to connect external MCP servers for additional data sources and capabilities.
How do I install claude-code?+
Open the source repository on GitHub and follow its README. claude-code is a agent — MCP Agents Market links you directly to the official repo.
Is claude-code free?+
claude-code is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.