human-in-the-loop
Skill này làm gì
Skill này hướng dẫn khi nào agent AI nên dừng lại để hỏi con người một quyết định, và cách làm yêu cầu đó rõ ràng và có thể theo dõi. Skill dành cho đội muốn agent tự chạy trừ những việc người phải quyết định.
Khi nào nên dùng
- ✓Khi một phần công việc đã xong và bạn phải quyết định có cần người phê duyệt bước tiếp theo không.
- ✓Khi một quyết định thật, như giới hạn sử dụng hoặc đánh đổi sản phẩm, cần đến tay một người.
- ✓Khi bạn thiết kế hàng đợi hoặc bảng điều khiển mà con người nhận quyết định.
Liên kết skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/human-in-the-loop/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Agent đã chạm giới hạn đăng nhập của nhà cung cấp. Quyết định xem người có cần xử lý không, và nếu có thì gửi yêu cầu quyết định có theo dõi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill phân loại mỗi phần công việc đã xong thành tiếp tục, hỏi người hoặc tạm dừng, và chỉ gửi quyết định có theo dõi khi cần đến phán đoán của người.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Human In The Loop
The primitive that treats humans as durable network participants — attention surfaces, queues, decision records, routing semantics — not as ad-hoc chat receivers.
Autonomy is not the absence of humans; it is knowing when human judgment is needed and making that handoff crisp.
Use this when
- A slice closeout needs classifying: auto-continue, human gate, or park
- A real decision needs to land in front of a human (usage limits, provider auth, roadmap tradeoff, product-intent ambiguity)
- Designing a human queue/dashboard surface
- Returning a hot potato to orchestration after human approval
Don't use this when
- The slice closeout is clean and
PROGRESS.mdalready names the next safe slice. Default RSI conveyor continues; do NOT manufacture a human gate. - The escalation is just a status update. Humans are participants for decisions, not narration.
- The next owner is another agent. Use queue-handoff, not human-in-the-loop.
The 3-class closeout classification
In a productized daemon-backed version, closeout classifies the next step BEFORE touching the human queue:
| Class | When | Action |
|---|---|---|
| auto-continue | Slice closes cleanly, next named slice in workstream plan | Mark closed; create next-owner qitem from plan |
| human gate | Genuine decision needed (usage limits, provider auth, product-intent ambiguity, roadmap tradeoff) | Create human queue item with proof + decision text + recommended default + action outcomes |
| park | Intentionally stop the conveyor (e.g., waiting on external) | Stop with reason + resumption path |
Failure modes (5)
- Human decision needed, but the rig only mentions it in chat. Decisions belong as durable attention items, not chat messages.
- Human queue item lacks enough plain-English context for a decision. Include proof + decision text + recommended default + action outcomes.
- Human response updates a file but does not wake the next owner. Approval should return the hot potato; feedback should create the next durable qitem.
- The dashboard shows too much raw rig state and hides the actual decision queue. Decision queue is the primary surface; rig state is secondary.
- A clean closeout is parked on the human even though
PROGRESS.mdalready names the next safe slice. Don't manufacture human gates.
Proof standard (both paths)
A trustworthy human-in-the-loop system proves both directions:
- Blocking gate path: real item routed to human → human decision recorded through UI → resulting hot-potato handoff wakes correct next owner
- Non-blocking closeout path: proof inspectable by human, but orchestrator continues to next named slice without manufacturing a human gate
A primitive that only wakes humans is not trustworthy. It must also know when NOT to.
Product shape (SHIPPED — Mission Control, PL-005)
This surface has shipped as Mission Control (product UI, /mission-control
route; actions via POST /api/mission-control/action). The seven verbs the
human acts with:
- approve (returns the hot potato to orchestration or the chosen owner)
- deny (reject the item)
- route (send to a different owner)
- annotate (add context without action)
- hold (intentional pause with reason)
- drop (mark not-actionable)
- handoff (hand to a specific next owner — creates the next durable qitem)
Approval returns the hot potato to orchestration or the chosen owner;
feedback creates the next durable qitem rather than only mutating the source
queue file — enforced by the shipped verbs (handoff/route create qitems).
See docs/as-built/architecture/mission-control.md.
Long-term shape
Likely needs multiple humans with different scopes, not a singleton human attention feed. Different humans own different decision domains; queue items route by scope.
See also
queue-handoffskill — durable handoff via queue items; human-in-the-loop is the human-side complementwatchdogskill — when to wake (humans included) vs no-oplooping-workflows(convention) — the looping-workflows convention covers loop closeouts; human-in-the-loop is the escape hatch
Câu hỏi thường gặp
Mọi tác vụ xong đều cần phê duyệt sao?
Không. Skill nói các lần kết thúc sạch mặc định sẽ tiếp tục và không nên tạo ra cổng con người không cần thiết.
Một cập nhật trạng thái có phải lý do để liên hệ ai đó không?
Không. Skill nói con người chỉ liên quan đến quyết định, không phải đến việc kể lại tiến trình.
Nếu bước tiếp theo thuộc về agent khác thì sao?
Skill nói nên dùng chuyển giao qua hàng đợi cho agent kia thay vì gửi yêu cầu cho con người.
Chi tiết
Mô tả gốc của tác giả
Use when classifying a slice closeout (auto-continue / human gate / park), routing a real decision to a human, or designing a human queue/dashboard surface. Treats humans as durable network participants with attention surfaces, queues, and decision records — escalation lands as a durable attention item, not a chat message. Approval is NOT required for every clean closeout; the default RSI conveyor continues unless an explicit human gate is reached.
repo: mvschwarz/openrig
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12404
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-operated-software
8.6kGiúp agent của bạn thiết kế, xây dựng hoặc gỡ lỗi một ứng dụng đang chạy có backend là agent AI, như một lớp điều khiển agent bằng Markdown hoặc JSON.
agent-operated-workflows
8.6kGiúp agent của bạn quyết định một quy trình có ranh giới nên do agent AI hay code thông thường điều khiển, và cách tiếp tục từ bằng chứng đã xác minh.
applying-a-permission-policy
8.6kGiúp agent của bạn thiết lập quyền lệnh mà agent lập trình AI dùng khi cài đặt đội, để các lệnh thông thường chạy với ít lần xác nhận hơn.
claude-compaction-restore
8.6kGiúp agent Claude Code dựng lại bức tranh làm việc sau khi ngữ cảnh bị nén, bằng một bản đồ khôi phục đã lưu, transcript và các file nó đã chạm vào.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.