Agent workloads

From joelhooks/joelclaw · View interactive version

Agent workloads is an AI agent skill from the GitHub repository joelhooks/joelclaw. Compatibility alias for the canonical `workflow-rig` front door. Use when older prompts mention `agent-workloads` or when you need the legacy workload-planning guidance; for new work, load `workflow-rig` first.

How to use this skill

Skill file

Agent Workloads

This skill is now a compatibility alias.

For new work, load workflow-rig first. That is the canonical front door for workload planning, runtime mode selection, and workflow-rig dogfood.

Keep using this skill only when an older prompt already names agent-workloads or when you need the historical workload-planning guidance below.

If the work is really about external repo bridging or low-level runtime submission mechanics, _then_ the restate-workflows skill may matter. For normal coding/repo work, this skill comes first.

What this skill is for

Load Order

For serious workload design, also load:

Canonical repo doc:

Core rule

Do not make the caller choose the substrate unless that tradeoff is the task.

And do not let an approved bounded local slice drift into planner/dispatch/queue theatre just because those surfaces exist.

The caller should describe intent.

The planner should decide execution.

Bad:

Good:

First pass: classify the workload

Ask or infer these inputs:

If those are fuzzy, shape the workload before dispatch.

Choose the shape

Serial

Use when steps depend on each other or risk is high.

Examples:

Parallel

Use when branches are independent and comparison helps.

Examples:

Chained

Use when specialist stages add value and artifacts should flow forward.

Examples:

Default execution bias

Operator loop

Canonical posture for coding/repo work:

  1. operator gives intent + context
  2. agent returns a shaped workload plan
  3. agent asks only for unresolved consequential scope; an explicit scoped run request already authorizes execution
  4. once approved, follow guidance.executionLoop.approvedNextStep instead of re-planning
  5. while work is running, let the pi extension/TUI show honest status at real stage boundaries
  6. finish with a terse outcome summary: what changed, what was verified, what remains, and whether the next move is push / handoff / stop

For a bounded local slice (mode=inline, local repo, explicit paths, cheap verification), the honest default is:

Not:

Handoff rule

Every downstream worker should receive:

If the next worker has to reconstruct everything from chat history, the workload was shaped badly.

Runtime boundary

This skill is the product layer.

Substrate skills remain implementation details:

Use them only after the workload shape is clear.

Command surface

Shipped now:

joelclaw workload plan "<intent>" \
  [--preset docs-truth|research-compare|refactor-handoff] \
  [--repo /abs/path/or/owner/repo] \
  [--paths a,b,c] \
  [--paths-from status|head|recent:<n>] \
  [--write-plan ~/.joelclaw/workloads/]

joelclaw workload dispatch <plan-artifact> \
  [--stage stage-2] \
  [--to BlueFox] \
  [--from MaroonReef] \
  [--send-mail] \
  [--write-dispatch ~/.joelclaw/workloads/]

joelclaw workload run <plan-artifact> \
  [--stage stage-2] \
  [--tool pi|codex|claude] \
  [--execution-mode auto|host|sandbox] \
  [--sandbox-backend local|k8s] \
  [--dry-run]

Use plan to get the canonical request + plan envelope, seed scope from real repo activity, and emit a reusable plan artifact. The CLI now also returns guidance so the agent gets:

Use dispatch to turn a saved plan into a real handoff contract instead of retyping the whole bloody thing. The CLI now also returns dispatch guidance so it can say when dispatch is overkill for a bounded inline slice, when to health-check before handing off, when the recipient still needs to be made explicit, and what the approval/progress/closeout loop should look like.

Use run when the plan is approved and should enter the queue-backed runtime through one canonical bridge. It normalizes the saved plan into workload/requested → system/agent.requested instead of forcing the operator to hand-roll joelclaw queue emit payloads.

Still planned:

joelclaw workload status <id>
joelclaw workload explain <id>
joelclaw workload cancel <id>

Until the rest exists:

  1. run joelclaw workload plan
  2. read the returned guidance before doing anything cute
  3. present the plan and execute within existing authorization; ask only for unresolved consequential scope
  4. once approved, follow guidance.executionLoop.approvedNextStep
  5. if recommendedExecution=execute-inline-now, reserve the scoped files and just do the work
  6. if recommendedExecution=tighten-scope-first, rerun the planner with explicit --paths or --paths-from ...
  7. if the approved plan should enter the queue-backed runtime, run joelclaw workload run instead of hand-rolling queue emit
  8. if another worker should take it first, save the plan and run joelclaw workload dispatch
  9. deliver the dispatch contract through clawmail when appropriate
  10. keep the handoff explicit and report the final outcome tersely

Reference

Read the detailed workload catalog here:

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.