continuum-workflows
Skill84 starsChanged 6 months agoApache-2.0View on GitHub
Use Continuum's nine workflow agents — Sequential, Parallel, Loop, Reflection, Router, Planner, Debate, Scatter, SupervisedSequential — to build multi-agent pipelines. Invoke when the user asks "chain agents", "run agents in parallel", "iterate until done", "self-improving agent", "route to specialist", "decompose a goal", or anything multi-agent.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/continuum.mdcCursor rule
- AgentDB Advanced FeaturesSkill
- AgentDB Learning PluginsSkill
- AgentDB Memory PatternsSkill
- AgentDB Performance OptimizationSkill
- AgentDB Vector SearchSkill
- browserSkill
- continuum-agentSkill
- continuum-claude-codeSkill
- continuum-codexSkill
- continuum-cursorSkill
- continuum-evaluationSkill
- continuum-handoffsSkill
- continuum-llm-providersSkill
- continuum-memorySkill
- continuum-observabilitySkill
- continuum-quickstartSkill
- continuum-recipesSkill
- continuum-streamingSkill
- continuum-temporalSkill
- continuum-testingSkill
- continuum-tools-mcpSkill
- github-code-reviewSkill
- github-multi-repoSkill
- github-project-managementSkill
- github-release-managementSkill
- github-workflow-automationSkill
- Hooks AutomationSkill
- Pair ProgrammingSkill
- ReasoningBank with AgentDBSkill
- ReasoningBank IntelligenceSkill
- Skill BuilderSkill
- sparc-methodologySkill
- stream-chainSkill
- swarm-advancedSkill
- Swarm OrchestrationSkill
- V3 CLI ModernizationSkill
- V3 Core ImplementationSkill
- V3 DDD ArchitectureSkill
- V3 Deep IntegrationSkill
- V3 MCP OptimizationSkill
- V3 Memory UnificationSkill
- V3 Performance OptimizationSkill
- V3 Security OverhaulSkill
- V3 Swarm CoordinationSkill
- Verification & Quality AssuranceSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Use when each agent's output should feed the next.
- Distinctive: line 55
Use when independent perspectives can run concurrently and you want them merged.
- Very specific: line 207
Don't use MergeStrategy.LLM_SUMMARIZE without setting a sensible summary_model for cost reasons — defaults to the parent agent's model.
- Very specific: line 209
Don't expect RouterAgent to dispatch to agents that aren't registered with the runner via register_agent().
- Very specific: line 211
Don't pass Route(target=..., description=...) — it's agent_name=....
- Very specific: line 212
Don't loop forever — LoopAgent always needs a termination strategy.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Continuum Workflow Agents Skill
Workflow agents are themselves BaseAgent subclasses, so they nest.
Each ships with a create_* factory.
Authoritative source: docs/agent.md, §6.
Imports
from continuum.agent import (
create_sequential_agent, create_parallel_agent, create_loop_agent,
create_reflection_agent, create_planner_agent, create_router_agent,
create_debate_agent, create_scatter_agent, create_supervised_agent,
MemoryScope, MergeStrategy, FailStrategy, TerminationType,
)SequentialAgent
pipeline = create_sequential_agent(
name="content-pipeline",
agents=[researcher, writer, editor],
pass_full_history=False,
fail_strategy=FailStrategy.FAIL_FAST,
)Use when each agent's output should feed the next.
ParallelAgent
fanout = create_parallel_agent(
name="fanout",
agents=[a, b, c],
merge_strategy=MergeStrategy.LLM_SUMMARIZE, # CONCATENATE / STRUCTURED / FIRST_SUCCESS
fail_strategy=FailStrategy.CONTINUE_ON_ERROR,
timeout=300,
)Use when independent perspectives can run concurrently and you want them merged.
LoopAgent
iterate = create_loop_agent(
name="iterate-until-done",
agent=worker,
termination_type=TerminationType.LLM_DECISION,
max_iterations=10,
termination_prompt="Reply COMPLETE if done, CONTINUE otherwise.",
# or termination_tool="finish" / termination_pattern="^DONE" /
# termination_condition=fn(content, history)
)ReflectionAgent
self_improving = create_reflection_agent(
name="self-improving",
agent=writer,
critique_prompt=None, # default critique
max_reflections=2,
reflection_model=None, # defaults to writer's model
)generate_critique_prompt(user_query, llm_client) builds a
query-specific critique prompt programmatically.
RouterAgent
router = create_router_agent(
name="triage",
routes=[
("billing-agent", "Billing & payment issues"),
("technical-agent", "Technical support"),
("sales-agent", "Sales / pricing"),
],
fallback="general-agent",
strategy="hybrid", # "llm" | "rule_based" | "hybrid"
model=None,
)Route (not ("name", "desc")) is Route(agent_name=..., description=...).
PlannerAgent
Two modes: single-worker, or agent-pool (LLM picks specialist per step).
planner = create_planner_agent(
name="planner",
agents=[researcher, coder, reviewer],
instructions="You are a planning agent.",
max_steps=10,
enable_replanning=False,
replan_on_failure=True,
fail_strategy=FailStrategy.FAIL_FAST,
strict_agent_pool=False,
)DebateAgent
debate = create_debate_agent(
name="debate",
topic_description="…",
pro_stance="Argue in favor.",
con_stance="Argue against.",
judge_instructions=None,
summarise_arguments=True, # default False: see below
truncate_chars=2000,
)Pro and con run in parallel; judge synthesizes.
The judge sees an excerpt of each side. A side over truncate_chars is
either cut to its first N characters (summarise_arguments=False, the
default), which drops the end of the argument where the conclusion
usually is, or condensed by its own side into 3-5 bullets
(summarise_arguments=True), at one extra LLM call per side over the
limit. A side within the limit is passed verbatim either way. Prefer
True when the verdict matters. A cut is logged at INFO:
judge sees pro 2000 of 4056 chars, ….
ScatterAgent
scatter = create_scatter_agent(
name="scatter",
agents=[a, b, c],
input_slices=None, # let the LLM split, or pass pre-cut slices
merge_strategy=MergeStrategy.LLM_SUMMARIZE,
fail_strategy=FailStrategy.CONTINUE_ON_ERROR,
split_model=None,
timeout=300,
)LLM splits input into N focused sub-tasks (one per branch).
SupervisedSequentialAgent
Sequential with LLM quality gating — retries any step that scores below
quality_threshold.
supervised = create_supervised_agent(
name="supervised",
agents=[step1, step2, step3],
quality_threshold=0.7,
max_retries=2,
supervisor_model=None,
)Nesting
Workflow agents are BaseAgent subclasses, so nest freely:
inner_pipeline = create_sequential_agent(name="inner", agents=[a, b])
outer = create_parallel_agent(name="outer", agents=[inner_pipeline, c, d])Don't
- Don't use
MergeStrategy.LLM_SUMMARIZEwithout setting a sensiblesummary_modelfor cost reasons — defaults to the parent agent's model. - Don't expect
RouterAgentto dispatch to agents that aren't registered with the runner viaregister_agent(). - Don't pass
Route(target=..., description=...)— it'sagent_name=.... - Don't loop forever —
LoopAgentalways needs a termination strategy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

