TOKREPO · 工具
Claude Code logo
CLI · Anthropic

Claude Code

claude.com

它是什么

Claude Code 是 Anthropic 官方的 CLI 编码 agent。它跑在你的终端里 —— 任何 shell、任何项目 —— 让 Claude 能读文件、跑命令、改代码、编排跨多步的长任务。2024 年底 Boris Cherny 带的小团队发布,成了 "agent 在你真实环境里干活,不是沙盒" 的参考实现。

什么时候应该用它:

  • 想要 headless agent 跑(CI、cron、长重构)
  • 需要真 shell / 真文件系统 / 真 git —— 不是网页沙盒
  • 想用 subagent / slash 命令 / hook 拼工作流,不写大 prompt

它为什么突出

功能 给你什么
原生 MCP 一等公民 Model Context Protocol —— 生态里每个 MCP server 都能用
Subagent 体系 .claude/agents/*.md 文件,Claude 自动派发
Slash 命令 .claude/commands/*.md,带名字带参数的 prompt
Hook 工具调用事件触发 shell 命令(格式化、linter、审计日志)
插件市场 越来越大的市场,含 Anthropic 官方插件如 Ralph Wiggum
Headless 模式 --print / --continue / --resume 给 CI 和脚本用
1M context Opus 4.6 / 4.7 带 1M token 窗口处理大代码库

怎么装

# macOS / Linux / WSL
curl -fsSL https://claude.com/install | bash

# 或者 npm
npm install -g @anthropic-ai/claude-code

装完在任意项目目录跑 claude。首次启动会要 Anthropic API key(Pro plan 或按量)并写一份 .claude/settings.json 模板。

在 Claude Code 里装啥

Claude Code 表面被刻意做小 —— 价值来自你往 .claude/ 里放的东西。三个 pack 覆盖第一天起手套:

  • MCP 服务器全家桶 —— Chrome DevTools / Postgres / Filesystem / GitHub 等
  • Boris Cherny 文件夹 —— Ralph Wiggum loop + code-simplifier + 5 个社区 subagent
  • Claude Code 子代理精选 —— 130 集合 + 8 个生产精选

tokrepo install 装这三个,就有了多数资深 Claude Code 用户起步的基线。

常见坑

  • Ralph Wiggum loop 忘 --max-iterations —— token 烧穿风险,永远要设上限
  • MCP scope 设到 home —— agent 会读 ~/.ssh/,永远传项目根
  • --continue 配上改过的 prompt —— 想保对话改指示,用 --resume 才安全
  • Hook 脚本卡在 stdin —— Claude Code 会等它;shell hook 务必显式关 stdin
10个资产·6个 skill·3个 config·1个 MCP
全部资产

10 个资产适配 Claude Code

Config#01
Claude Code Templates — 600+ Agents, Commands & MCPs

Ready-to-use Claude Code configurations: 600+ agents, 200+ commands, 55+ MCPs, and project templates. Install any template with one command.

by TokRepo Curated·342 views
$ tokrepo install claude-code-templates-600-agents-commands-mcps-1cf2f5bc
MCP#02
Pal MCP Server — Multi-Model AI Gateway for Claude Code

MCP server that lets Claude Code use Gemini, OpenAI, Grok, and Ollama as a unified AI dev team. Features model routing, CLI-to-CLI bridge, and conversation continuity across 7+ providers.

by TokRepo Curated·260 views
$ tokrepo install pal-mcp-server-multi-model-ai-gateway-claude-code-09c904b2
Skill#03
Claude SEO — Complete SEO Skill for Claude Code

Universal SEO analysis skill with 15 sub-skills and 12 parallel subagents. Covers technical SEO, E-E-A-T, schema markup, GEO/AEO, local SEO, Google APIs, and PDF reporting. MIT license, 4,000+ stars.

by Skill Factory·165 views
$ tokrepo install claude-seo-complete-seo-skill-claude-code-cb068086
Skill#04
CC Status Board — Smart Status Bar for Claude Code

Add a context meter, AI asset discovery, and session info to your Claude Code status bar. Scans 300+ installed assets (skills, agents, MCP, plugins) and surfaces the most relevant ones as you type. Zero token cost, 100% local.

by henuwangkai·164 views
$ tokrepo install cc-status-board-smart-status-bar-claude-code-e7e9ac68
Skill#05
Get Shit Done (GSD) — Meta-Prompting Dev System for Claude Code

A spec-driven development system with 48.6k GitHub stars. Adds phase-based planning, multi-agent execution, verification gates, and state persistence to Claude Code, Cursor, Gemini CLI and 9 more runtimes. Install with one npx command.

by henuwangkai·150 views
$ tokrepo install get-shit-done-gsd-meta-prompting-dev-system-claude-code-e108cf5c
Config#06
Claude Code Hooks — Automate Pre/Post Task Actions

Complete guide to Claude Code hooks for automating actions before and after tool calls. Set up linting, testing, notifications, and custom validation with shell commands.

by Skill Factory·135 views
$ tokrepo install claude-code-hooks-automate-pre-post-task-actions-ba645a85
Skill#07
Claude Code Agent: K8s Specialist — Kubernetes Operations

Claude Code agent for Kubernetes. Deployment configs, helm charts, troubleshooting, scaling, monitoring, and cluster management.

by Skill Factory·131 views
$ tokrepo install claude-code-agent-k8s-specialist-kubernetes-operations-cc023b17
Skill#08
Awesome Claude Code Subagents — 130+ Specialized Agents

Install 130+ specialized Claude Code subagents across 10 categories: core dev, language experts, infra, security, data/AI, DevEx, and business. Plugin-based with 16.7K GitHub stars.

by Skill Factory·130 views
$ tokrepo install awesome-claude-code-subagents-130-specialized-agents-0929e53d
Config#09
Claude Code CLAUDE.md — Best Practices Template

Production-tested CLAUDE.md template for Claude Code projects. Covers coding conventions, test requirements, git workflow, and project-specific AI instructions.

by Skill Factory·122 views
$ tokrepo install claude-code-claude-md-best-practices-template-b152c845
Skill#10
Ralph Wiggum — Anthropic Official Autonomous Loop Plugin

Official Anthropic plugin that turns Claude Code into an autonomous loop. Adds /ralph-loop and /cancel-ralph for long-running self-improving task execution.

by Anthropic·66 views
$ tokrepo install ralph-wiggum-anthropic-official-autonomous-loop-plugin-5920075d
FAQ

常见问题

Claude Code 免费吗?

Claude Code 本身免费开源。你为消耗的 Claude API token 付费 —— 要么用 Anthropic Pro/Team 订阅(月度 token 配额),要么按量付费。价格见 claude.com/pricing。

Claude Code 在 Windows 上能用吗?

通过 WSL2 可以。原生 Windows 支持 2026 年初发,但 WSL2 仍是最顺的,因为 Claude Code 的 hook 和工具调用走 POSIX shell 约定。

Claude Code 跟 claude.ai 网页版有啥区别?

claude.ai 是聊天界面。Claude Code 是 agent —— 能读你的文件、跑 shell 命令、改代码、在真实环境里链多步动作。Claude Code 用的是同样的模型(Opus / Sonnet),只是外面套了 agent 框架。

Claude Code 能配 Gemini 或 GPT 吗?

官方不行 —— 出厂指向 Anthropic API。社区项目允许接 OpenRouter 或本地模型,但跟 Claude Code 工具调用格式的兼容性看具体工具。官方路径就是 Anthropic 模型。

Claude Code 能处理 monorepo 吗?

能。1M context 的 Opus 4.7 build 一次会话能处理约 50 万行代码的仓库。再大就用 subagent 切到具体路径,或者用 search-specialist subagent 走检索后再改的流。

更多工具

回首页浏览全部工具

8 个工具精选 · favicon 真实 logo · 按类型聚合

返回工具总览