我曾是游标(Cursor)用户中的前0.01%,然后转用Claude Code 2.0。
I was a top 0.01% Cursor user, then switched to Claude Code 2.0

原始链接: https://blog.silennai.com/claude-code

本摘要详细介绍了最大化Claude能力的进阶技巧。为了防止Mac上执行长时间任务时进入休眠模式,请使用`caffeinate -dimsu`。Claude经常会总结粘贴的较长文本;查看完整提示的解决方法是使用bash历史记录(`!sleep 100`然后向上箭头)。 “Ultrathink”现在始终处于激活状态。虽然“Ralph”旨在自动化复杂任务,但它通常很繁琐,需要设置文件和仔细的提示(“你就是代理。完成工作。”)。监控单独的聊天对于Ralph的成功至关重要。 **主要功能包括:** **自定义子代理**,用于专注的任务(研究、评论),**Hooks**,用于自动化操作(例如运行Prettier),**Skills** – 可重用的代码/提示包(推荐Vercel的React skill),以及**MCP**,用于直接连接到外部服务(GitHub、Slack、数据库)。 最后,`-p`标志启用**无头模式**,用于脚本编写和自动化,非常适合PR审查或自动回复。立即开始实验;如有需要,可以使用详细指南。

一个黑客新闻的讨论集中在从 Cursor 等编码工具转向 Claude Code 2.0 的转变。发帖人是一位 Cursor 的高级用户,他切换到 Claude Code,引发了关于 AI 辅助开发未来的争论。 一个关键点是,有可能超越代码审查和函数级别的指令,而是专注于测试期望的*行为*——本质上,通过“遗传”式的试错过程生成和评估代码。然而,有人对这种方法在协作、专业的环境中是否实用表示担忧,因为代码可维护性和架构至关重要。 用户分享了他们使用 Claude Code 的不同体验,其中一人强调了将其与传统的 IDE(如 Goland)结合使用的成功工作流程。另一些人指出 Claude Code 和 WindSurf 等工具之间存在相似的代理能力,质疑其 perceived 的优势。 讨论还涉及 AI 对开发速度的长期影响,并推测有可能实现相当于 50 年开发量的成果。
相关文章

原文

On Mac, run caffeinate -dimsu to prevent your laptop from sleeping while Claude works. Start a task, close your laptop, go places.

When you paste something longer, Claude simplifies this in the terminal to [Pasted text #x +x lines]. 9/10 times I like this.

The other 10% here's my workaround: I send a bash command like !sleep 100, then I click enter on my prompt, then the up arrow. This will bring the fully expanded queued prompt into your terminal.

We used to have shiny rainbow text whenever we typed 'ultrathink' which would maximize Claude's thinking.

ultrathink old

But it's 'on' by default now.

ultrathink deprecated

Unfortunately, for almost everything, Ralph is more of a pain to get working than it's worth. Sorry to disappoint the hype.

Ralph basically puts a bunch of Claude codes into a loop and coordinates them using a prd.json and progress.txt. I do sometimes use it when I'm starting a new project.

If you are brave enough to give it a shot, the /setup-ralph command sets up all the Ralph files for you.

Ralph exits early when it detects keywords like "done", "complete", or "finished" in your progress files. Use status terms like PASSED/PENDING instead to avoid premature exits.

Also, Claude can confuse itself into thinking it's advising about Ralph rather than being the agent. Make your PROMPT.md direct: "You are the agent. Do the work."

The key to Ralph: keep an accompanying chat open to guide it and check on progress. Ralph runs in the background; you steer from the side. When starting Ralph, I tell my monitoring chat: "Sleep for 30 seconds, then check if Ralph is executing correctly. Repeat 3 times." This catches early issues before you walk away.

Custom Subagents are spawned instances that don't pollute your main context but can report back directly to it. I have a custom agents for different types of deep research, and a claude-critic agent for opinions. A friend uses a /f command in a subagent to find relevant files and context without cluttering the main agent.

Use cases: large refactoring (subagent for each logical group of files), code review pipelines (style-checker, security-scanner, test-coverage in parallel), research tasks (explore subagent for unfamiliar codebases).

Hooks execute on specific events (tool call, stop, etc.). I've experimented but nothing has stuck. One use case: running Prettier on .ts files after Claude finishes. A good mental model for when to use hooks: a) specific things you do at a certain point (like after chat) often, and b) it can be done through a bash command.

I've heard about running a "Do more" prompt when Claude finishes via the Stop hook to keep it working for hours.

Skills are folders where the LLM decides when or what to load. Files with scripts, prompts, etc. They' a superset of commands, coming with their own executable code and many potential prompt files. Use cases: code review standards, commit message conventions, database query patterns, API documentation formats. Vercel's React best practices skill is worth installing for React/Next.js projects.

MCP (Model Context Protocol) lets Claude talk to external services directly. Connect to GitHub, Slack, databases, issue trackers. Use cases: implement features from JIRA issues, query PostgreSQL directly, integrate Figma designs, draft Gmail responses, summarize Slack threads. Run /mcp to see your connections.

Advanced Concepts

Here's a guide that goes more in depth on these. I think you should get started without reading it. If you feel something is missing or you try to close the loop some other way and it doesn't work, come back and read it.

The -p flag runs Claude Code in headless mode. It runs your prompt and outputs the result without entering the interactive interface. This means you can script it, pipe output to other tools, chain it with bash commands, integrate into automated workflows.

People use this for automatic PR reviews, automatic support ticket responses, documentation updates. All logged and auditable.

联系我们 contact @ memedata.com