agy_close_session
Close a session and optionally delete its worktree, discarding uncommitted changes. Leaves worktree intact for manual review by default.
Instructions
Close a session. By default this only marks it closed and leaves any worktree/branch on disk for manual review; pass remove_worktree=true to also delete the worktree (irreversible, discards any uncommitted changes in it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| remove_worktree | No |