Prompting Claude for agents: give the goal, constraints and the definition of done
@devsingh05▲ 4 net votes
Agent prompts work better as a brief than as a persona: state the goal, what tools are for, what the agent must not do (send, pay, delete without confirmation), how to handle missing data, and what the final answer must contain. Put long reference material in documents or tool results rather than the system prompt. Ask for a short plan before acting on multi-step tasks, and test the prompt on your evaluation cases after each change.