agent-step-sequencer
بواسطة gostlightai
Browser & Automationموجز
Multi-step scheduler for in-depth agent requests.
الوصف
ما الذي تفعله هذه المهارة
Multi-step scheduler that detects when a user request requires sequential actions, proposes a step plan, waits for confirmation, then persists and executes each step. Survives gateway resets by writing state to disk and resuming on the next heartbeat. Handles automatic retries and failure recovery without user intervention.
Persisting state to disk and resuming on heartbeat means a mid-execution gateway reset does not lose progress, unlike single-shot agent calls that fail completely if interrupted.
متى تستخدمها
- Running a multi-phase research and writing workflow
- Executing sequential API calls with rate-limit delays between steps
- Automating multi-file migrations or setup tasks
- Recovering long-running agent tasks after a connection drop
- Chaining dependent steps where each step's output feeds the next
مثال على سير العمل
User asks: Research a topic, write a paper based on the research, then produce an outline of the paper
- 1
Detects 3 sequential actions with output dependencies, proposes a 3-step plan and waits for user confirmation
- 2
User confirms; agent asks whether to apply 2-minute delays between steps for rate-limit safety
- 3
Agent persists state.json with step definitions and immediately invokes step-sequencer-check.py
- 4
Runner executes step-1, verifies requiredOutputs exist, marks DONE, and advances to step-2
- 5
Heartbeat re-invokes check script on schedule; if a step is FAILED, runner retries with a troubleshoot prompt
All steps marked DONE; agent posts a summary with paths to all files created during the workflow
المتطلبات
- STEP_AGENT_CMD environment variable (command used to invoke the agent, e.g. openclaw agent --message)
التثبيت
clawhub install gostlightai/agent-step-sequencerشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.