6 questionsQuestion · Short answer
Prompt and Context Engineering
Assemble the smallest useful working set for the current step. Include the objective and output contract, trusted instructions, current workflow status, the unresolved decisions, selected evidence, and relevant tools and results. Reserve…
Prompt and Context Engineering
Store approved reusable facts and preferences in an application-owned store that enforces ownership, access, freshness, retention, and deletion. Retrieve only the authorized subset relevant to a later call and add it to that call’s active…
Prompt and Context Engineering
Prune individual tool results when their details have served their purpose. Compact when a continuing task needs a smaller representation of a substantial stretch of history. In both cases, keep the facts, open questions, and source…
Prompt and Context Engineering
Start zero-shot when the task and output rules clearly define success. Add one example when a particular format or decision boundary is unclear. Use multiple examples when Claude must distinguish varied cases or handle several meaningful…
Prompt and Context Engineering
Define the task, permitted inputs, expected evidence, output format, and missing-data behavior before drafting the prompt. In Claude's Messages API, put stable guidance in the top-level system field and the current request and approved…
Prompt and Context Engineering
Record the current prompt template and rendered failing case, identify the ambiguous instruction or example, and change one suspected component where possible. Compare the candidate and baseline on the same accepted inputs, model…