Skip to content
Use Cases
AGH RuntimeUse Cases

Review a Change

Use an AGH session to inspect a code change and return durable review evidence.

Audience
Operators running durable agent work
Focus
Use Cases guidance shaped for scanability, day-two clarity, and operator context.

This flow is for a maintainer who wants a review that can be inspected after the terminal closes. The agent can run locally or inside a configured sandbox; the important part is that AGH owns the session, events, and history.

Setup

Register the repository once:

agh workspace add /Users/you/project --name project

If the review should run away from the host filesystem, attach a sandbox profile:

agh workspace edit project --sandbox daytona-dev

Flow

Start a named session

Create a session in the registered workspace so every later command can reference one durable session id.

Ask for bounded review evidence

Give the agent the files, branch, or diff boundary and ask for findings with file references, reproduction notes, and residual risk.

Watch the event stream

Follow events while the agent reads files, calls tools, and produces output.

Read the final history

Use history after the run to see the same turns without relying on terminal scrollback.

agh session new --workspace project --agent reviewer --name review-checkout -o json
agh session prompt sess_1234 "Review the current change. Return only actionable findings with file paths and evidence."
agh session events sess_1234 --follow
agh session history sess_1234

Evidence to keep

EvidenceCommandWhy it matters
Session identity and statusagh session status sess_1234 -o jsonShows workspace, agent, status, failure, and sandbox metadata.
Tool and model activityagh session events sess_1234 --last 50Shows whether the agent actually inspected the right surfaces.
Review output by turnagh session history sess_1234Gives a durable transcript to paste into a PR or release note.
Remote execution, if enabledagh session status sess_1234 -o jsonThe sandbox object proves which backend and profile were used.

Failure path

SymptomFirst checkNext page
Agent reviewed the wrong treeagh workspace info project -o jsonWorkspace Resolution
Session has no useful eventsagh session events sess_1234 --last 50 -o jsonEvent Streaming
Sandbox did not attachagh session status sess_1234 -o jsonSandbox
Follow-up prompt does not moveagh session status sess_1234 -o jsonDebug a Failed Session

When to use tasks instead

Use a plain session for one review. Use task runs when review work needs assignment, leases, retry visibility, or completion records that other agents can claim.

On this page