/ AI Agents 2026

Async Coding Agents 2026: The Agent Inbox Pattern

Mẫu agent inbox cho coding agent chạy nền, trả về thay đổi, test log, câu hỏi và điểm cần người duyệt.The agent-inbox pattern for background coding agents returning changes, test logs, questions, and review points.

coding-agentsasync-agentspull-requestsdeveloper-workflow

Nguồn tham khảo: AnhTu.devReference source: AnhTu.dev

Tổng quan

Bài viết chuyển tương tác với coding agent từ phiên chat đồng bộ sang hàng đợi công việc. Mỗi task cần workspace cô lập, acceptance criteria, budget và một gói bàn giao gồm diff, kiểm thử, giả định và câu hỏi còn mở.

Điểm chính

  • Task phải đủ nhỏ để kiểm tra nhưng đủ trọn vẹn để agent hoàn thành độc lập.
  • Không để nhiều agent ghi vào cùng worktree.
  • Agent nên dừng và hỏi khi quyết định vượt khỏi spec hoặc gây thay đổi rủi ro.
  • Inbox cần ưu tiên theo rủi ro và trạng thái cần người xử lý, không chỉ thời gian hoàn tất.

Ghi chú của mình

Mình thích ý tưởng coi đầu ra của agent là một hồ sơ review hoàn chỉnh thay vì chỉ là code đã thay đổi.

Overview

The article shifts coding-agent interaction from synchronous chat to a work queue. Each task needs an isolated workspace, acceptance criteria, budget, and a handoff containing diffs, tests, assumptions, and open questions.

Key points

  • Tasks should be independently completable yet small enough to verify.
  • Do not let multiple agents write to the same worktree.
  • Agents should stop for decisions beyond the spec or with material risk.
  • Prioritize the inbox by risk and required human action, not completion time alone.

My notes

I like treating agent output as a complete review packet rather than merely changed code.