threnody-workflow

threnody-workflow is a skill for Claude Code from timjensgrossinger/threnody. It costs 76 tokens per session (1,325 once invoked), scanned A, original, Apache-2.0.

A Claude Code workflow tool for running coordinated groups of AI agents and saving a completed workflow as a reusable command.

In plain words
What is it for?
Use it for tier-based workflows, multi-agent review, consensus work, or reusable workflow commands in Claude Code.
Why use it?
It organizes parallel agent work and records the resulting process so coworkers can run it without setup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the threnody plugin — 10 skills, 3 agents shipped together

Good fit Use it for tier-based workflows, multi-agent review, consensus work, or reusable workflow commands in Claude Code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timjensgrossinger/threnody/threnody-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add timjensgrossinger/threnody --skill threnody-workflow
Clone the repo
git clone --depth 1 https://github.com/timjensgrossinger/threnody

Made for: Claude Code.

Or install threnody, the plugin that ships this one along with the rest of its 10 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threnody-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/timjensgrossinger/threnody/threnody-workflow/github.svg)](https://agentmods.dev/skills/timjensgrossinger/threnody/threnody-workflow)
Your own site
<a href="https://agentmods.dev/skills/timjensgrossinger/threnody/threnody-workflow"><img src="https://agentmods.dev/badge/skills/timjensgrossinger/threnody/threnody-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threnody-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/timjensgrossinger/threnody/threnody-workflow"><img src="https://agentmods.dev/badge/skills/timjensgrossinger/threnody/threnody-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01325
Opus 5 $0.00038 $0.00662
Sonnet 5 $0.00015 $0.00265
Haiku 4.5 $0.00008 $0.00133

Measured 9d ago against content hash bb263178a683, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

threnody-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/threnody-workflow/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Threnody workflow orchestration

Runs fan-out work as a tier-aware Dynamic Workflow (each agent() on its Threnody tier model, not one session model), with multi-queen consensus and learning — then lets you save a permanent, documented, zero-config /<slug> command teammates run with no setup.

This is Claude Code-only. Other hosts use host_spawn_waves through threnody-swarm; all shared behavior must work there first.

Fast-start contract

Workflow-emitting skills must produce a runnable workflow_script quickly: target under 5 seconds to handoff and under 30 seconds to first worker spawn. The emitted script must start same-wave workers in a batch, for example with parallel([...]), before waiting on the wave barrier.

Do not block initial workflow emission on optional refinement, consensus, learning aggregation, or permanent-workflow export. Run those after the first worker wave has started or after the workflow returns.

For review workflows, use the nested cheap shape: the Workflow script performs medium-tier orchestration, launches file reviewers in parallel, and returns a compact synthesis to the main session. Keep high-tier judgment for explicit deep/security-critical review or validated high/critical findings.

Prerequisite (claude-code only)

This path needs routing_policy.shells.claude-code.workflow_emit: true in ~/.local/lib/threnody/config.yaml. If it is off (or the host is not Claude Code), the response will not include workflow_script — fall back to /threnody-swarm. Requires Claude Code v2.1.154+ (Workflow tool).

Workflow

  1. execute_swarm(task, topology="star"|"auto").
  2. Inspect the response:
    • workflow_emit: true + workflow_script — the tier-aware script. Launch it via the Workflow tool (paste/run workflow_script). It runs in the background, keeps intermediate results out of your context, and routes each agent to its model. Same-wave agents must be represented as a batch in the script, not as a sequential loop.
    • No workflow_script — emission is off; use /threnody-swarm instead.
  3. When the workflow returns, call report_workflow_result(workflow_name, agents) with the agents array the workflow returned (report_workflow_result records per-agent learning telemetry).
  4. Consensus:
    • Hybrid (default): the response also has a consensus_wave. After the workflow finishes, spawn each read-only queen in it as a host Agent (one parallel message), then report_host_wave(swarm_id, wave, workspace_root, agents=[...]) with each queen's JSON verdict as output_excerpt. If the response returns consensus_followup, spawn the single judge Agent it provides and report again.
    • Opt-in (consensus_in_workflow): queens run inside the workflow; pass the workflow's returned consensus array to report_workflow_result(..., consensus=[...]). If it returns consensus_followup, spawn one judge Agent and re-call with consensus set to just the selected queen's proposal.
    • For ordinary reviews, prefer a targeted verifier pass for synthesized HIGH/CRITICAL findings instead of running consensus over every file.
  5. Save a permanent workflow (the payoff): once a shape recurs across successful runs, report_workflow_result returns workflow_draft.enqueued: true. Then:
    • approval_queue_approve(<queue_id>, operator=<you>) to approve the learned workflow.
    • Export it with tuning + documentation:
      python3 -c "import shared.workflow_export as wx, shared.db as d; \
        wx.export_workflow(<approved_draft_dict>, project_path='.', db=d.Database(), tune=True)"
      
      This re-tunes per-tier models from recorded outcomes ("what model did task X well"), writes a documented header (tier→model map, persona roster + roles, related learned agents), and saves .claude/workflows/<slug>.js.
    • Commit .claude/workflows/<slug>.js to the repo → teammates run /<slug> with zero config.

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 106 lines · 76 tokens per session scan A bb263178a683

Subscribe to this mod's changes

threnody-workflow is a skill published in the GitHub repository timjensgrossinger/threnody (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 76 tokens to every session and 1,325 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.