Skip to content

docs(cron): add context_from chaining section#15724

Closed
asimons81 wants to merge 1 commit into
NousResearch:mainfrom
asimons81:docs/add-context-from-chaining
Closed

docs(cron): add context_from chaining section#15724
asimons81 wants to merge 1 commit into
NousResearch:mainfrom
asimons81:docs/add-context-from-chaining

Conversation

@asimons81
Copy link
Copy Markdown

Document how to chain cron jobs using context_from so Job B's prompt automatically receives Job A's most recent output as context.

This addresses the gap between the internal implementation (PR #5439) and what users need to actually use the feature.

What this adds

A new section in the cron user guide covering:

  • The pattern: 3-job pipeline example (collect → triage → ship)
  • How it works: output is read from ~/.hermes/cron/output/{job_id}/*.md and prepended to the chained job's prompt
  • context_from accepts: single ID (string) or multiple IDs (list), outputs concatenated in order
  • When to use it: multi-stage pipelines, dependent tasks, fan-out/fan-in aggregation

Testing

The example is based on a real-world pipeline pattern already running in production.

cc: @NousResearch

Document how to chain cron jobs using context_from so Job B's
prompt automatically receives Job A's most recent output as context.

Addresses the gap between the internal implementation (PR NousResearch#5439)
and what's visible in the user-facing cron docs.

Co-authored-by: Tony Simons @tonysimons_
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have comp/cron Cron scheduler and job management labels Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants