xiaohongshu
xiaohongshu
Manage coordinator daemon tasks, approve/reject work, monitor autonomous agents. Use when user asks to delegate tasks, check task status, review agent work, manage the coordinator, or use GitHub-driven approval workflow.
Full skill instructions
Manage the coordinator daemon for autonomous task delegation, approval workflows, and monitoring agent work.
Most common usage:
# User says: "Delegate this bug fix to an agent"
# This skill will:
# 1. Check if coordinator daemon is running
# 2. Send the task via ailang messages
# 3. Monitor the task status
# 4. Guide you through approval when complete
# User says: "What tasks are pending?"
# This skill will:
# 1. Run ailang coordinator list --pending
# 2. Show interactive task explorer
# 3. Let you review diffs, logs, and approve/reject
Invoke this skill when:
scripts/check_daemon.shCheck if the coordinator daemon is running and show status.
scripts/delegate_task.sh <type> <title> <description>Send a task to the coordinator for autonomous execution.
scripts/quick_status.shShow a quick summary of pending, running, and completed tasks.
# Start coordinator + server (recommended)
make services-start
# Or just coordinator
ailang coordinator start
# Check status
ailang coordinator status
# Stop all
make services-stop
# Send a task
ailang messages send coordinator "Fix the null pointer bug in parser.go" \
--title "Bug: Parser NPE" --from "claude-code" --type bug
# Interactive task list
ailang coordinator list
# Filter by status
ailang coordinator list --pending
ailang coordinator list --running
# Approve from list: select task, press [a]
# Or directly: ailang coordinator approve <task-id>
pending → queued → running → pending_approval → completed
↘ failed
↘ rejected → [feedback] → pending (iteration 2) → running → ...
Feedback Loop (v0.6.4+): When rejecting, the task can be re-triggered with feedback up to 3 iterations. Claude uses --resume to continue with full conversation context.
When an agent has trigger_on_complete configured with auto_approve_handoffs: false, approvals are combined:
| Approval Type | Description | On Approve |
|---|---|---|
merge | Simple merge only | Merges code to dev branch |
merge_handoff | Combined merge + handoff | Merges code AND triggers next agent |
CLI display shows:
⏳ [1] [merge+handoff] → sprint-planner task-12345678
Title: Agent completed work on: Fix parser bug
What happens on approve:
session_id for continuityWhat happens on reject:
--resume <sessionId> (same context, same worktree)For tasks linked to GitHub issues, the coordinator supports a fully GitHub-native approval workflow.
GitHub Issue
↓ (import)
DESIGN STAGE → posts design doc to GitHub → needs-design-approval label
↓ (human adds: design-approved)
SPRINT STAGE → posts sprint plan to GitHub → needs-sprint-approval label
↓ (human adds: sprint-approved)
IMPLEMENTATION → posts file changes → needs-merge-approval label
↓ (human adds: merge-approved)
Changes merged, issue auto-closed
| You Add This Label | What Happens |
|---|---|
design-approved | Advances to sprint planning |
sprint-approved | Advances to implementation |
merge-approved | Merges changes, closes issue |
needs-revision | Pauses pipeline for changes |
# Import GitHub issues as tasks
ailang messages import-github
# Check which issues are being watched
tail -100 ~/.ailang/logs/coordinator.log | grep -i "watching issue"
# Fallback: approve locally if labels aren't detected
ailang coordinator approve <task-id>
# Check pending approvals
ailang coordinator pending
ailang messages send coordinator "..." --type bugailang coordinator list[c] View chat history (turn-by-turn conversation with tool calls)[d] View diff[f] Browse files[l] View logs[a] Approve - merge changes to dev branch[r] Reject - prompt for feedback, re-trigger task with context| Type | Executor | Use Case |
|---|---|---|
| bug-fix | Claude Code | Code fixes |
| feature | Claude Code | New functionality |
| docs | Gemini | Documentation |
| research | Gemini | Investigation |
| script | Shell | Deterministic workflows (v0.6.4+) |
For deterministic tasks that don't need AI inference:
# In ~/.ailang/config.yaml
coordinator:
agents:
- id: echo-demo
inbox: echo-demo
invoke:
type: script
command: "./scripts/coordinator/echo_payload.sh"
env_from_payload: true
timeout: "1m"
output_markers:
- "ECHO_COMPLETE:"
Test the demo:
ailang messages send echo-demo '{"model": "gpt5", "benchmark": "fizzbuzz"}' \
--title "Echo test" --from "user"
What happens:
{"model": "gpt5"} → env var MODEL=gpt5{"db": {"host": "x"}} → env var DB_HOST=xAILANG_TASK_ID, AILANG_MESSAGE_ID, AILANG_WORKSPACEAfter a task completes, audit what the agent actually did before approving:
# View conversation per turn (shows agent reasoning + tool calls)
ailang coordinator logs <task-id> --limit 1000 --json | python3 -c "
import json, sys
data = json.load(sys.stdin)
events = data.get('events', [])
turns = {}; tools = {}
for evt in events:
tn = evt.get('turn_num', 0); st = evt.get('stream_type', '')
if st == 'text': turns.setdefault(tn, []).append(evt.get('text', ''))
elif st == 'tool_use': tools.setdefault(tn, []).append(evt.get('tool_name', '?'))
for tn in sorted(turns.keys()):
text = ''.join(turns[tn]).strip()
if len(text) > 20:
print(f'=== Turn {tn} (tools: {\", \".join(tools.get(tn, []))}) ===')
print(text[:600]); print()
"
# View tool timeline with spans
ailang dashboard spans --task-id <task-id> --limit 200
# View git changes
ailang coordinator diff <task-id>
Audit checklist:
internal/ code or just create examples/docs?executor.model in spans - Haiku may be too weak)ailang run (runtime test) or just ailang check (compile test)?Per-agent model config (v0.8.0+):
Set model: opus in agent config for complex coding tasks:
agents:
- id: sprint-executor
model: opus
Daemon won't start: Check ailang coordinator status, then make services-stop && make services-start
Task stuck: View logs with [l] in task explorer
Worktree limit: git worktree list then git worktree remove <path> --force
GitHub labels not detected: The ApprovalWatcher may not be detecting labels. Use CLI fallback:
ailang coordinator pending # List tasks waiting for approval
ailang coordinator approve <task-id> # Approve locally (syncs label to GitHub)
No logs from ApprovalWatcher: Check coordinator logs for "GitHub approval watcher started". If missing, verify ~/.ailang/config.yaml has github_sync.enabled: true.
See resources/reference.md for complete CLI reference and advanced options.
~/.ailang/state/coordinator.dbxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience