- WS file.patched → DiffView highlight trong <100ms (local)
- WS diff.ready → bật Discard / xem lịch sử
- Journal lưu hunks nên undo không cần model
Diff
Auto-apply + Inline Diff + Discard
Không có bước “approve mới ghi file”. Agent ghi thẳng, diff hiện ngay, và Discard khôi phục từ apply journal — không phụ thuộc việc model “nhớ”.
Flow
Một lần apply
Verify hash
apply_patch kiểm expected_before_hash; sai thì conflict và không ghi.
Acquire lease
Khóa file theo (project, path) để hai worker không ghi đè nhau.
Ghi + journal
Ghi disk ngay, lưu {path, before_hash, after_hash, hunks}, phát file.patched.
Discard
Discard file hoặc Discard all reset về git tip trước task.
Contract
Diff & journal
Sẵn sàng chạy nhiều account trên một project?
Bản Free Local đầy đủ Diff, multi-account và Skills. Key nằm trong Keychain của bạn.