Skip to content
Use Cases
CompozyOS RuntimeUse Cases

Review a Change

Use a Compozy 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 Compozy owns the session, events, and history.

Setup

Register the repository once:

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

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

compozy 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.

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

Evidence to keep

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

Failure path

SymptomFirst checkNext page
Agent reviewed the wrong treecompozy workspace info project -o jsonWorkspace Resolution
Session has no useful eventscompozy session events sess_1234 --last 50 -o jsonEvent Streaming
Sandbox did not attachcompozy session status sess_1234 -o jsonSandbox
Follow-up prompt does not movecompozy 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