技巧精选

减少约束反而更好:Claude Code 系统提示词优化经验

This part is spot on: > "Overall, we found that we were over-constraining Claude Code...while these...

精选理由

别老想着给模型写满约束,Jerry Liu 发现拿掉 Claude Code 八成提示词模型反而更聪明。

AI 摘要

Jerry Liu 分享使用 Claude Code 的经验,指出过度约束模型会导致其无法探索未知问题。他发现移除大约 80% 的 Claude Code 系统提示词后,模型能利用上下文自行判断,效果更佳。他推荐 Opus 5 模型在 Claude Code 中表现优异。

原文 · Jerry Liu

This part is spot on: > "Overall, we found that we were over-constraining Claude Code...while these...

This part is spot on: > "Overall, we found that we were over-constraining Claude Code...while these constraints were once needed to avoid worst case scenarios, we have since found we can delete many of them and let the model use surrounding context and judgement instead." I have a tendency to write extensive prompts that cover every edge case. In the past few months I have come to increasingly come to find that this can lead to counterproductive behavior where the model addresses my specific requests, but doesn't independently provide a new perspective on the problem (explore the "unknown unknowns") The model still needs access to your complete context in order to be able to make complete decisions - it just doesn't necessarily need constraints on how to best use that context. Over time I predict we will increasingly defer to the models to help solve these unknown unknowns. FWIW I've found Opus 5 to be a fantastic model and continue to consume it heavily through Claude Code Thariq @trq212 We removed ~80% of the Claude Code system prompt for our newest models, this is what we've learned about writing system prompts, skills and Claude.MDs for them. x.com/i/article/2080… 🔗 View Quoted Tweet 💬 0 🔄 1 ❤️ 8 👀 1460 📊 2 ⚡

减少约束反而更好:Claude Code 系统提示词优化经验 · AI 热点