lazy documentationv0.94Contents

How to review and accept a task

You need this when an agent has finished a turn and you have to decide what happens to its work: merge it, send it back, or discard it.

Why accept works the way it does is explained in Review and accept.

Dashboard

  1. Open the task. A task waiting for you is blocked; choose Go to Current review.

    A blocked task's page with the Go to Current review button and the tab strip

  2. Read the work. The Changes tab shows the diff and Regions splits it. A protected file shows Approve and Reject buttons beside it in the diff; Accept refuses until every one is approved, and a file you reject is restored to its base version at the next unblock.

    The Changes tab with a banner "1 of 1 protected file not yet accepted" and Reject and Approve buttons on the file's diff

  3. Optionally choose Review on the task page to run a read-only agent review. You land on the Reviews tab, where its verdict is recorded.

  4. Raised items are on the task's Raised tab; Accept refuses while blocking ones are open.

    The Raised tab of a task, listing a blocking item that needs an answer

  5. On Current review, decide. The box lists what stands between you and Accept ("Before you can accept"), then offers Unblock, Ask, Accept and, below, Reject. Unblock sends the work back to the agent with your feedback; see Give feedback. If a protected merge needs the approval passphrase, Accept shows a box for it.

    The Current review tab: the "Before you can accept" box and the Unblock, Ask, Accept, Submit, Reject and Sync buttons

    Accept opens a box ("merge this work into the parent"; for a top-level task that means its target branch, which the box does not name, so check it first) with an optional reason and a tick box to merge without delivering the queued comments:

    The Accept box: an optional reason field, a tick box "Merge without delivering the 2 queued comments", and an Accept button

    Reject abandons the task and keeps its branch and history, the same as lazy reject. The box has a text field, and what you enter is recorded as the reason. To send the work back to the agent instead, use Unblock (see Give feedback).

    The Reject box

  6. Once accepted, the task's page shows its outcome and the badge changes. Close (with a reason) is on the task page for tasks you do not want to merge.

    An accepted task's page: the Outcome section with the agent report and a clean review

CLI

  1. See what changed. The diff is always the task's whole branch:

    lazy diff add-auth                 # summary
    lazy diff add-auth --full          # full diff
    lazy regions add-auth              # the change split into regions
    lazy diff add-auth --region <id> --full
    lazy diff add-auth --turn latest   # only the latest turn
    
  2. Optionally ask a separate agent to review the work. The report lands on the task, and you read it with lazy show:

    lazy review add-auth
    

    --no-wait starts the review and returns; --model and --effort apply to that review only.

  3. Decide.

    • Accept merges the work into the task's parent branch (for a top-level task, the repository's default integration branch, origin/HEAD then main, or the branch named with lazy create --parent <branch>; your current checkout is never adopted silently). Check that this is where you expect the work to land before you accept:

      lazy accept add-auth --reason "LGTM"
      

      The reason is also stored as a comment on the task. --wait waits for pending CI checks before merging.

    • Send it back with feedback: see Give feedback.

    • Reject discards the work of a task that has run. The branch and history are kept, and the task is marked abandoned:

      lazy reject add-auth --reason "Wrong approach" --yes
      
    • Close abandons a task that never ran, or one you no longer want. --reason is required:

      lazy close add-auth --reason "Superseded" --yes
      

    lazy reopen <task> brings a rejected, closed or accepted task back.

Protected files and raised items at accept

Accept refuses until you have dealt with two things.

Two more flags override a refusal on purpose: --allow-review-issues (a review left issues) and --allow-queued-comments (comments you queued were never delivered). --yes skips prompts, but never the raised-item walk or the protection passphrase.

Lazy Teams

Open the task. Changes and Regions show the diff. Under More, Ask the agent to review its work runs a read-only review. Accept, Reject and Close are in the actions area on Overview and Current review:

The Give feedback panel on the task page has an Accept tab beside Unblock and Ask:

A Lazy Teams task page with the Give feedback panel, whose tabs are Unblock, Ask and Accept