Skip to content

ysa refine

Continue or refine a completed task by resuming its agent session in the existing worktree.

Usage

ysa refine <task-id> <prompt> [options]

<task-id> can be a full UUID or an 8-character prefix.

Options

FlagTypeDefaultDescription
-p, --project <path>stringauto-detected git rootProject root directory
-q, --quietbooleanShow progress only, no agent output
-v, --verbosebooleanShow full output including tool calls
-i, --interactivebooleanAttach a live terminal session
--no-commitbooleanPrevent the agent from committing to git

Examples

Add to a completed task:

bash
ysa refine ab12cd34 "also add error handling for the edge case we missed"

Refine interactively:

bash
ysa refine ab12cd34 "let's review what you did" --interactive

Notes

  • Only works on tasks that completed with a Claude session ID (visible in ysa logs <id>).
  • The agent resumes in the same worktree — files the previous task created are still there.
  • The branch is automatically set to task/<task-id-prefix>.
  • ysa run — start a new task
  • ysa logs — inspect the session ID before refining