task-management
Task Management
Gotchas
- Don't let Workers hallucinate on unfamiliar domains — when a task involves niche frameworks, complex APIs, or domain-specific workflows that the Worker likely lacks knowledge about, include a suggestion to use
find-skillsto search for relevant skills first. Skipping this leads to hallucinated code and wasted iterations - Delegation-first — always prefer assigning to a Worker over doing it yourself. Only self-execute when admin explicitly says "do it yourself" or the task is within your management skills
- Never @mention a Worker after recording infinite task execution — this creates a rapid-fire loop (execute → report → trigger → execute → ...) that burns tokens continuously. Triggering happens only during heartbeat
- Always use
manage-state.shto modify state.json — never edit manually with jq. The script handles atomicity, deduplication, and initialization - Every task assigned to a Worker MUST be registered in state.json — this includes coordination, research, review, and management tasks, not just coding tasks. If a task is missing from state.json, the Worker's container will be auto-stopped by idle timeout while still working
- Always push task files to MinIO before notifying Worker — Worker needs to file-sync to get the spec
- Always pull task directory from MinIO before reading results — Worker pushes results there
- Read SOUL.md before composing notifications — use the persona and language defined there
- Infinite task status is always "active", never "completed" — they repeat until explicitly cancelled
Operation Reference
Read the relevant doc before executing. Do not load all of them.
More from agentscope-ai/hiclaw
coding-cli
将编码工作委托给 Manager 持有的 AI CLI 工具(Claude Code / Gemini CLI / qodercli)执行
2channel-management
Use when determining sender identity in any room, managing trusted contacts, configuring the admin's primary notification channel, handling first-contact from a new channel, or escalating to admin across channels.
2find-skills
Discover and install agent skills from the open ecosystem. Use when you encounter an unfamiliar domain, framework, or workflow that you lack specialized knowledge about, or when your coordinator suggests searching for skills before starting a task.
2file-sync
Sync files with centralized storage. Use when your coordinator or another Worker notifies you of file updates (config changes, task files, shared data, collaboration artifacts).
2file-sync-management
Use when you need to push files to MinIO for Workers to access, pull Worker output from MinIO, or when a Worker reports they've uploaded files. Also use when notifying Workers to file-sync after writing files they need.
2mcporter
Discover and call MCP Server tools via the mcporter CLI. Use when your coordinator notifies you about new MCP tools, or when you need to call external APIs. Includes workflow for generating skill documentation for new MCP servers.
1