본문으로 건너뛰기
Skillpedia
에이전트260k · #441

dynamic-workflow

하는 일

파일 하나당 작업 하나처럼 개별 단위가 많은 큰 작업을, 모든 결과를 추적하는 스크립트로 구성하는 방법을 안내합니다. Hermes 에이전트로 대규모 배치 작업을 실행하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓한 대화가 담을 수 없을 만큼 많은 별도 단위, 예를 들어 수십 개의 파일이 있는 작업을 할 때.
  • ✓별도의 검토자가 확인하는 여러 차례의 시도를 원할 때.
  • ✓큰 리팩터링이나 수정을 병렬 작업자의 여러 차례로 나누어야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/dynamic-workflow/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“60개의 API 엔드포인트 파일 모두에서 오류 처리를 업데이트하고, 각각 확인한 뒤 결과를 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 계획과 반복을 담은 스크립트를 쓰고, 작업 단위를 병렬로 도우미 에이전트에 보내며, 각 결과를 디스크에 기록합니다. 검증된 결과만 메인 대화로 돌아옵니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

이 스킬을 쓰지 않는 것이 나은 경우는 언제인가요?

작업 단위가 열 개 미만이거나, 순서대로 실행해야 하는 단계라면 이 스킬을 건너뛰라고 합니다.

재시작 후에도 작업이 유지되나요?

아닙니다. 재시작 후에도 도우미 작업이 지속되도록 만들지는 않는다고 스킬은 설명합니다.

작업은 어디에 저장되나요?

/tmp처럼 고정된 경로가 아니라, 시스템 임시 디렉터리 안의 고유한 실행 폴더에 저장됩니다.

상세 정보

작성자의 원본 설명

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

repo: NousResearch/hermes-agent

인기도

GitHub 스타
260k
순위
#441
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬