Skip to lesson
Exit
Choose ask, plan or agent in the CLI1 / 1

2 min lesson

Trace one auth fix through three modes

Run one auth diagnosis through Ask, Plan and Agent, then review the diff and focused test.

Check your understanding

Complete the practice "Cursor CLI, one auth fix across Ask, Plan and Agent".

Outcome: The session keeps the current decision trail without carrying an unrelated old task forward.

Cursor CLI, one auth fix across Ask, Plan and Agent
Read first, agree on the work, then edit and verify
Typeagent --mode=ask "@src/auth trace the expired-token sign-in failure"
DoStart a read-only session from the repository root.
SeeAsk explains the relevant path without changing a file.
Type/plan
DoConfirm the explanation against the named files, then open Plan.
SeePlan researches the change and asks for any missing decision before it proposes work.
DoReview the plan. Remove unrelated work and name the focused auth test.
SeeThe accepted plan names the files, expected behavior and check.
DoSwitch to Agent and execute only the accepted plan.
SeeAgent edits the planned files and reports the focused test result.
DoPress , read every hunk and press i if a review item needs a follow-up.
SeeThe final diff matches the plan and the focused auth test passes.
DoUse /summarize before a long continuation. Resume later only if the repository and goal still match.
SeeThe session keeps the current decision trail without carrying an unrelated old task forward.
Learn more

Optional practice

Test yourself on Trace one auth fix through three modes

QWhat proves that the three-mode auth exercise is complete?

Finish the check to continue.