<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged notion</title>
<link>https://coderlegion.com/tag/notion</link>
<description>Powered by Question2Answer</description>
<item>
<title>Notion as the Control Plane: Per-Task Model Dispatch for Agent Workflows</title>
<link>https://coderlegion.com/18436/notion-as-the-control-plane-per-task-model-dispatch-for-agent-workflows</link>
<description>&lt;hr&gt;
&lt;p&gt;title: &quot;Notion as the Control Plane: Per-Task Model Dispatch for Agent Workflows&quot;&lt;br&gt;
published: true&lt;br&gt;
description: A pattern for running multi-agent workflows out of Notion: a planner decomposes one task into a dependency graph with per-task model assignments, you approve the plan, and the orchestrator dispatches in parallel. Cuts model spend ~10x vs flagship-only.&lt;br&gt;
tags: ai, claude, automation, notion&lt;br&gt;
cover_image: &lt;a rel=&quot;nofollow&quot; href=&quot;https://automatelab.tech/content/images/2026/05/agency-os-launch-feature.png&quot;&gt;https://automatelab.tech/content/images/2026/05/agency-os-launch-feature.png&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;canonical-url-https-automatelab-tech-agency-os-launch-&quot;&gt;canonical_url: &lt;a rel=&quot;nofollow&quot; href=&quot;https://automatelab.tech/agency-os-launch/&quot;&gt;https://automatelab.tech/agency-os-launch/&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Most &quot;AI for ops&quot; tools fail in one of two ways. Fully autonomous agents go off the rails and ship the wrong thing. Draft-only assistants do 10% of the job and leave the breakdown, sequencing, and execution on you.&lt;/p&gt;
&lt;p&gt;I wanted a third option: agents own decomposition and execution, humans own approval. The substrate is Notion, because that's where the work already lives.&lt;/p&gt;
&lt;p&gt;This post is the pattern, not the pitch. The repo is at the bottom.&lt;/p&gt;
&lt;h3 id=&quot;the-problem-with-one-model-per-workflow&quot;&gt;The problem with one-model-per-workflow&lt;/h3&gt;
&lt;p&gt;Direct LLM chat handles a single prompt well. It does not handle &quot;launch the pricing page&quot; well, because that isn't a prompt - it's a project. The model either improvises sub-steps in one long stream of consciousness, or you do the project management by hand and copy-paste between threads.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://automatelab.tech/content/images/2026/05/agency-os-launch-1-before-after-2.png&quot; alt=&quot;Direct LLM chat scatters task chaos. agency-os stacks the same idea into a tidy dependency graph.&quot;&gt;&lt;/p&gt;
&lt;p&gt;The fix is to separate three things that get conflated:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Decomposition&lt;/strong&gt; - turning one task into a graph of subtasks with dependencies&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dispatch&lt;/strong&gt; - choosing the right model for each subtask and running them in the right order&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Approval&lt;/strong&gt; - the human gate between planning and execution&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once those are separate, you can keep humans in the decision seat without making them babysit the work.&lt;/p&gt;
&lt;h3 id=&quot;the-loop&quot;&gt;The loop&lt;/h3&gt;
&lt;p&gt;Four phases, all anchored in a single Notion task database:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Submit.&lt;/strong&gt; Operator creates a task in Notion in plain language.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Plan.&lt;/strong&gt; A planner agent reads the task and emits a subtask graph. Each subtask gets a description, a list of dependencies, and an explicit model tier.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Approve.&lt;/strong&gt; The plan lands back in Notion as child pages. Operator reviews, edits, or rejects. Nothing dispatches without sign-off.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Execute.&lt;/strong&gt; On approval, an orchestrator dispatches subtasks in parallel where the graph allows, sequentially where it doesn't. Each subtask runs on its assigned model. Outputs land back in the same Notion task tree.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://automatelab.tech/content/images/2026/05/agency-os-launch-2-agent-planning-2.png&quot; alt=&quot;Agent decomposes one idea into four stages and routes each subtask to the right model tier&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;a-concrete-example&quot;&gt;A concrete example&lt;/h3&gt;
&lt;p&gt;A &quot;launch the website&quot; task decomposes into 21 subtasks across three model tiers:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Tier   &lt;/th&gt;&lt;th&gt;Count &lt;/th&gt;&lt;th&gt;Work                              &lt;/th&gt;&lt;th&gt;Parallelism&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Opus   &lt;/td&gt;&lt;td&gt;1     &lt;/td&gt;&lt;td&gt;Information architecture + outline &lt;/td&gt;&lt;td&gt;sequential (root)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sonnet &lt;/td&gt;&lt;td&gt;4     &lt;/td&gt;&lt;td&gt;Page copy drafts                   &lt;/td&gt;&lt;td&gt;parallel&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Haiku  &lt;/td&gt;&lt;td&gt;6     &lt;/td&gt;&lt;td&gt;Asset/image prompts                &lt;/td&gt;&lt;td&gt;parallel&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Haiku  &lt;/td&gt;&lt;td&gt;10    &lt;/td&gt;&lt;td&gt;Directory submission entries       &lt;/td&gt;&lt;td&gt;parallel&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One operator approval. Twenty-one outputs back in Notion, ready for review.&lt;/p&gt;
&lt;h3 id=&quot;why-per-task-model-assignment-matters&quot;&gt;Why per-task model assignment matters&lt;/h3&gt;
&lt;p&gt;Defaulting to the smartest model for every subtask is the easiest way to burn money on agentic workflows. Directory submissions don't need Opus reasoning. Architecture decisions shouldn't run on Haiku.&lt;/p&gt;
&lt;p&gt;In practice, routing clerical work to Haiku and reserving Opus for the reasoning-heavy nodes cuts model spend roughly an order of magnitude, with no quality loss on the parts that matter.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://automatelab.tech/content/images/2026/05/agency-os-launch-3-model-dispatch.png&quot; alt=&quot;Per-task model dispatch typically cuts model spend by an order of magnitude compared to running every task on a flagship model.&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;implementation-notes&quot;&gt;Implementation notes&lt;/h3&gt;
&lt;p&gt;A few things that turned out to be load-bearing once I started running this daily:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The approval gate is doing real work.&lt;/strong&gt; Without it, the planner occasionally invents subtasks or misjudges scope. With a 30-second human review, those get caught before they consume tokens.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Force the planner to declare dependencies explicitly.&lt;/strong&gt; &quot;Run in parallel where possible&quot; only works if the planner outputs &lt;code&gt;dependsOn: []&lt;/code&gt; for every node. Implicit ordering doesn't survive contact with fan-out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Give the planner a short rubric for tier selection.&lt;/strong&gt; Without it, the planner over-picks the flagship &quot;to be safe.&quot; A one-paragraph rubric in the system prompt (Haiku for clerical, Sonnet for writing, Opus for reasoning/architecture) is enough.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Notion as the substrate is the unlock.&lt;/strong&gt; It means non-technical operators can drive the workflow, edit plans, and consume outputs without a custom UI.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;caveats&quot;&gt;Caveats&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Not a fit if your team doesn't already live in Notion.&lt;/li&gt;
&lt;li&gt;The pattern is strongest for parallel fan-out of independent subtasks. Workflows that need iterative refinement between two agents mid-run are weaker.&lt;/li&gt;
&lt;li&gt;Once you fan out 10+ Haiku tasks at once, rate limits start mattering - back-pressure in the orchestrator is non-optional.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;repo&quot;&gt;Repo&lt;/h3&gt;
&lt;p&gt;I've open-sourced the implementation:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/ratamaha-git/agency-os&quot;&gt;github.com/ratamaha-git/agency-os&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Happy to answer questions on the planner prompt shape, the dependency-graph schema, or the model-tier rubric.&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/18436/notion-as-the-control-plane-per-task-model-dispatch-for-agent-workflows</guid>
<pubDate>Wed, 20 May 2026 09:34:51 +0000</pubDate>
</item>
</channel>
</rss>