cyberneticlibrary

Compose script OpenRouter Claude workflows

node-strategies-demoworkflowsetup L32
kitaekatt/plugins-kit
What it does

Compose script, openrouter, and Claude reasoning nodes

Best for

Demonstrating workflow-kit multi-strategy nodes (script, external LLM, Claude) with payload passing via files.

Inputs
  • · Run ID
  • · Plugin root path
  • · Venv Python path
  • · Source document path
Outputs
  • · Wordcount stats (JSON)
  • · Classifier verdict (text)
  • · Reconciliation summary (3-bullet markdown)
Requires
  • · Script node (wordcount.py, deterministic)
  • · OpenRouter node (cheap model, non-Claude)
  • · Claude reasoning node (reconcile)
Preconditions
  • · Workflow-kit preamble configured
  • · Plugin venv with openai + openrouter_kit
  • · Multi-phase: Prepare → Classify → Reason
Failure modes
  • · OpenRouter may not have cheap model available
  • · Script node exit code nonzero → stops pipeline
  • · Only final node pays token cost (reads files)
Trust signals
  • · File-based payload passing (avoids large JSON passes)
  • · Mixed strategy nodes (deterministic + non-Claude + Claude)
  • · Exit codes and status tracking