Langsung ke konten
Skillpedia
Agen260k · #441

dynamic-workflow

Fungsinya

Skill ini menyusun pekerjaan besar dengan banyak bagian serupa, seperti satu tugas per file atau per endpoint, sebagai skrip yang melacak setiap hasil. Skill ini ditujukan bagi pengembang yang menjalankan pekerjaan batch besar bersama agent Hermes.

Kapan dipakai

  • ✓Saat sebuah tugas memiliki unit terpisah lebih banyak daripada yang dapat ditampung satu percakapan, misalnya puluhan file.
  • ✓Ketika Anda ingin beberapa putaran percobaan diperiksa oleh peninjau terpisah.
  • ✓Ketika refaktor atau perbaikan besar harus dibagi menjadi gelombang pekerja paralel.

Link skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Perbarui penanganan error di semua 60 file endpoint API, dan periksa setiap file sebelum Anda melapor kembali.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menulis skrip yang menyimpan rencana dan perulangannya, mengirim unit pekerjaan ke agent pembantu secara paralel, dan mencatat setiap hasil ke disk. Hanya hasil yang sudah terverifikasi yang kembali ke percakapan utama.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Dynamic Workflow Skill

Runs large fan-out work as a workflow: the plan, the loop and every intermediate result live in a script and on disk, so the parent's context holds only verified results. Covers one-shot fan-outs, adversarial convergence (attempts + refuters), and multi-wave campaigns that integrate dozens of worker branches. It does not make delegate_task durable across restarts; that is the kanban swarm's job.

When to Use

Reach for it when the unit of work is clear (a file, an endpoint, a record) and there are more units than one context can hold. Skip it for under ~10 units or for serial chains. For a refactor or fix campaign on hermes-agent itself, load hermes-agent (the dev workflow) alongside; this skill owns the fan-out shape.

Prerequisites

  • delegate_task available and delegation.max_concurrent_children sized for the wave (default 10; the runtime rejects a tasks=[] larger than that with a clear error rather than queueing). delegation.max_spawn_depth >= 2 only if children must fan out themselves.
<!-- no-tmp: ok — explains why a literal /tmp is wrong -->
  • A writable run directory resolved from the terminal environment's temp dir ($TMPDIR, else the platform temp dir). Never a literal /tmp: Termux has no such directory and native Windows breaks on it. Use <tmp>/wf_<name>_<uuid>/, unique per run, so an interrupted earlier run cannot leave stale outputs to be misread.
  • execute_code for the deterministic layer (only web_search, web_extract, read_file, write_file, search_files, terminal, patch exist inside it).

How to Run

Two layers, split by a real capability boundary:

Layer A - execute_code script Layer B - delegate_task batch
Use for DETERMINISTIC work: fetch N URLs, parse N files, run N commands, template N outputs, build manifests, merge outputs LLM-JUDGMENT work: classify, review, decide, write, refute, refactor one unit
Holds loop, branching, intermediate variables nothing; one call with tasks=[...], each task its own isolated agent
Tools the sandbox set above; it can NOT call delegate_task the parent's toolsets, inherited unchanged (no per-task narrowing); children lose delegate_task, clarify, memory, send_message, cronjob_manage
Concurrency yours (ThreadPoolExecutor, batches) bounded by delegation.max_concurrent_children
Cost tool calls only one full agent tree per task; multiplies linearly

Do the deterministic part in Layer A first, fan out only the irreducibly-LLM step in Layer B, synthesize on the parent.

Background-first: results re-enter as messages

A top-level delegate_task returns immediately with one handle per task; each child's result re-enters the conversation as a new message when it finishes. You cannot read out_*.csv on the line after the call. Finish whatever does not depend on the children, give a one-line status, and END YOUR TURN; act on each result message as it lands. An ordinary follow-up user message does not cancel children; /stop, /new and process exit do. Only a delegation issued by an orchestrator subagent (depth > 0) is synchronous.

Quick Reference

  • Unit must be answerable without sibling output, else it is serial.
  • Manifest: one unit per line in <run>/manifest.jsonl; print count + run dir.
  • Per child: ~8-12 mechanical edits, or ~2-3k lines of reading, or ~50-70 KB of corpus; size by the LARGEST unit. Structured output goes to files, never the summary field (it truncates under load); delimiter-separated lines over JSON.
  • Parent verifies file count and per-run freshness before merging.
  • A "stalled" child usually completed its write; check the filesystem first.
  • Scoped slice first (one directory, 20 records), report token cost, then scale.

Procedure

One-shot fan-out

  1. Decompose into independent units.
  2. Layer A pre-pass writes the manifest.
  3. Size chunks against the limits above; for more tasks than max_concurrent_children, issue bounded waves yourself.
  4. Layer B: one delegate_task(tasks=[...]); each task reads its slice, writes <run>/out_<i>.csv, prints a status word, stops.
  5. End the turn. As result messages arrive, read the files, verify, merge; the cross-cutting synthesis stays on the parent.

Adversarial convergence (finding-quality work)

  1. Independent attempts: the SAME question to N children (2-4) with DIFFERENT framings in each context, each writi
Pertanyaan umum

Kapan skill ini tidak layak dipakai?

Skill menyatakan untuk melewatkannya jika unitnya kurang dari sekitar sepuluh, atau untuk langkah yang harus berjalan berurutan.

Apakah pekerjaan bertahan setelah restart?

Tidak. Skill menyatakan tugas pembantu tidak dibuat tahan lama melampaui restart.

Di mana pekerjaan disimpan?

Di folder run unik di dalam direktori temp sistem, bukan di path tetap seperti /tmp.

Detail

Deskripsi asli dari pembuat

Plan-in-code fan-outs, adversarial verification, waves.

repo: NousResearch/hermes-agent

Popularitas

Bintang GitHub
260k
Peringkat
#441
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa