Files
picoclaw/docs/vi/spawn-tasks.md
T
BeaconCat 363861c917 docs: restructure READMEs and add i18n documentation (#1729)
Restructure all 6 README files (en, zh, ja, fr, pt-br, vi) from
~1200-1580 lines down to ~250 lines each. Long sections (Chat Apps,
Providers, Configuration, Docker, Spawn Tasks, Troubleshooting, Tools)
are extracted into dedicated docs under docs/{lang}/ subdirectories.

Changes:
- Split README content into 7 sub-documents per language (42 new files)
- Update News section with v0.2.3/v0.2.1/v0.2.0/20K milestones
- Add 3 new Features (MCP Support, Vision Pipeline, Smart Routing)
- Complete CLI reference (14 commands, was 7)
- Fix Go badge 1.21+ -> 1.25+ (matches go.mod)
- Add LoongArch to architecture badge
- Fix Install section: hardcoded v0.1.1 -> latest/download URL
- Add Termux GitHub links
- Fix currency symbol placement ($599 not 599$)
- Add missing channels (Feishu, Slack, IRC, OneBot, MaixCam, Pico)
- Add missing providers (Kimi, Minimax, Avian, Mistral, Longcat, ModelScope)
- Add missing security docs (allow_read/write_paths, allow_remote, symlink)
- Remove incorrect azure from Providers table (azure uses model_list only)
- Cross-verified all claims against source code

Co-authored-by: BeaconCat <BeaconCat@users.noreply.github.com>
2026-03-18 15:26:39 +08:00

2.0 KiB

🔄 Tác Vụ Bất Đồng Bộ và Spawn

Quay lại README

Tác Vụ Nhanh (phản hồi trực tiếp)

  • Báo cáo thời gian hiện tại

Tác Vụ Dài (sử dụng spawn cho bất đồng bộ)

  • Tìm kiếm web tin tức AI và tóm tắt
  • Kiểm tra email và báo cáo tin nhắn quan trọng

**Hành vi chính:**

| Feature                 | Description                                               |
| ----------------------- | --------------------------------------------------------- |
| **spawn**               | Creates async subagent, doesn't block heartbeat           |
| **Independent context** | Subagent has its own context, no session history          |
| **message tool**        | Subagent communicates with user directly via message tool |
| **Non-blocking**        | After spawning, heartbeat continues to next task          |

#### Cách Giao Tiếp Subagent Hoạt Động

Heartbeat được kích hoạt ↓ Agent đọc HEARTBEAT.md ↓ Cho tác vụ dài: spawn subagent ↓ ↓ Tiếp tục tác vụ tiếp theo Subagent làm việc độc lập ↓ ↓ Tất cả tác vụ hoàn thành Subagent sử dụng công cụ "message" ↓ ↓ Phản hồi HEARTBEAT_OK Người dùng nhận kết quả trực tiếp


Subagent có quyền truy cập công cụ (message, web_search, v.v.) và có thể giao tiếp với người dùng độc lập mà không cần qua agent chính.

**Cấu hình:**

```json
{
  "heartbeat": {
    "enabled": true,
    "interval": 30
  }
}
Option Default Description
enabled true Enable/disable heartbeat
interval 30 Check interval in minutes (min: 5)

Biến môi trường:

  • PICOCLAW_HEARTBEAT_ENABLED=false để tắt
  • PICOCLAW_HEARTBEAT_INTERVAL=60 để thay đổi khoảng thời gian