You're prompting Claude Code wrong. Here's how to do it correctly...
from Alex Finn Hosted by Alex Finn
Anthropic just released a Claude Code prompting guide. Here's the top 10 tips from itJoin the Vibe Coding Academy waitlist: vibecodingacademy.devSign up for my free newsletter: https://www.alexfinn.ai/subscribeFollow my X: https://x.com/AlexFinnMy $300k/yr AI app: https://www.creatorbuddy.io/Prompting guide:https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-4-best-practices#research-and-information-gatheringLoad up context prompt:take a look at the app and architecture. Understand deeply how it works inside and out. Ask me any questions if there are things you don't understand. This will be the basis for the rest of our conversation.Tool use summaries:After completing a task that involves tool use, provide a quick summary of the work you've doneAdjust eagerness down:Do not jump into implementation or change files unless clearly instructed to make changed. When the user's intent is ambiguous, default to providing information, doing research, and providing recommendations rather than taking action. Only proceed with edits, modifications, or implementations when the user explicitly requests them.Adjust eagerness up:By default, implement changes rather than only suggesting them. If the user's intent is unclear, infer the most useful likely action and proceed, using tools to discover any missing details instead of guessing. Try to infer the user's intent about whether a tool call (e.g. file edit or read) is intended or not, and act accordingly.Use parallel tool calls:If you intend to call multiple tools and there are no dependenciesbetween the tool calls, make all of the independent tool calls inparallel. Prioritize calling tools simultaneously whenever theactions can be done in parallel rather than sequentially. Forexample, when reading 3 files, run 3 tool calls in parallel to readall 3 files into context at the same time. Maximize use of paralleltool calls where possible to increase speed and efficiency.However, if some tool calls depend on previous calls to informdependent values like the parameters, do not call these tools inparallel and instead call them sequentially. Never use placeholdersor guess missing parameters in tool calls.Reduce hallucinations:Never speculate about code you have not opened. If the userreferences a specific file, you MUST read the file beforeanswering. Make sure to investigate and read relevant files BEFOREanswering questions about the codebase. Never make any claims aboutcode before investigating unless you are certain of the correctanswer - give grounded and hallucination-free answers.Timestamps:0:00 Intro0:26 Tip 1 explain motivations1:43 Tip 2 context windows2:57 Tip 3 load up context4:04 Tip 4 use git5:18 Tip 5 tool use summaries6:33 Tip 6 adjust eagerness8:02 Tip 7 careful about the word think9:25 Tip 8 use vision11:20 Tip 9 use parallel tool calls12:56 Tip 10 reduce hallucinations
Embed this episode
No transcript yet.