Skip to main content
AI-PAIR-PROGRAMMING5 MIN READ

Context Packets Beat Chat Scrolls

Use SBAR to package code context for an AI pairing prompt.

The move: give the assistant a handoff packet. Situation Name the current failure and where it lives. Keep it concrete: route, job, component, command, or failing test. Background Add the context the model cannot infer: recent changes, relevant files, architectural rule, data shape, environment, and non-goals. Assessment State your best hypothesis or what you do not yet know. This helps the assistant reason with you instead of restarting from zero. Recommendation Ask for the next useful move. Examples: list likely causes, propose a failing test, compare two fixes, or draft a patch limited to one file.

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us