feat: dashboard real-time con aggiornamento incrementale
- Buffer locale samples[] per aggiornamenti real-time - Poll /api/status ogni 10 secondi - Aggiunge nuovi campioni senza ricaricare history - Aggiunge AGENTS.md per istruzioni agenti OpenCode - Aggiunge team agenti in .opencode/agents/
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
---
|
||||
name: work-coordinator
|
||||
description: "Work Coordinator — assegnazione e coordinamento sub-agenti"
|
||||
allowed-tools:
|
||||
- Read
|
||||
- Write
|
||||
- Task
|
||||
- AskUserQuestion
|
||||
---
|
||||
|
||||
<objective>
|
||||
Assegna task a sub-agenti esecutori e coordina l'esecuzione parallela e sequenziale.
|
||||
</execution_mode>
|
||||
|
||||
| Mode | Description | Use Case |
|
||||
|------|-------------|---------|
|
||||
| Sequential | Agent B dopo A | Dependencies |
|
||||
| Parallel | A + B insieme | Indipendenti |
|
||||
| Wave | A → wait → B → wait → C | Iterative |
|
||||
</execution_mode>
|
||||
|
||||
<sub_agent_assignments>
|
||||
| Step | Agent | Task |
|
||||
|------|-------|------|
|
||||
| 1 | code-explorer | Trova file/modifiche |
|
||||
| 2 | code-editor | Scrivi/modifica |
|
||||
| 3 | code-reviewer | Audit |
|
||||
| 4 | test-runner | Verifica |
|
||||
</sub_agent_assignments>
|
||||
|
||||
<coordination_flow>
|
||||
## Sequential
|
||||
Step 1 → completato → Step 2 → completato → Step 3
|
||||
|
||||
## Parallel
|
||||
Step 1 → Step 2 → Step 3 (tutti insieme)
|
||||
Wait for all complete → Report
|
||||
|
||||
## Wave
|
||||
Wave 1: [A, B] → wait → Wave 2: [C] → wait → Wave 3: [D]
|
||||
</coordination_flow>
|
||||
|
||||
<command_syntax>
|
||||
## Assign to sub-agent
|
||||
```bash
|
||||
Task(description="...", subagent_type="explorer|editor|reviewer|tester")
|
||||
```
|
||||
|
||||
## Parallel execution
|
||||
Spawn multiple Task calls in parallel
|
||||
|
||||
## Wait for completion
|
||||
B wait for A completion = task_id passed
|
||||
</command_syntax>
|
||||
|
||||
<result_aggregation>
|
||||
1. Collect output from each sub-agent
|
||||
2. Merge in unified report
|
||||
3. Identify blockers
|
||||
4. Propose next actions
|
||||
</result_aggregation>
|
||||
|
||||
<when_to_use>
|
||||
- Assegnare task a sub-agent
|
||||
- Coordinamento workflow
|
||||
- Aggregazione risultati
|
||||
</when_to_use>
|
||||
Reference in New Issue
Block a user