Lesson 2 of 12 beginner

Context engineering and useful memory

পুরো repo দিলে context ভালো হয় না। দরকারি file, নিয়ম, test আর সীমা দাও।

Guess first

Pick an answer. You will see if you were right at the end of the lesson.

Which observable result defines done?

Open interactive version (quiz + challenge)

Real-world analogy

Give a mechanic the fault report and relevant service history, not every receipt in your house.

What is it?

Context engineering means selecting and maintaining the information a model needs at each step. Prompt wording is one part. Relevant code, constraints, tool output and current state also matter. A short but incomplete context can be worse than a longer precise one.

Real-world relevance

One shared support-ticket product, three optional entry points. Frontend: Supply the component, validation rules, accessibility requirements and one browser reproduction. Backend: Supply the endpoint schema, ownership policy, database constraint and one failing request. Mobile: Supply the queue, lifecycle constraints and an offline/reconnect reproduction.

Key points

Quick check

Answer from memory — scrolling up first makes it stick less.

What artifact demonstrates this lesson?

Which statement is defensible?

Code example

Task: duplicate ticket after retry
Expected: same request key creates one ticket
Frontend context: form, submit handler, browser test
Backend context: endpoint, ownership check, unique key
Mobile context: offline queue, sync adapter, retry test
Choose relevant files for YOUR stack.
Verify: run the actual project test command
Stop: no authentication redesign or deployment

Line-by-line walkthrough

  1. 1. This is a stack-neutral task brief. Select the files and verification command that exist in your own project; these labels are illustrative, not prescribed filenames.

Spot the bug

Context: fix everything and make it production-ready
Need a hint?
Which observable result defines done?
Show answer
Replace vague scope with one reproduction, expected result, file boundary and verification command.

Explain like I'm 5

পুরো repo দিলে context ভালো হয় না। দরকারি file, নিয়ম, test আর সীমা দাও।

Fun fact

A useful artifact for this lesson: State the observed failure, expected behaviour, reproduction and allowed files.

Hands-on challenge

Choose ONE stack; you do not need to build all three. Junior foundation: Write a task brief for one small bug using three relevant files. Senior extension: Compare two context packs on missing facts, rework and measured usage. Evidence: save the input, expected behaviour, actual result and one failure or limitation. Junior means basic coding and Git, not zero programming experience.

More resources

Open interactive version (quiz + challenge) Download the whole course as PDF / Word

Lock it in

← Back to course: AI-Assisted Software Engineering