[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-dynamic-workflows":3,"mdc--r4do61-key":37,"related-org-posthog-dynamic-workflows":2926,"related-repo-posthog-dynamic-workflows":3098},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":35,"mdContent":36},"dynamic-workflows","write JavaScript workflow scripts for subagents","How to write JavaScript workflow scripts for the `workflow` tool - fanning work out across many isolated subagents with agent(), parallel(), and pipeline(), then synthesizing one result. Use when a task decomposes into several independent investigations or changes (codebase audits, many-file analysis, wide research, multi-perspective review, applying the same edit across many independent files).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"posthog","PostHog","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fposthog.png",[12,14,17,20,23],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"JavaScript","javascript",{"name":18,"slug":19,"type":13},"Agents","agents",{"name":21,"slug":22,"type":13},"Multi-Agent","multi-agent",{"name":24,"slug":25,"type":13},"Workflow Automation","workflow-automation",162,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fcode","2026-07-15T05:29:57.224313",null,58,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":34},[],"The era of self-driving development is here","https:\u002F\u002Fgithub.com\u002FPostHog\u002Fcode\u002Ftree\u002FHEAD\u002Fpackages\u002Fharness\u002Fsrc\u002Fextensions\u002Fworkflow\u002Fskills\u002Fdynamic-workflows","---\nname: dynamic-workflows\ndescription: How to write JavaScript workflow scripts for the `workflow` tool - fanning work out across many isolated subagents with agent(), parallel(), and pipeline(), then synthesizing one result. Use when a task decomposes into several independent investigations or changes (codebase audits, many-file analysis, wide research, multi-perspective review, applying the same edit across many independent files).\n---\n\n# Dynamic Workflows\n\nThe `workflow` tool executes a JavaScript orchestration script you write. The script\nholds the loop, branching, and intermediate results; each `agent()` call runs one\nisolated subagent in its own pi process; only the script's return value comes back\ninto your context. This is how you audit 20 files, research 8 topics, or apply the\nsame change across 20 independent files without burning your own context window on\nthe intermediate output.\n\n## When to use it\n\n- The work decomposes into **several independent investigations or changes** whose\n  intermediate outputs you don't need verbatim - only a synthesis (or a report of\n  what changed).\n- Examples: audit every route\u002Fmodule for a property, summarize each package of a\n  monorepo, verify a list of findings adversarially, research N alternatives, rename\n  an API across every file that references it.\n\nDo **not** use it for: a single question or a single edit (use `subagent` or just do\nit directly), one or two parallel tasks (use `subagent` parallel mode), or work\nneeding your full conversation context.\n\n## Script shape\n\nPrefer the **strict declared-plan contract** below. Strict mode turns on only when\n`meta.phases` is a literal object the runtime can read without executing code;\nolder\u002Fdynamic scripts keep their legacy behavior. Do not set token budgets: choose\nonly the appropriate persona\u002Fmodel tier and let the host account actual usage.\n\n```javascript\nexport const meta = {\n  name: 'audit_routes',\n  goal: 'Produce a decision-ready router audit',\n  inputs: ['repository'],\n  phases: [\n    { title: 'Scan', goal: 'Map routers', inputs: ['repository'], produces: ['router inventory'] },\n    { title: 'Audit', goal: 'Check the inventory', inputs: ['router inventory'], produces: ['router audits'] },\n    { title: 'Synthesize', goal: 'Deliver the verdict', inputs: ['router audits'], produces: ['audit verdict'] },\n  ],\n  synthesis: { phase: 'Synthesize', inputs: ['router audits'], produces: ['audit verdict'] },\n}\n\nphase('Scan')\n\nconst inventory = await agent(\n  'List every *.router.ts file under packages\u002Fhost-router\u002Fsrc\u002Frouters. Reply with only JSON.',\n  {\n    label: 'route inventory',\n    objective: 'Produce the complete router inventory for the audit.',\n    inputs: ['repository'],\n    produces: 'router inventory',\n    schema: { type: 'object', required: ['files'], properties: { files: { type: 'array', items: { type: 'string' } } } },\n  },\n)\nif (!inventory) return { ok: false, error: 'inventory failed' }\n\nphase('Audit')\nconst audits = await agent(\n  'Audit the router inventory against the one-line-forward rule. Return every violation as JSON.',\n  { label: 'router audit', objective: 'Audit all discovered routers for inline logic.', inputs: ['router inventory'], produces: 'router audits', schema: { type: 'object', required: ['violations'] } },\n)\n\nphase('Synthesize')\nconst verdict = await agent(\n  'Summarize the supplied router audits into {ok, violations: [...]}. Reply with only JSON.',\n  { label: 'final verdict', agent: 'Plan', objective: 'Create the final decision-ready audit report.', inputs: ['router audits'], produces: 'audit verdict', schema: { type: 'object', required: ['ok', 'violations'] } },\n)\nreturn verdict\n```\n\nIn strict mode, activate declared phases exactly in order; agent inputs are artifact-name arrays (not inline records), every declared phase output must be published exactly once (an agent automatically publishes its declared `produces`, or use `publish(name, value)` for aggregates), and the final `synthesis` phase must publish its named final artifact. Give every phase a goal, every agent a unique label and objective, and all real handoffs named inputs\u002Foutputs.\n\nRules: plain JavaScript (no TypeScript, no `import`\u002F`require`); the leading\n`export const meta = { name, description }` is optional but conventional; the script\nmust call `agent()` at least once; the return value must be JSON-serializable (a\ncommon mistake is returning an unawaited `agent()` promise).\n\n## API\n\n| Global | Behavior |\n|--------|----------|\n| `agent(prompt, opts)` | Runs one subagent; resolves to its final text, or the parsed+shape-checked object when `opts.schema` is set, or `null` on failure. Opts: `label` (short, unique - drives the live display), `objective` (responsibility), `inputs` (artifact-name strings or a record of named string values), `produces` (one artifact name), `agent` (`'Explore'` default, `'Plan'`, or `'General'`), `schema` (plain JSON Schema), `cwd`, `model` (tier keyword, see below). |\n| `parallel(thunks)` | `await parallel(items.map(i => () => agent(...)))` - functions, **not** promises. Results in input order; failed branches are `null`. |\n| `pipeline(items, ...stages)` | Fans items through sequential stages (map → verify → summarize). Items run concurrently; each item's stages run in order; each stage receives `(previousValue, originalItem, index)`. A failed stage nulls that item's slot. |\n| `phase(title, meta?)` | Marks a new stage of work for the live progress display. Prefer `phase('Audit', { goal: '...', inputs: ['inventory'], produces: ['findings'] })` so the upcoming plan and dependencies are visible before it runs. `goal`, `inputs`, and `produces` are optional; dynamic\u002Fconditional phases remain supported. |\n| `log(message)` | Appends a workflow-level log line (shown in the expanded view). |\n| `parseJson(text)` | Extracts JSON from an agent's text reply, tolerating fences and surrounding prose. Prefer `schema` on `agent()` instead. |\n| `args` | The JSON value passed in the tool call's `args` parameter. |\n| `cwd` | The workflow's working directory (string). |\n\nLimits: 8 agents run concurrently, 256 per workflow. `require`, `fs`, `fetch`, and\ntimers are unavailable inside the script - all real work happens inside subagents.\n\n## Which agent\n\n| Agent | Capability | Model (default) | Use for |\n|-------|------------|------------------|---------|\n| `Explore` (default) | Read-only | Fast\u002Fcheap | Recon, per-item checks, broad search |\n| `Plan` | Read-only | Inherits your model | Judgment-heavy planning or synthesis |\n| `General` | **Read-write** | Inherits your model | The actual edits an investigation identified, or any fan-out that needs real changes |\n\nOnly `General` edits files. Reach for it when a change is mechanical\u002Findependent\nenough to parallelize (e.g. the same fix across many files) rather than applying every\nedit yourself after the workflow returns.\n\n## Model override\n\n`agent()`'s `model` option picks a different model than the persona's own default for\njust that call, using a **tier keyword**, not a guessed exact model id (the available\nmodel list changes over time, so a literal id can silently be wrong):\n\n- `'strong'` - the best available model. Use for a genuinely hard `General` edit or a\n  judgment call worth spending more on.\n- `'medium'` - a solid mid-tier model.\n- `'cheap'` - fast and cheap. Use to bump a `Plan`\u002F`General` call down for something\n  simple, or to run more `Explore`-style recon than the default budget would allow.\n\nOmit `model` entirely to use the persona's own default (most calls should).\n```javascript\nawait agent('Investigate whether this auth check has a bypass.', { agent: 'Plan', model: 'strong', label: 'auth bypass check' })\n```\n\n## Failure semantics\n\nA failed `agent()` \u002F `parallel()` branch \u002F `pipeline()` item becomes `null` plus a log\nline; the rest of the workflow continues. **Always check for nulls before\nsynthesizing** - `audits.filter(Boolean)` or an explicit guard. Only aborts and script\nbugs (unknown agent name, bad arguments, exceeding limits) fail the whole workflow.\n\n## Writing good workflows\n\n- Subagents share no context with you or each other: every prompt must carry its own\n  file paths, constraints, and any prior findings it depends on. Add `objective`,\n  `inputs`, and `produces` to each agent call: they add a concise child context block\n  and let the live workflow show responsibility and downstream artifact use.\n- Use `schema` whenever an agent's output feeds a later stage; use free text only for\n  the final human-readable synthesis. Define a schema once in a `const` and reuse it\n  across parallel agents instead of repeating large nested object literals.\n- End with a synthesis step and return a **compact** value (verdict + key findings),\n  not a dump of every intermediate output - the return value is all you get back.\n- Default to `Explore` for recon and per-item checks, `Plan` for judgment-heavy\n  synthesis, and `General` only for the calls that actually need to write files.\n",{"data":38,"body":39},{"name":4,"description":6},{"type":40,"children":41},"root",[42,50,73,80,103,130,136,156,1968,1997,2040,2046,2388,2414,2420,2535,2547,2553,2577,2640,2652,2774,2780,2830,2836,2920],{"type":43,"tag":44,"props":45,"children":46},"element","h1",{"id":4},[47],{"type":48,"value":49},"text","Dynamic Workflows",{"type":43,"tag":51,"props":52,"children":53},"p",{},[54,56,63,65,71],{"type":48,"value":55},"The ",{"type":43,"tag":57,"props":58,"children":60},"code",{"className":59},[],[61],{"type":48,"value":62},"workflow",{"type":48,"value":64}," tool executes a JavaScript orchestration script you write. The script\nholds the loop, branching, and intermediate results; each ",{"type":43,"tag":57,"props":66,"children":68},{"className":67},[],[69],{"type":48,"value":70},"agent()",{"type":48,"value":72}," call runs one\nisolated subagent in its own pi process; only the script's return value comes back\ninto your context. This is how you audit 20 files, research 8 topics, or apply the\nsame change across 20 independent files without burning your own context window on\nthe intermediate output.",{"type":43,"tag":74,"props":75,"children":77},"h2",{"id":76},"when-to-use-it",[78],{"type":48,"value":79},"When to use it",{"type":43,"tag":81,"props":82,"children":83},"ul",{},[84,98],{"type":43,"tag":85,"props":86,"children":87},"li",{},[88,90,96],{"type":48,"value":89},"The work decomposes into ",{"type":43,"tag":91,"props":92,"children":93},"strong",{},[94],{"type":48,"value":95},"several independent investigations or changes",{"type":48,"value":97}," whose\nintermediate outputs you don't need verbatim - only a synthesis (or a report of\nwhat changed).",{"type":43,"tag":85,"props":99,"children":100},{},[101],{"type":48,"value":102},"Examples: audit every route\u002Fmodule for a property, summarize each package of a\nmonorepo, verify a list of findings adversarially, research N alternatives, rename\nan API across every file that references it.",{"type":43,"tag":51,"props":104,"children":105},{},[106,108,113,115,121,123,128],{"type":48,"value":107},"Do ",{"type":43,"tag":91,"props":109,"children":110},{},[111],{"type":48,"value":112},"not",{"type":48,"value":114}," use it for: a single question or a single edit (use ",{"type":43,"tag":57,"props":116,"children":118},{"className":117},[],[119],{"type":48,"value":120},"subagent",{"type":48,"value":122}," or just do\nit directly), one or two parallel tasks (use ",{"type":43,"tag":57,"props":124,"children":126},{"className":125},[],[127],{"type":48,"value":120},{"type":48,"value":129}," parallel mode), or work\nneeding your full conversation context.",{"type":43,"tag":74,"props":131,"children":133},{"id":132},"script-shape",[134],{"type":48,"value":135},"Script shape",{"type":43,"tag":51,"props":137,"children":138},{},[139,141,146,148,154],{"type":48,"value":140},"Prefer the ",{"type":43,"tag":91,"props":142,"children":143},{},[144],{"type":48,"value":145},"strict declared-plan contract",{"type":48,"value":147}," below. Strict mode turns on only when\n",{"type":43,"tag":57,"props":149,"children":151},{"className":150},[],[152],{"type":48,"value":153},"meta.phases",{"type":48,"value":155}," is a literal object the runtime can read without executing code;\nolder\u002Fdynamic scripts keep their legacy behavior. Do not set token budgets: choose\nonly the appropriate persona\u002Fmodel tier and let the host account actual usage.",{"type":43,"tag":157,"props":158,"children":162},"pre",{"className":159,"code":160,"language":16,"meta":161,"style":161},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export const meta = {\n  name: 'audit_routes',\n  goal: 'Produce a decision-ready router audit',\n  inputs: ['repository'],\n  phases: [\n    { title: 'Scan', goal: 'Map routers', inputs: ['repository'], produces: ['router inventory'] },\n    { title: 'Audit', goal: 'Check the inventory', inputs: ['router inventory'], produces: ['router audits'] },\n    { title: 'Synthesize', goal: 'Deliver the verdict', inputs: ['router audits'], produces: ['audit verdict'] },\n  ],\n  synthesis: { phase: 'Synthesize', inputs: ['router audits'], produces: ['audit verdict'] },\n}\n\nphase('Scan')\n\nconst inventory = await agent(\n  'List every *.router.ts file under packages\u002Fhost-router\u002Fsrc\u002Frouters. Reply with only JSON.',\n  {\n    label: 'route inventory',\n    objective: 'Produce the complete router inventory for the audit.',\n    inputs: ['repository'],\n    produces: 'router inventory',\n    schema: { type: 'object', required: ['files'], properties: { files: { type: 'array', items: { type: 'string' } } } },\n  },\n)\nif (!inventory) return { ok: false, error: 'inventory failed' }\n\nphase('Audit')\nconst audits = await agent(\n  'Audit the router inventory against the one-line-forward rule. Return every violation as JSON.',\n  { label: 'router audit', objective: 'Audit all discovered routers for inline logic.', inputs: ['router inventory'], produces: 'router audits', schema: { type: 'object', required: ['violations'] } },\n)\n\nphase('Synthesize')\nconst verdict = await agent(\n  'Summarize the supplied router audits into {ok, violations: [...]}. Reply with only JSON.',\n  { label: 'final verdict', agent: 'Plan', objective: 'Create the final decision-ready audit report.', inputs: ['router audits'], produces: 'audit verdict', schema: { type: 'object', required: ['ok', 'violations'] } },\n)\nreturn verdict\n","",[163],{"type":43,"tag":57,"props":164,"children":165},{"__ignoreMap":161},[166,201,237,267,307,325,456,579,702,715,822,831,841,873,881,914,936,945,975,1005,1042,1071,1251,1260,1268,1347,1355,1383,1412,1433,1625,1633,1641,1669,1698,1719,1947,1955],{"type":43,"tag":167,"props":168,"children":171},"span",{"class":169,"line":170},"line",1,[172,178,184,190,196],{"type":43,"tag":167,"props":173,"children":175},{"style":174},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[176],{"type":48,"value":177},"export",{"type":43,"tag":167,"props":179,"children":181},{"style":180},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[182],{"type":48,"value":183}," const",{"type":43,"tag":167,"props":185,"children":187},{"style":186},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[188],{"type":48,"value":189}," meta ",{"type":43,"tag":167,"props":191,"children":193},{"style":192},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[194],{"type":48,"value":195},"=",{"type":43,"tag":167,"props":197,"children":198},{"style":192},[199],{"type":48,"value":200}," {\n",{"type":43,"tag":167,"props":202,"children":204},{"class":169,"line":203},2,[205,211,216,221,227,232],{"type":43,"tag":167,"props":206,"children":208},{"style":207},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[209],{"type":48,"value":210},"  name",{"type":43,"tag":167,"props":212,"children":213},{"style":192},[214],{"type":48,"value":215},":",{"type":43,"tag":167,"props":217,"children":218},{"style":192},[219],{"type":48,"value":220}," '",{"type":43,"tag":167,"props":222,"children":224},{"style":223},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[225],{"type":48,"value":226},"audit_routes",{"type":43,"tag":167,"props":228,"children":229},{"style":192},[230],{"type":48,"value":231},"'",{"type":43,"tag":167,"props":233,"children":234},{"style":192},[235],{"type":48,"value":236},",\n",{"type":43,"tag":167,"props":238,"children":240},{"class":169,"line":239},3,[241,246,250,254,259,263],{"type":43,"tag":167,"props":242,"children":243},{"style":207},[244],{"type":48,"value":245},"  goal",{"type":43,"tag":167,"props":247,"children":248},{"style":192},[249],{"type":48,"value":215},{"type":43,"tag":167,"props":251,"children":252},{"style":192},[253],{"type":48,"value":220},{"type":43,"tag":167,"props":255,"children":256},{"style":223},[257],{"type":48,"value":258},"Produce a decision-ready router audit",{"type":43,"tag":167,"props":260,"children":261},{"style":192},[262],{"type":48,"value":231},{"type":43,"tag":167,"props":264,"children":265},{"style":192},[266],{"type":48,"value":236},{"type":43,"tag":167,"props":268,"children":270},{"class":169,"line":269},4,[271,276,280,285,289,294,298,303],{"type":43,"tag":167,"props":272,"children":273},{"style":207},[274],{"type":48,"value":275},"  inputs",{"type":43,"tag":167,"props":277,"children":278},{"style":192},[279],{"type":48,"value":215},{"type":43,"tag":167,"props":281,"children":282},{"style":186},[283],{"type":48,"value":284}," [",{"type":43,"tag":167,"props":286,"children":287},{"style":192},[288],{"type":48,"value":231},{"type":43,"tag":167,"props":290,"children":291},{"style":223},[292],{"type":48,"value":293},"repository",{"type":43,"tag":167,"props":295,"children":296},{"style":192},[297],{"type":48,"value":231},{"type":43,"tag":167,"props":299,"children":300},{"style":186},[301],{"type":48,"value":302},"]",{"type":43,"tag":167,"props":304,"children":305},{"style":192},[306],{"type":48,"value":236},{"type":43,"tag":167,"props":308,"children":310},{"class":169,"line":309},5,[311,316,320],{"type":43,"tag":167,"props":312,"children":313},{"style":207},[314],{"type":48,"value":315},"  phases",{"type":43,"tag":167,"props":317,"children":318},{"style":192},[319],{"type":48,"value":215},{"type":43,"tag":167,"props":321,"children":322},{"style":186},[323],{"type":48,"value":324}," [\n",{"type":43,"tag":167,"props":326,"children":328},{"class":169,"line":327},6,[329,334,339,343,347,352,356,361,366,370,374,379,383,387,392,396,400,404,408,412,416,420,425,429,433,437,442,446,451],{"type":43,"tag":167,"props":330,"children":331},{"style":192},[332],{"type":48,"value":333},"    {",{"type":43,"tag":167,"props":335,"children":336},{"style":207},[337],{"type":48,"value":338}," title",{"type":43,"tag":167,"props":340,"children":341},{"style":192},[342],{"type":48,"value":215},{"type":43,"tag":167,"props":344,"children":345},{"style":192},[346],{"type":48,"value":220},{"type":43,"tag":167,"props":348,"children":349},{"style":223},[350],{"type":48,"value":351},"Scan",{"type":43,"tag":167,"props":353,"children":354},{"style":192},[355],{"type":48,"value":231},{"type":43,"tag":167,"props":357,"children":358},{"style":192},[359],{"type":48,"value":360},",",{"type":43,"tag":167,"props":362,"children":363},{"style":207},[364],{"type":48,"value":365}," goal",{"type":43,"tag":167,"props":367,"children":368},{"style":192},[369],{"type":48,"value":215},{"type":43,"tag":167,"props":371,"children":372},{"style":192},[373],{"type":48,"value":220},{"type":43,"tag":167,"props":375,"children":376},{"style":223},[377],{"type":48,"value":378},"Map routers",{"type":43,"tag":167,"props":380,"children":381},{"style":192},[382],{"type":48,"value":231},{"type":43,"tag":167,"props":384,"children":385},{"style":192},[386],{"type":48,"value":360},{"type":43,"tag":167,"props":388,"children":389},{"style":207},[390],{"type":48,"value":391}," inputs",{"type":43,"tag":167,"props":393,"children":394},{"style":192},[395],{"type":48,"value":215},{"type":43,"tag":167,"props":397,"children":398},{"style":186},[399],{"type":48,"value":284},{"type":43,"tag":167,"props":401,"children":402},{"style":192},[403],{"type":48,"value":231},{"type":43,"tag":167,"props":405,"children":406},{"style":223},[407],{"type":48,"value":293},{"type":43,"tag":167,"props":409,"children":410},{"style":192},[411],{"type":48,"value":231},{"type":43,"tag":167,"props":413,"children":414},{"style":186},[415],{"type":48,"value":302},{"type":43,"tag":167,"props":417,"children":418},{"style":192},[419],{"type":48,"value":360},{"type":43,"tag":167,"props":421,"children":422},{"style":207},[423],{"type":48,"value":424}," produces",{"type":43,"tag":167,"props":426,"children":427},{"style":192},[428],{"type":48,"value":215},{"type":43,"tag":167,"props":430,"children":431},{"style":186},[432],{"type":48,"value":284},{"type":43,"tag":167,"props":434,"children":435},{"style":192},[436],{"type":48,"value":231},{"type":43,"tag":167,"props":438,"children":439},{"style":223},[440],{"type":48,"value":441},"router inventory",{"type":43,"tag":167,"props":443,"children":444},{"style":192},[445],{"type":48,"value":231},{"type":43,"tag":167,"props":447,"children":448},{"style":186},[449],{"type":48,"value":450},"] ",{"type":43,"tag":167,"props":452,"children":453},{"style":192},[454],{"type":48,"value":455},"},\n",{"type":43,"tag":167,"props":457,"children":459},{"class":169,"line":458},7,[460,464,468,472,476,481,485,489,493,497,501,506,510,514,518,522,526,530,534,538,542,546,550,554,558,562,567,571,575],{"type":43,"tag":167,"props":461,"children":462},{"style":192},[463],{"type":48,"value":333},{"type":43,"tag":167,"props":465,"children":466},{"style":207},[467],{"type":48,"value":338},{"type":43,"tag":167,"props":469,"children":470},{"style":192},[471],{"type":48,"value":215},{"type":43,"tag":167,"props":473,"children":474},{"style":192},[475],{"type":48,"value":220},{"type":43,"tag":167,"props":477,"children":478},{"style":223},[479],{"type":48,"value":480},"Audit",{"type":43,"tag":167,"props":482,"children":483},{"style":192},[484],{"type":48,"value":231},{"type":43,"tag":167,"props":486,"children":487},{"style":192},[488],{"type":48,"value":360},{"type":43,"tag":167,"props":490,"children":491},{"style":207},[492],{"type":48,"value":365},{"type":43,"tag":167,"props":494,"children":495},{"style":192},[496],{"type":48,"value":215},{"type":43,"tag":167,"props":498,"children":499},{"style":192},[500],{"type":48,"value":220},{"type":43,"tag":167,"props":502,"children":503},{"style":223},[504],{"type":48,"value":505},"Check the inventory",{"type":43,"tag":167,"props":507,"children":508},{"style":192},[509],{"type":48,"value":231},{"type":43,"tag":167,"props":511,"children":512},{"style":192},[513],{"type":48,"value":360},{"type":43,"tag":167,"props":515,"children":516},{"style":207},[517],{"type":48,"value":391},{"type":43,"tag":167,"props":519,"children":520},{"style":192},[521],{"type":48,"value":215},{"type":43,"tag":167,"props":523,"children":524},{"style":186},[525],{"type":48,"value":284},{"type":43,"tag":167,"props":527,"children":528},{"style":192},[529],{"type":48,"value":231},{"type":43,"tag":167,"props":531,"children":532},{"style":223},[533],{"type":48,"value":441},{"type":43,"tag":167,"props":535,"children":536},{"style":192},[537],{"type":48,"value":231},{"type":43,"tag":167,"props":539,"children":540},{"style":186},[541],{"type":48,"value":302},{"type":43,"tag":167,"props":543,"children":544},{"style":192},[545],{"type":48,"value":360},{"type":43,"tag":167,"props":547,"children":548},{"style":207},[549],{"type":48,"value":424},{"type":43,"tag":167,"props":551,"children":552},{"style":192},[553],{"type":48,"value":215},{"type":43,"tag":167,"props":555,"children":556},{"style":186},[557],{"type":48,"value":284},{"type":43,"tag":167,"props":559,"children":560},{"style":192},[561],{"type":48,"value":231},{"type":43,"tag":167,"props":563,"children":564},{"style":223},[565],{"type":48,"value":566},"router audits",{"type":43,"tag":167,"props":568,"children":569},{"style":192},[570],{"type":48,"value":231},{"type":43,"tag":167,"props":572,"children":573},{"style":186},[574],{"type":48,"value":450},{"type":43,"tag":167,"props":576,"children":577},{"style":192},[578],{"type":48,"value":455},{"type":43,"tag":167,"props":580,"children":582},{"class":169,"line":581},8,[583,587,591,595,599,604,608,612,616,620,624,629,633,637,641,645,649,653,657,661,665,669,673,677,681,685,690,694,698],{"type":43,"tag":167,"props":584,"children":585},{"style":192},[586],{"type":48,"value":333},{"type":43,"tag":167,"props":588,"children":589},{"style":207},[590],{"type":48,"value":338},{"type":43,"tag":167,"props":592,"children":593},{"style":192},[594],{"type":48,"value":215},{"type":43,"tag":167,"props":596,"children":597},{"style":192},[598],{"type":48,"value":220},{"type":43,"tag":167,"props":600,"children":601},{"style":223},[602],{"type":48,"value":603},"Synthesize",{"type":43,"tag":167,"props":605,"children":606},{"style":192},[607],{"type":48,"value":231},{"type":43,"tag":167,"props":609,"children":610},{"style":192},[611],{"type":48,"value":360},{"type":43,"tag":167,"props":613,"children":614},{"style":207},[615],{"type":48,"value":365},{"type":43,"tag":167,"props":617,"children":618},{"style":192},[619],{"type":48,"value":215},{"type":43,"tag":167,"props":621,"children":622},{"style":192},[623],{"type":48,"value":220},{"type":43,"tag":167,"props":625,"children":626},{"style":223},[627],{"type":48,"value":628},"Deliver the verdict",{"type":43,"tag":167,"props":630,"children":631},{"style":192},[632],{"type":48,"value":231},{"type":43,"tag":167,"props":634,"children":635},{"style":192},[636],{"type":48,"value":360},{"type":43,"tag":167,"props":638,"children":639},{"style":207},[640],{"type":48,"value":391},{"type":43,"tag":167,"props":642,"children":643},{"style":192},[644],{"type":48,"value":215},{"type":43,"tag":167,"props":646,"children":647},{"style":186},[648],{"type":48,"value":284},{"type":43,"tag":167,"props":650,"children":651},{"style":192},[652],{"type":48,"value":231},{"type":43,"tag":167,"props":654,"children":655},{"style":223},[656],{"type":48,"value":566},{"type":43,"tag":167,"props":658,"children":659},{"style":192},[660],{"type":48,"value":231},{"type":43,"tag":167,"props":662,"children":663},{"style":186},[664],{"type":48,"value":302},{"type":43,"tag":167,"props":666,"children":667},{"style":192},[668],{"type":48,"value":360},{"type":43,"tag":167,"props":670,"children":671},{"style":207},[672],{"type":48,"value":424},{"type":43,"tag":167,"props":674,"children":675},{"style":192},[676],{"type":48,"value":215},{"type":43,"tag":167,"props":678,"children":679},{"style":186},[680],{"type":48,"value":284},{"type":43,"tag":167,"props":682,"children":683},{"style":192},[684],{"type":48,"value":231},{"type":43,"tag":167,"props":686,"children":687},{"style":223},[688],{"type":48,"value":689},"audit verdict",{"type":43,"tag":167,"props":691,"children":692},{"style":192},[693],{"type":48,"value":231},{"type":43,"tag":167,"props":695,"children":696},{"style":186},[697],{"type":48,"value":450},{"type":43,"tag":167,"props":699,"children":700},{"style":192},[701],{"type":48,"value":455},{"type":43,"tag":167,"props":703,"children":705},{"class":169,"line":704},9,[706,711],{"type":43,"tag":167,"props":707,"children":708},{"style":186},[709],{"type":48,"value":710},"  ]",{"type":43,"tag":167,"props":712,"children":713},{"style":192},[714],{"type":48,"value":236},{"type":43,"tag":167,"props":716,"children":718},{"class":169,"line":717},10,[719,724,728,733,738,742,746,750,754,758,762,766,770,774,778,782,786,790,794,798,802,806,810,814,818],{"type":43,"tag":167,"props":720,"children":721},{"style":207},[722],{"type":48,"value":723},"  synthesis",{"type":43,"tag":167,"props":725,"children":726},{"style":192},[727],{"type":48,"value":215},{"type":43,"tag":167,"props":729,"children":730},{"style":192},[731],{"type":48,"value":732}," {",{"type":43,"tag":167,"props":734,"children":735},{"style":207},[736],{"type":48,"value":737}," phase",{"type":43,"tag":167,"props":739,"children":740},{"style":192},[741],{"type":48,"value":215},{"type":43,"tag":167,"props":743,"children":744},{"style":192},[745],{"type":48,"value":220},{"type":43,"tag":167,"props":747,"children":748},{"style":223},[749],{"type":48,"value":603},{"type":43,"tag":167,"props":751,"children":752},{"style":192},[753],{"type":48,"value":231},{"type":43,"tag":167,"props":755,"children":756},{"style":192},[757],{"type":48,"value":360},{"type":43,"tag":167,"props":759,"children":760},{"style":207},[761],{"type":48,"value":391},{"type":43,"tag":167,"props":763,"children":764},{"style":192},[765],{"type":48,"value":215},{"type":43,"tag":167,"props":767,"children":768},{"style":186},[769],{"type":48,"value":284},{"type":43,"tag":167,"props":771,"children":772},{"style":192},[773],{"type":48,"value":231},{"type":43,"tag":167,"props":775,"children":776},{"style":223},[777],{"type":48,"value":566},{"type":43,"tag":167,"props":779,"children":780},{"style":192},[781],{"type":48,"value":231},{"type":43,"tag":167,"props":783,"children":784},{"style":186},[785],{"type":48,"value":302},{"type":43,"tag":167,"props":787,"children":788},{"style":192},[789],{"type":48,"value":360},{"type":43,"tag":167,"props":791,"children":792},{"style":207},[793],{"type":48,"value":424},{"type":43,"tag":167,"props":795,"children":796},{"style":192},[797],{"type":48,"value":215},{"type":43,"tag":167,"props":799,"children":800},{"style":186},[801],{"type":48,"value":284},{"type":43,"tag":167,"props":803,"children":804},{"style":192},[805],{"type":48,"value":231},{"type":43,"tag":167,"props":807,"children":808},{"style":223},[809],{"type":48,"value":689},{"type":43,"tag":167,"props":811,"children":812},{"style":192},[813],{"type":48,"value":231},{"type":43,"tag":167,"props":815,"children":816},{"style":186},[817],{"type":48,"value":450},{"type":43,"tag":167,"props":819,"children":820},{"style":192},[821],{"type":48,"value":455},{"type":43,"tag":167,"props":823,"children":825},{"class":169,"line":824},11,[826],{"type":43,"tag":167,"props":827,"children":828},{"style":192},[829],{"type":48,"value":830},"}\n",{"type":43,"tag":167,"props":832,"children":834},{"class":169,"line":833},12,[835],{"type":43,"tag":167,"props":836,"children":838},{"emptyLinePlaceholder":837},true,[839],{"type":48,"value":840},"\n",{"type":43,"tag":167,"props":842,"children":844},{"class":169,"line":843},13,[845,851,856,860,864,868],{"type":43,"tag":167,"props":846,"children":848},{"style":847},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[849],{"type":48,"value":850},"phase",{"type":43,"tag":167,"props":852,"children":853},{"style":186},[854],{"type":48,"value":855},"(",{"type":43,"tag":167,"props":857,"children":858},{"style":192},[859],{"type":48,"value":231},{"type":43,"tag":167,"props":861,"children":862},{"style":223},[863],{"type":48,"value":351},{"type":43,"tag":167,"props":865,"children":866},{"style":192},[867],{"type":48,"value":231},{"type":43,"tag":167,"props":869,"children":870},{"style":186},[871],{"type":48,"value":872},")\n",{"type":43,"tag":167,"props":874,"children":876},{"class":169,"line":875},14,[877],{"type":43,"tag":167,"props":878,"children":879},{"emptyLinePlaceholder":837},[880],{"type":48,"value":840},{"type":43,"tag":167,"props":882,"children":884},{"class":169,"line":883},15,[885,890,895,899,904,909],{"type":43,"tag":167,"props":886,"children":887},{"style":180},[888],{"type":48,"value":889},"const",{"type":43,"tag":167,"props":891,"children":892},{"style":186},[893],{"type":48,"value":894}," inventory ",{"type":43,"tag":167,"props":896,"children":897},{"style":192},[898],{"type":48,"value":195},{"type":43,"tag":167,"props":900,"children":901},{"style":174},[902],{"type":48,"value":903}," await",{"type":43,"tag":167,"props":905,"children":906},{"style":847},[907],{"type":48,"value":908}," agent",{"type":43,"tag":167,"props":910,"children":911},{"style":186},[912],{"type":48,"value":913},"(\n",{"type":43,"tag":167,"props":915,"children":917},{"class":169,"line":916},16,[918,923,928,932],{"type":43,"tag":167,"props":919,"children":920},{"style":192},[921],{"type":48,"value":922},"  '",{"type":43,"tag":167,"props":924,"children":925},{"style":223},[926],{"type":48,"value":927},"List every *.router.ts file under packages\u002Fhost-router\u002Fsrc\u002Frouters. Reply with only JSON.",{"type":43,"tag":167,"props":929,"children":930},{"style":192},[931],{"type":48,"value":231},{"type":43,"tag":167,"props":933,"children":934},{"style":192},[935],{"type":48,"value":236},{"type":43,"tag":167,"props":937,"children":939},{"class":169,"line":938},17,[940],{"type":43,"tag":167,"props":941,"children":942},{"style":192},[943],{"type":48,"value":944},"  {\n",{"type":43,"tag":167,"props":946,"children":948},{"class":169,"line":947},18,[949,954,958,962,967,971],{"type":43,"tag":167,"props":950,"children":951},{"style":207},[952],{"type":48,"value":953},"    label",{"type":43,"tag":167,"props":955,"children":956},{"style":192},[957],{"type":48,"value":215},{"type":43,"tag":167,"props":959,"children":960},{"style":192},[961],{"type":48,"value":220},{"type":43,"tag":167,"props":963,"children":964},{"style":223},[965],{"type":48,"value":966},"route inventory",{"type":43,"tag":167,"props":968,"children":969},{"style":192},[970],{"type":48,"value":231},{"type":43,"tag":167,"props":972,"children":973},{"style":192},[974],{"type":48,"value":236},{"type":43,"tag":167,"props":976,"children":978},{"class":169,"line":977},19,[979,984,988,992,997,1001],{"type":43,"tag":167,"props":980,"children":981},{"style":207},[982],{"type":48,"value":983},"    objective",{"type":43,"tag":167,"props":985,"children":986},{"style":192},[987],{"type":48,"value":215},{"type":43,"tag":167,"props":989,"children":990},{"style":192},[991],{"type":48,"value":220},{"type":43,"tag":167,"props":993,"children":994},{"style":223},[995],{"type":48,"value":996},"Produce the complete router inventory for the audit.",{"type":43,"tag":167,"props":998,"children":999},{"style":192},[1000],{"type":48,"value":231},{"type":43,"tag":167,"props":1002,"children":1003},{"style":192},[1004],{"type":48,"value":236},{"type":43,"tag":167,"props":1006,"children":1008},{"class":169,"line":1007},20,[1009,1014,1018,1022,1026,1030,1034,1038],{"type":43,"tag":167,"props":1010,"children":1011},{"style":207},[1012],{"type":48,"value":1013},"    inputs",{"type":43,"tag":167,"props":1015,"children":1016},{"style":192},[1017],{"type":48,"value":215},{"type":43,"tag":167,"props":1019,"children":1020},{"style":186},[1021],{"type":48,"value":284},{"type":43,"tag":167,"props":1023,"children":1024},{"style":192},[1025],{"type":48,"value":231},{"type":43,"tag":167,"props":1027,"children":1028},{"style":223},[1029],{"type":48,"value":293},{"type":43,"tag":167,"props":1031,"children":1032},{"style":192},[1033],{"type":48,"value":231},{"type":43,"tag":167,"props":1035,"children":1036},{"style":186},[1037],{"type":48,"value":302},{"type":43,"tag":167,"props":1039,"children":1040},{"style":192},[1041],{"type":48,"value":236},{"type":43,"tag":167,"props":1043,"children":1045},{"class":169,"line":1044},21,[1046,1051,1055,1059,1063,1067],{"type":43,"tag":167,"props":1047,"children":1048},{"style":207},[1049],{"type":48,"value":1050},"    produces",{"type":43,"tag":167,"props":1052,"children":1053},{"style":192},[1054],{"type":48,"value":215},{"type":43,"tag":167,"props":1056,"children":1057},{"style":192},[1058],{"type":48,"value":220},{"type":43,"tag":167,"props":1060,"children":1061},{"style":223},[1062],{"type":48,"value":441},{"type":43,"tag":167,"props":1064,"children":1065},{"style":192},[1066],{"type":48,"value":231},{"type":43,"tag":167,"props":1068,"children":1069},{"style":192},[1070],{"type":48,"value":236},{"type":43,"tag":167,"props":1072,"children":1074},{"class":169,"line":1073},22,[1075,1080,1084,1088,1093,1097,1101,1106,1110,1114,1119,1123,1127,1131,1136,1140,1144,1148,1153,1157,1161,1166,1170,1174,1178,1182,1186,1191,1195,1199,1204,1208,1212,1216,1220,1224,1229,1233,1238,1242,1246],{"type":43,"tag":167,"props":1076,"children":1077},{"style":207},[1078],{"type":48,"value":1079},"    schema",{"type":43,"tag":167,"props":1081,"children":1082},{"style":192},[1083],{"type":48,"value":215},{"type":43,"tag":167,"props":1085,"children":1086},{"style":192},[1087],{"type":48,"value":732},{"type":43,"tag":167,"props":1089,"children":1090},{"style":207},[1091],{"type":48,"value":1092}," type",{"type":43,"tag":167,"props":1094,"children":1095},{"style":192},[1096],{"type":48,"value":215},{"type":43,"tag":167,"props":1098,"children":1099},{"style":192},[1100],{"type":48,"value":220},{"type":43,"tag":167,"props":1102,"children":1103},{"style":223},[1104],{"type":48,"value":1105},"object",{"type":43,"tag":167,"props":1107,"children":1108},{"style":192},[1109],{"type":48,"value":231},{"type":43,"tag":167,"props":1111,"children":1112},{"style":192},[1113],{"type":48,"value":360},{"type":43,"tag":167,"props":1115,"children":1116},{"style":207},[1117],{"type":48,"value":1118}," required",{"type":43,"tag":167,"props":1120,"children":1121},{"style":192},[1122],{"type":48,"value":215},{"type":43,"tag":167,"props":1124,"children":1125},{"style":186},[1126],{"type":48,"value":284},{"type":43,"tag":167,"props":1128,"children":1129},{"style":192},[1130],{"type":48,"value":231},{"type":43,"tag":167,"props":1132,"children":1133},{"style":223},[1134],{"type":48,"value":1135},"files",{"type":43,"tag":167,"props":1137,"children":1138},{"style":192},[1139],{"type":48,"value":231},{"type":43,"tag":167,"props":1141,"children":1142},{"style":186},[1143],{"type":48,"value":302},{"type":43,"tag":167,"props":1145,"children":1146},{"style":192},[1147],{"type":48,"value":360},{"type":43,"tag":167,"props":1149,"children":1150},{"style":207},[1151],{"type":48,"value":1152}," properties",{"type":43,"tag":167,"props":1154,"children":1155},{"style":192},[1156],{"type":48,"value":215},{"type":43,"tag":167,"props":1158,"children":1159},{"style":192},[1160],{"type":48,"value":732},{"type":43,"tag":167,"props":1162,"children":1163},{"style":207},[1164],{"type":48,"value":1165}," files",{"type":43,"tag":167,"props":1167,"children":1168},{"style":192},[1169],{"type":48,"value":215},{"type":43,"tag":167,"props":1171,"children":1172},{"style":192},[1173],{"type":48,"value":732},{"type":43,"tag":167,"props":1175,"children":1176},{"style":207},[1177],{"type":48,"value":1092},{"type":43,"tag":167,"props":1179,"children":1180},{"style":192},[1181],{"type":48,"value":215},{"type":43,"tag":167,"props":1183,"children":1184},{"style":192},[1185],{"type":48,"value":220},{"type":43,"tag":167,"props":1187,"children":1188},{"style":223},[1189],{"type":48,"value":1190},"array",{"type":43,"tag":167,"props":1192,"children":1193},{"style":192},[1194],{"type":48,"value":231},{"type":43,"tag":167,"props":1196,"children":1197},{"style":192},[1198],{"type":48,"value":360},{"type":43,"tag":167,"props":1200,"children":1201},{"style":207},[1202],{"type":48,"value":1203}," items",{"type":43,"tag":167,"props":1205,"children":1206},{"style":192},[1207],{"type":48,"value":215},{"type":43,"tag":167,"props":1209,"children":1210},{"style":192},[1211],{"type":48,"value":732},{"type":43,"tag":167,"props":1213,"children":1214},{"style":207},[1215],{"type":48,"value":1092},{"type":43,"tag":167,"props":1217,"children":1218},{"style":192},[1219],{"type":48,"value":215},{"type":43,"tag":167,"props":1221,"children":1222},{"style":192},[1223],{"type":48,"value":220},{"type":43,"tag":167,"props":1225,"children":1226},{"style":223},[1227],{"type":48,"value":1228},"string",{"type":43,"tag":167,"props":1230,"children":1231},{"style":192},[1232],{"type":48,"value":231},{"type":43,"tag":167,"props":1234,"children":1235},{"style":192},[1236],{"type":48,"value":1237}," }",{"type":43,"tag":167,"props":1239,"children":1240},{"style":192},[1241],{"type":48,"value":1237},{"type":43,"tag":167,"props":1243,"children":1244},{"style":192},[1245],{"type":48,"value":1237},{"type":43,"tag":167,"props":1247,"children":1248},{"style":192},[1249],{"type":48,"value":1250}," },\n",{"type":43,"tag":167,"props":1252,"children":1254},{"class":169,"line":1253},23,[1255],{"type":43,"tag":167,"props":1256,"children":1257},{"style":192},[1258],{"type":48,"value":1259},"  },\n",{"type":43,"tag":167,"props":1261,"children":1263},{"class":169,"line":1262},24,[1264],{"type":43,"tag":167,"props":1265,"children":1266},{"style":186},[1267],{"type":48,"value":872},{"type":43,"tag":167,"props":1269,"children":1271},{"class":169,"line":1270},25,[1272,1277,1282,1287,1292,1297,1301,1306,1310,1316,1320,1325,1329,1333,1338,1342],{"type":43,"tag":167,"props":1273,"children":1274},{"style":174},[1275],{"type":48,"value":1276},"if",{"type":43,"tag":167,"props":1278,"children":1279},{"style":186},[1280],{"type":48,"value":1281}," (",{"type":43,"tag":167,"props":1283,"children":1284},{"style":192},[1285],{"type":48,"value":1286},"!",{"type":43,"tag":167,"props":1288,"children":1289},{"style":186},[1290],{"type":48,"value":1291},"inventory) ",{"type":43,"tag":167,"props":1293,"children":1294},{"style":174},[1295],{"type":48,"value":1296},"return",{"type":43,"tag":167,"props":1298,"children":1299},{"style":192},[1300],{"type":48,"value":732},{"type":43,"tag":167,"props":1302,"children":1303},{"style":207},[1304],{"type":48,"value":1305}," ok",{"type":43,"tag":167,"props":1307,"children":1308},{"style":192},[1309],{"type":48,"value":215},{"type":43,"tag":167,"props":1311,"children":1313},{"style":1312},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1314],{"type":48,"value":1315}," false",{"type":43,"tag":167,"props":1317,"children":1318},{"style":192},[1319],{"type":48,"value":360},{"type":43,"tag":167,"props":1321,"children":1322},{"style":207},[1323],{"type":48,"value":1324}," error",{"type":43,"tag":167,"props":1326,"children":1327},{"style":192},[1328],{"type":48,"value":215},{"type":43,"tag":167,"props":1330,"children":1331},{"style":192},[1332],{"type":48,"value":220},{"type":43,"tag":167,"props":1334,"children":1335},{"style":223},[1336],{"type":48,"value":1337},"inventory failed",{"type":43,"tag":167,"props":1339,"children":1340},{"style":192},[1341],{"type":48,"value":231},{"type":43,"tag":167,"props":1343,"children":1344},{"style":192},[1345],{"type":48,"value":1346}," }\n",{"type":43,"tag":167,"props":1348,"children":1350},{"class":169,"line":1349},26,[1351],{"type":43,"tag":167,"props":1352,"children":1353},{"emptyLinePlaceholder":837},[1354],{"type":48,"value":840},{"type":43,"tag":167,"props":1356,"children":1358},{"class":169,"line":1357},27,[1359,1363,1367,1371,1375,1379],{"type":43,"tag":167,"props":1360,"children":1361},{"style":847},[1362],{"type":48,"value":850},{"type":43,"tag":167,"props":1364,"children":1365},{"style":186},[1366],{"type":48,"value":855},{"type":43,"tag":167,"props":1368,"children":1369},{"style":192},[1370],{"type":48,"value":231},{"type":43,"tag":167,"props":1372,"children":1373},{"style":223},[1374],{"type":48,"value":480},{"type":43,"tag":167,"props":1376,"children":1377},{"style":192},[1378],{"type":48,"value":231},{"type":43,"tag":167,"props":1380,"children":1381},{"style":186},[1382],{"type":48,"value":872},{"type":43,"tag":167,"props":1384,"children":1386},{"class":169,"line":1385},28,[1387,1391,1396,1400,1404,1408],{"type":43,"tag":167,"props":1388,"children":1389},{"style":180},[1390],{"type":48,"value":889},{"type":43,"tag":167,"props":1392,"children":1393},{"style":186},[1394],{"type":48,"value":1395}," audits ",{"type":43,"tag":167,"props":1397,"children":1398},{"style":192},[1399],{"type":48,"value":195},{"type":43,"tag":167,"props":1401,"children":1402},{"style":174},[1403],{"type":48,"value":903},{"type":43,"tag":167,"props":1405,"children":1406},{"style":847},[1407],{"type":48,"value":908},{"type":43,"tag":167,"props":1409,"children":1410},{"style":186},[1411],{"type":48,"value":913},{"type":43,"tag":167,"props":1413,"children":1415},{"class":169,"line":1414},29,[1416,1420,1425,1429],{"type":43,"tag":167,"props":1417,"children":1418},{"style":192},[1419],{"type":48,"value":922},{"type":43,"tag":167,"props":1421,"children":1422},{"style":223},[1423],{"type":48,"value":1424},"Audit the router inventory against the one-line-forward rule. Return every violation as JSON.",{"type":43,"tag":167,"props":1426,"children":1427},{"style":192},[1428],{"type":48,"value":231},{"type":43,"tag":167,"props":1430,"children":1431},{"style":192},[1432],{"type":48,"value":236},{"type":43,"tag":167,"props":1434,"children":1436},{"class":169,"line":1435},30,[1437,1442,1447,1451,1455,1460,1464,1468,1473,1477,1481,1486,1490,1494,1498,1502,1506,1510,1514,1518,1522,1526,1530,1534,1538,1542,1546,1550,1555,1559,1563,1567,1571,1575,1579,1583,1587,1591,1595,1599,1603,1608,1612,1616,1621],{"type":43,"tag":167,"props":1438,"children":1439},{"style":192},[1440],{"type":48,"value":1441},"  {",{"type":43,"tag":167,"props":1443,"children":1444},{"style":207},[1445],{"type":48,"value":1446}," label",{"type":43,"tag":167,"props":1448,"children":1449},{"style":192},[1450],{"type":48,"value":215},{"type":43,"tag":167,"props":1452,"children":1453},{"style":192},[1454],{"type":48,"value":220},{"type":43,"tag":167,"props":1456,"children":1457},{"style":223},[1458],{"type":48,"value":1459},"router audit",{"type":43,"tag":167,"props":1461,"children":1462},{"style":192},[1463],{"type":48,"value":231},{"type":43,"tag":167,"props":1465,"children":1466},{"style":192},[1467],{"type":48,"value":360},{"type":43,"tag":167,"props":1469,"children":1470},{"style":207},[1471],{"type":48,"value":1472}," objective",{"type":43,"tag":167,"props":1474,"children":1475},{"style":192},[1476],{"type":48,"value":215},{"type":43,"tag":167,"props":1478,"children":1479},{"style":192},[1480],{"type":48,"value":220},{"type":43,"tag":167,"props":1482,"children":1483},{"style":223},[1484],{"type":48,"value":1485},"Audit all discovered routers for inline logic.",{"type":43,"tag":167,"props":1487,"children":1488},{"style":192},[1489],{"type":48,"value":231},{"type":43,"tag":167,"props":1491,"children":1492},{"style":192},[1493],{"type":48,"value":360},{"type":43,"tag":167,"props":1495,"children":1496},{"style":207},[1497],{"type":48,"value":391},{"type":43,"tag":167,"props":1499,"children":1500},{"style":192},[1501],{"type":48,"value":215},{"type":43,"tag":167,"props":1503,"children":1504},{"style":186},[1505],{"type":48,"value":284},{"type":43,"tag":167,"props":1507,"children":1508},{"style":192},[1509],{"type":48,"value":231},{"type":43,"tag":167,"props":1511,"children":1512},{"style":223},[1513],{"type":48,"value":441},{"type":43,"tag":167,"props":1515,"children":1516},{"style":192},[1517],{"type":48,"value":231},{"type":43,"tag":167,"props":1519,"children":1520},{"style":186},[1521],{"type":48,"value":302},{"type":43,"tag":167,"props":1523,"children":1524},{"style":192},[1525],{"type":48,"value":360},{"type":43,"tag":167,"props":1527,"children":1528},{"style":207},[1529],{"type":48,"value":424},{"type":43,"tag":167,"props":1531,"children":1532},{"style":192},[1533],{"type":48,"value":215},{"type":43,"tag":167,"props":1535,"children":1536},{"style":192},[1537],{"type":48,"value":220},{"type":43,"tag":167,"props":1539,"children":1540},{"style":223},[1541],{"type":48,"value":566},{"type":43,"tag":167,"props":1543,"children":1544},{"style":192},[1545],{"type":48,"value":231},{"type":43,"tag":167,"props":1547,"children":1548},{"style":192},[1549],{"type":48,"value":360},{"type":43,"tag":167,"props":1551,"children":1552},{"style":207},[1553],{"type":48,"value":1554}," schema",{"type":43,"tag":167,"props":1556,"children":1557},{"style":192},[1558],{"type":48,"value":215},{"type":43,"tag":167,"props":1560,"children":1561},{"style":192},[1562],{"type":48,"value":732},{"type":43,"tag":167,"props":1564,"children":1565},{"style":207},[1566],{"type":48,"value":1092},{"type":43,"tag":167,"props":1568,"children":1569},{"style":192},[1570],{"type":48,"value":215},{"type":43,"tag":167,"props":1572,"children":1573},{"style":192},[1574],{"type":48,"value":220},{"type":43,"tag":167,"props":1576,"children":1577},{"style":223},[1578],{"type":48,"value":1105},{"type":43,"tag":167,"props":1580,"children":1581},{"style":192},[1582],{"type":48,"value":231},{"type":43,"tag":167,"props":1584,"children":1585},{"style":192},[1586],{"type":48,"value":360},{"type":43,"tag":167,"props":1588,"children":1589},{"style":207},[1590],{"type":48,"value":1118},{"type":43,"tag":167,"props":1592,"children":1593},{"style":192},[1594],{"type":48,"value":215},{"type":43,"tag":167,"props":1596,"children":1597},{"style":186},[1598],{"type":48,"value":284},{"type":43,"tag":167,"props":1600,"children":1601},{"style":192},[1602],{"type":48,"value":231},{"type":43,"tag":167,"props":1604,"children":1605},{"style":223},[1606],{"type":48,"value":1607},"violations",{"type":43,"tag":167,"props":1609,"children":1610},{"style":192},[1611],{"type":48,"value":231},{"type":43,"tag":167,"props":1613,"children":1614},{"style":186},[1615],{"type":48,"value":450},{"type":43,"tag":167,"props":1617,"children":1618},{"style":192},[1619],{"type":48,"value":1620},"}",{"type":43,"tag":167,"props":1622,"children":1623},{"style":192},[1624],{"type":48,"value":1250},{"type":43,"tag":167,"props":1626,"children":1628},{"class":169,"line":1627},31,[1629],{"type":43,"tag":167,"props":1630,"children":1631},{"style":186},[1632],{"type":48,"value":872},{"type":43,"tag":167,"props":1634,"children":1636},{"class":169,"line":1635},32,[1637],{"type":43,"tag":167,"props":1638,"children":1639},{"emptyLinePlaceholder":837},[1640],{"type":48,"value":840},{"type":43,"tag":167,"props":1642,"children":1644},{"class":169,"line":1643},33,[1645,1649,1653,1657,1661,1665],{"type":43,"tag":167,"props":1646,"children":1647},{"style":847},[1648],{"type":48,"value":850},{"type":43,"tag":167,"props":1650,"children":1651},{"style":186},[1652],{"type":48,"value":855},{"type":43,"tag":167,"props":1654,"children":1655},{"style":192},[1656],{"type":48,"value":231},{"type":43,"tag":167,"props":1658,"children":1659},{"style":223},[1660],{"type":48,"value":603},{"type":43,"tag":167,"props":1662,"children":1663},{"style":192},[1664],{"type":48,"value":231},{"type":43,"tag":167,"props":1666,"children":1667},{"style":186},[1668],{"type":48,"value":872},{"type":43,"tag":167,"props":1670,"children":1672},{"class":169,"line":1671},34,[1673,1677,1682,1686,1690,1694],{"type":43,"tag":167,"props":1674,"children":1675},{"style":180},[1676],{"type":48,"value":889},{"type":43,"tag":167,"props":1678,"children":1679},{"style":186},[1680],{"type":48,"value":1681}," verdict ",{"type":43,"tag":167,"props":1683,"children":1684},{"style":192},[1685],{"type":48,"value":195},{"type":43,"tag":167,"props":1687,"children":1688},{"style":174},[1689],{"type":48,"value":903},{"type":43,"tag":167,"props":1691,"children":1692},{"style":847},[1693],{"type":48,"value":908},{"type":43,"tag":167,"props":1695,"children":1696},{"style":186},[1697],{"type":48,"value":913},{"type":43,"tag":167,"props":1699,"children":1701},{"class":169,"line":1700},35,[1702,1706,1711,1715],{"type":43,"tag":167,"props":1703,"children":1704},{"style":192},[1705],{"type":48,"value":922},{"type":43,"tag":167,"props":1707,"children":1708},{"style":223},[1709],{"type":48,"value":1710},"Summarize the supplied router audits into {ok, violations: [...]}. Reply with only JSON.",{"type":43,"tag":167,"props":1712,"children":1713},{"style":192},[1714],{"type":48,"value":231},{"type":43,"tag":167,"props":1716,"children":1717},{"style":192},[1718],{"type":48,"value":236},{"type":43,"tag":167,"props":1720,"children":1722},{"class":169,"line":1721},36,[1723,1727,1731,1735,1739,1744,1748,1752,1756,1760,1764,1769,1773,1777,1781,1785,1789,1794,1798,1802,1806,1810,1814,1818,1822,1826,1830,1834,1838,1842,1846,1850,1854,1858,1862,1866,1870,1874,1878,1882,1886,1890,1894,1898,1902,1906,1910,1915,1919,1923,1927,1931,1935,1939,1943],{"type":43,"tag":167,"props":1724,"children":1725},{"style":192},[1726],{"type":48,"value":1441},{"type":43,"tag":167,"props":1728,"children":1729},{"style":207},[1730],{"type":48,"value":1446},{"type":43,"tag":167,"props":1732,"children":1733},{"style":192},[1734],{"type":48,"value":215},{"type":43,"tag":167,"props":1736,"children":1737},{"style":192},[1738],{"type":48,"value":220},{"type":43,"tag":167,"props":1740,"children":1741},{"style":223},[1742],{"type":48,"value":1743},"final verdict",{"type":43,"tag":167,"props":1745,"children":1746},{"style":192},[1747],{"type":48,"value":231},{"type":43,"tag":167,"props":1749,"children":1750},{"style":192},[1751],{"type":48,"value":360},{"type":43,"tag":167,"props":1753,"children":1754},{"style":207},[1755],{"type":48,"value":908},{"type":43,"tag":167,"props":1757,"children":1758},{"style":192},[1759],{"type":48,"value":215},{"type":43,"tag":167,"props":1761,"children":1762},{"style":192},[1763],{"type":48,"value":220},{"type":43,"tag":167,"props":1765,"children":1766},{"style":223},[1767],{"type":48,"value":1768},"Plan",{"type":43,"tag":167,"props":1770,"children":1771},{"style":192},[1772],{"type":48,"value":231},{"type":43,"tag":167,"props":1774,"children":1775},{"style":192},[1776],{"type":48,"value":360},{"type":43,"tag":167,"props":1778,"children":1779},{"style":207},[1780],{"type":48,"value":1472},{"type":43,"tag":167,"props":1782,"children":1783},{"style":192},[1784],{"type":48,"value":215},{"type":43,"tag":167,"props":1786,"children":1787},{"style":192},[1788],{"type":48,"value":220},{"type":43,"tag":167,"props":1790,"children":1791},{"style":223},[1792],{"type":48,"value":1793},"Create the final decision-ready audit report.",{"type":43,"tag":167,"props":1795,"children":1796},{"style":192},[1797],{"type":48,"value":231},{"type":43,"tag":167,"props":1799,"children":1800},{"style":192},[1801],{"type":48,"value":360},{"type":43,"tag":167,"props":1803,"children":1804},{"style":207},[1805],{"type":48,"value":391},{"type":43,"tag":167,"props":1807,"children":1808},{"style":192},[1809],{"type":48,"value":215},{"type":43,"tag":167,"props":1811,"children":1812},{"style":186},[1813],{"type":48,"value":284},{"type":43,"tag":167,"props":1815,"children":1816},{"style":192},[1817],{"type":48,"value":231},{"type":43,"tag":167,"props":1819,"children":1820},{"style":223},[1821],{"type":48,"value":566},{"type":43,"tag":167,"props":1823,"children":1824},{"style":192},[1825],{"type":48,"value":231},{"type":43,"tag":167,"props":1827,"children":1828},{"style":186},[1829],{"type":48,"value":302},{"type":43,"tag":167,"props":1831,"children":1832},{"style":192},[1833],{"type":48,"value":360},{"type":43,"tag":167,"props":1835,"children":1836},{"style":207},[1837],{"type":48,"value":424},{"type":43,"tag":167,"props":1839,"children":1840},{"style":192},[1841],{"type":48,"value":215},{"type":43,"tag":167,"props":1843,"children":1844},{"style":192},[1845],{"type":48,"value":220},{"type":43,"tag":167,"props":1847,"children":1848},{"style":223},[1849],{"type":48,"value":689},{"type":43,"tag":167,"props":1851,"children":1852},{"style":192},[1853],{"type":48,"value":231},{"type":43,"tag":167,"props":1855,"children":1856},{"style":192},[1857],{"type":48,"value":360},{"type":43,"tag":167,"props":1859,"children":1860},{"style":207},[1861],{"type":48,"value":1554},{"type":43,"tag":167,"props":1863,"children":1864},{"style":192},[1865],{"type":48,"value":215},{"type":43,"tag":167,"props":1867,"children":1868},{"style":192},[1869],{"type":48,"value":732},{"type":43,"tag":167,"props":1871,"children":1872},{"style":207},[1873],{"type":48,"value":1092},{"type":43,"tag":167,"props":1875,"children":1876},{"style":192},[1877],{"type":48,"value":215},{"type":43,"tag":167,"props":1879,"children":1880},{"style":192},[1881],{"type":48,"value":220},{"type":43,"tag":167,"props":1883,"children":1884},{"style":223},[1885],{"type":48,"value":1105},{"type":43,"tag":167,"props":1887,"children":1888},{"style":192},[1889],{"type":48,"value":231},{"type":43,"tag":167,"props":1891,"children":1892},{"style":192},[1893],{"type":48,"value":360},{"type":43,"tag":167,"props":1895,"children":1896},{"style":207},[1897],{"type":48,"value":1118},{"type":43,"tag":167,"props":1899,"children":1900},{"style":192},[1901],{"type":48,"value":215},{"type":43,"tag":167,"props":1903,"children":1904},{"style":186},[1905],{"type":48,"value":284},{"type":43,"tag":167,"props":1907,"children":1908},{"style":192},[1909],{"type":48,"value":231},{"type":43,"tag":167,"props":1911,"children":1912},{"style":223},[1913],{"type":48,"value":1914},"ok",{"type":43,"tag":167,"props":1916,"children":1917},{"style":192},[1918],{"type":48,"value":231},{"type":43,"tag":167,"props":1920,"children":1921},{"style":192},[1922],{"type":48,"value":360},{"type":43,"tag":167,"props":1924,"children":1925},{"style":192},[1926],{"type":48,"value":220},{"type":43,"tag":167,"props":1928,"children":1929},{"style":223},[1930],{"type":48,"value":1607},{"type":43,"tag":167,"props":1932,"children":1933},{"style":192},[1934],{"type":48,"value":231},{"type":43,"tag":167,"props":1936,"children":1937},{"style":186},[1938],{"type":48,"value":450},{"type":43,"tag":167,"props":1940,"children":1941},{"style":192},[1942],{"type":48,"value":1620},{"type":43,"tag":167,"props":1944,"children":1945},{"style":192},[1946],{"type":48,"value":1250},{"type":43,"tag":167,"props":1948,"children":1950},{"class":169,"line":1949},37,[1951],{"type":43,"tag":167,"props":1952,"children":1953},{"style":186},[1954],{"type":48,"value":872},{"type":43,"tag":167,"props":1956,"children":1958},{"class":169,"line":1957},38,[1959,1963],{"type":43,"tag":167,"props":1960,"children":1961},{"style":174},[1962],{"type":48,"value":1296},{"type":43,"tag":167,"props":1964,"children":1965},{"style":186},[1966],{"type":48,"value":1967}," verdict\n",{"type":43,"tag":51,"props":1969,"children":1970},{},[1971,1973,1979,1981,1987,1989,1995],{"type":48,"value":1972},"In strict mode, activate declared phases exactly in order; agent inputs are artifact-name arrays (not inline records), every declared phase output must be published exactly once (an agent automatically publishes its declared ",{"type":43,"tag":57,"props":1974,"children":1976},{"className":1975},[],[1977],{"type":48,"value":1978},"produces",{"type":48,"value":1980},", or use ",{"type":43,"tag":57,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":48,"value":1986},"publish(name, value)",{"type":48,"value":1988}," for aggregates), and the final ",{"type":43,"tag":57,"props":1990,"children":1992},{"className":1991},[],[1993],{"type":48,"value":1994},"synthesis",{"type":48,"value":1996}," phase must publish its named final artifact. Give every phase a goal, every agent a unique label and objective, and all real handoffs named inputs\u002Foutputs.",{"type":43,"tag":51,"props":1998,"children":1999},{},[2000,2002,2008,2010,2016,2018,2024,2026,2031,2033,2038],{"type":48,"value":2001},"Rules: plain JavaScript (no TypeScript, no ",{"type":43,"tag":57,"props":2003,"children":2005},{"className":2004},[],[2006],{"type":48,"value":2007},"import",{"type":48,"value":2009},"\u002F",{"type":43,"tag":57,"props":2011,"children":2013},{"className":2012},[],[2014],{"type":48,"value":2015},"require",{"type":48,"value":2017},"); the leading\n",{"type":43,"tag":57,"props":2019,"children":2021},{"className":2020},[],[2022],{"type":48,"value":2023},"export const meta = { name, description }",{"type":48,"value":2025}," is optional but conventional; the script\nmust call ",{"type":43,"tag":57,"props":2027,"children":2029},{"className":2028},[],[2030],{"type":48,"value":70},{"type":48,"value":2032}," at least once; the return value must be JSON-serializable (a\ncommon mistake is returning an unawaited ",{"type":43,"tag":57,"props":2034,"children":2036},{"className":2035},[],[2037],{"type":48,"value":70},{"type":48,"value":2039}," promise).",{"type":43,"tag":74,"props":2041,"children":2043},{"id":2042},"api",[2044],{"type":48,"value":2045},"API",{"type":43,"tag":2047,"props":2048,"children":2049},"table",{},[2050,2069],{"type":43,"tag":2051,"props":2052,"children":2053},"thead",{},[2054],{"type":43,"tag":2055,"props":2056,"children":2057},"tr",{},[2058,2064],{"type":43,"tag":2059,"props":2060,"children":2061},"th",{},[2062],{"type":48,"value":2063},"Global",{"type":43,"tag":2059,"props":2065,"children":2066},{},[2067],{"type":48,"value":2068},"Behavior",{"type":43,"tag":2070,"props":2071,"children":2072},"tbody",{},[2073,2193,2229,2254,2300,2317,2348,2372],{"type":43,"tag":2055,"props":2074,"children":2075},{},[2076,2086],{"type":43,"tag":2077,"props":2078,"children":2079},"td",{},[2080],{"type":43,"tag":57,"props":2081,"children":2083},{"className":2082},[],[2084],{"type":48,"value":2085},"agent(prompt, opts)",{"type":43,"tag":2077,"props":2087,"children":2088},{},[2089,2091,2097,2099,2105,2107,2113,2115,2121,2123,2129,2131,2136,2138,2144,2145,2151,2153,2159,2161,2167,2169,2175,2177,2183,2185,2191],{"type":48,"value":2090},"Runs one subagent; resolves to its final text, or the parsed+shape-checked object when ",{"type":43,"tag":57,"props":2092,"children":2094},{"className":2093},[],[2095],{"type":48,"value":2096},"opts.schema",{"type":48,"value":2098}," is set, or ",{"type":43,"tag":57,"props":2100,"children":2102},{"className":2101},[],[2103],{"type":48,"value":2104},"null",{"type":48,"value":2106}," on failure. Opts: ",{"type":43,"tag":57,"props":2108,"children":2110},{"className":2109},[],[2111],{"type":48,"value":2112},"label",{"type":48,"value":2114}," (short, unique - drives the live display), ",{"type":43,"tag":57,"props":2116,"children":2118},{"className":2117},[],[2119],{"type":48,"value":2120},"objective",{"type":48,"value":2122}," (responsibility), ",{"type":43,"tag":57,"props":2124,"children":2126},{"className":2125},[],[2127],{"type":48,"value":2128},"inputs",{"type":48,"value":2130}," (artifact-name strings or a record of named string values), ",{"type":43,"tag":57,"props":2132,"children":2134},{"className":2133},[],[2135],{"type":48,"value":1978},{"type":48,"value":2137}," (one artifact name), ",{"type":43,"tag":57,"props":2139,"children":2141},{"className":2140},[],[2142],{"type":48,"value":2143},"agent",{"type":48,"value":1281},{"type":43,"tag":57,"props":2146,"children":2148},{"className":2147},[],[2149],{"type":48,"value":2150},"'Explore'",{"type":48,"value":2152}," default, ",{"type":43,"tag":57,"props":2154,"children":2156},{"className":2155},[],[2157],{"type":48,"value":2158},"'Plan'",{"type":48,"value":2160},", or ",{"type":43,"tag":57,"props":2162,"children":2164},{"className":2163},[],[2165],{"type":48,"value":2166},"'General'",{"type":48,"value":2168},"), ",{"type":43,"tag":57,"props":2170,"children":2172},{"className":2171},[],[2173],{"type":48,"value":2174},"schema",{"type":48,"value":2176}," (plain JSON Schema), ",{"type":43,"tag":57,"props":2178,"children":2180},{"className":2179},[],[2181],{"type":48,"value":2182},"cwd",{"type":48,"value":2184},", ",{"type":43,"tag":57,"props":2186,"children":2188},{"className":2187},[],[2189],{"type":48,"value":2190},"model",{"type":48,"value":2192}," (tier keyword, see below).",{"type":43,"tag":2055,"props":2194,"children":2195},{},[2196,2205],{"type":43,"tag":2077,"props":2197,"children":2198},{},[2199],{"type":43,"tag":57,"props":2200,"children":2202},{"className":2201},[],[2203],{"type":48,"value":2204},"parallel(thunks)",{"type":43,"tag":2077,"props":2206,"children":2207},{},[2208,2214,2216,2220,2222,2227],{"type":43,"tag":57,"props":2209,"children":2211},{"className":2210},[],[2212],{"type":48,"value":2213},"await parallel(items.map(i => () => agent(...)))",{"type":48,"value":2215}," - functions, ",{"type":43,"tag":91,"props":2217,"children":2218},{},[2219],{"type":48,"value":112},{"type":48,"value":2221}," promises. Results in input order; failed branches are ",{"type":43,"tag":57,"props":2223,"children":2225},{"className":2224},[],[2226],{"type":48,"value":2104},{"type":48,"value":2228},".",{"type":43,"tag":2055,"props":2230,"children":2231},{},[2232,2241],{"type":43,"tag":2077,"props":2233,"children":2234},{},[2235],{"type":43,"tag":57,"props":2236,"children":2238},{"className":2237},[],[2239],{"type":48,"value":2240},"pipeline(items, ...stages)",{"type":43,"tag":2077,"props":2242,"children":2243},{},[2244,2246,2252],{"type":48,"value":2245},"Fans items through sequential stages (map → verify → summarize). Items run concurrently; each item's stages run in order; each stage receives ",{"type":43,"tag":57,"props":2247,"children":2249},{"className":2248},[],[2250],{"type":48,"value":2251},"(previousValue, originalItem, index)",{"type":48,"value":2253},". A failed stage nulls that item's slot.",{"type":43,"tag":2055,"props":2255,"children":2256},{},[2257,2266],{"type":43,"tag":2077,"props":2258,"children":2259},{},[2260],{"type":43,"tag":57,"props":2261,"children":2263},{"className":2262},[],[2264],{"type":48,"value":2265},"phase(title, meta?)",{"type":43,"tag":2077,"props":2267,"children":2268},{},[2269,2271,2277,2279,2285,2286,2291,2293,2298],{"type":48,"value":2270},"Marks a new stage of work for the live progress display. Prefer ",{"type":43,"tag":57,"props":2272,"children":2274},{"className":2273},[],[2275],{"type":48,"value":2276},"phase('Audit', { goal: '...', inputs: ['inventory'], produces: ['findings'] })",{"type":48,"value":2278}," so the upcoming plan and dependencies are visible before it runs. ",{"type":43,"tag":57,"props":2280,"children":2282},{"className":2281},[],[2283],{"type":48,"value":2284},"goal",{"type":48,"value":2184},{"type":43,"tag":57,"props":2287,"children":2289},{"className":2288},[],[2290],{"type":48,"value":2128},{"type":48,"value":2292},", and ",{"type":43,"tag":57,"props":2294,"children":2296},{"className":2295},[],[2297],{"type":48,"value":1978},{"type":48,"value":2299}," are optional; dynamic\u002Fconditional phases remain supported.",{"type":43,"tag":2055,"props":2301,"children":2302},{},[2303,2312],{"type":43,"tag":2077,"props":2304,"children":2305},{},[2306],{"type":43,"tag":57,"props":2307,"children":2309},{"className":2308},[],[2310],{"type":48,"value":2311},"log(message)",{"type":43,"tag":2077,"props":2313,"children":2314},{},[2315],{"type":48,"value":2316},"Appends a workflow-level log line (shown in the expanded view).",{"type":43,"tag":2055,"props":2318,"children":2319},{},[2320,2329],{"type":43,"tag":2077,"props":2321,"children":2322},{},[2323],{"type":43,"tag":57,"props":2324,"children":2326},{"className":2325},[],[2327],{"type":48,"value":2328},"parseJson(text)",{"type":43,"tag":2077,"props":2330,"children":2331},{},[2332,2334,2339,2341,2346],{"type":48,"value":2333},"Extracts JSON from an agent's text reply, tolerating fences and surrounding prose. Prefer ",{"type":43,"tag":57,"props":2335,"children":2337},{"className":2336},[],[2338],{"type":48,"value":2174},{"type":48,"value":2340}," on ",{"type":43,"tag":57,"props":2342,"children":2344},{"className":2343},[],[2345],{"type":48,"value":70},{"type":48,"value":2347}," instead.",{"type":43,"tag":2055,"props":2349,"children":2350},{},[2351,2360],{"type":43,"tag":2077,"props":2352,"children":2353},{},[2354],{"type":43,"tag":57,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":48,"value":2359},"args",{"type":43,"tag":2077,"props":2361,"children":2362},{},[2363,2365,2370],{"type":48,"value":2364},"The JSON value passed in the tool call's ",{"type":43,"tag":57,"props":2366,"children":2368},{"className":2367},[],[2369],{"type":48,"value":2359},{"type":48,"value":2371}," parameter.",{"type":43,"tag":2055,"props":2373,"children":2374},{},[2375,2383],{"type":43,"tag":2077,"props":2376,"children":2377},{},[2378],{"type":43,"tag":57,"props":2379,"children":2381},{"className":2380},[],[2382],{"type":48,"value":2182},{"type":43,"tag":2077,"props":2384,"children":2385},{},[2386],{"type":48,"value":2387},"The workflow's working directory (string).",{"type":43,"tag":51,"props":2389,"children":2390},{},[2391,2393,2398,2399,2405,2406,2412],{"type":48,"value":2392},"Limits: 8 agents run concurrently, 256 per workflow. ",{"type":43,"tag":57,"props":2394,"children":2396},{"className":2395},[],[2397],{"type":48,"value":2015},{"type":48,"value":2184},{"type":43,"tag":57,"props":2400,"children":2402},{"className":2401},[],[2403],{"type":48,"value":2404},"fs",{"type":48,"value":2184},{"type":43,"tag":57,"props":2407,"children":2409},{"className":2408},[],[2410],{"type":48,"value":2411},"fetch",{"type":48,"value":2413},", and\ntimers are unavailable inside the script - all real work happens inside subagents.",{"type":43,"tag":74,"props":2415,"children":2417},{"id":2416},"which-agent",[2418],{"type":48,"value":2419},"Which agent",{"type":43,"tag":2047,"props":2421,"children":2422},{},[2423,2449],{"type":43,"tag":2051,"props":2424,"children":2425},{},[2426],{"type":43,"tag":2055,"props":2427,"children":2428},{},[2429,2434,2439,2444],{"type":43,"tag":2059,"props":2430,"children":2431},{},[2432],{"type":48,"value":2433},"Agent",{"type":43,"tag":2059,"props":2435,"children":2436},{},[2437],{"type":48,"value":2438},"Capability",{"type":43,"tag":2059,"props":2440,"children":2441},{},[2442],{"type":48,"value":2443},"Model (default)",{"type":43,"tag":2059,"props":2445,"children":2446},{},[2447],{"type":48,"value":2448},"Use for",{"type":43,"tag":2070,"props":2450,"children":2451},{},[2452,2481,2506],{"type":43,"tag":2055,"props":2453,"children":2454},{},[2455,2466,2471,2476],{"type":43,"tag":2077,"props":2456,"children":2457},{},[2458,2464],{"type":43,"tag":57,"props":2459,"children":2461},{"className":2460},[],[2462],{"type":48,"value":2463},"Explore",{"type":48,"value":2465}," (default)",{"type":43,"tag":2077,"props":2467,"children":2468},{},[2469],{"type":48,"value":2470},"Read-only",{"type":43,"tag":2077,"props":2472,"children":2473},{},[2474],{"type":48,"value":2475},"Fast\u002Fcheap",{"type":43,"tag":2077,"props":2477,"children":2478},{},[2479],{"type":48,"value":2480},"Recon, per-item checks, broad search",{"type":43,"tag":2055,"props":2482,"children":2483},{},[2484,2492,2496,2501],{"type":43,"tag":2077,"props":2485,"children":2486},{},[2487],{"type":43,"tag":57,"props":2488,"children":2490},{"className":2489},[],[2491],{"type":48,"value":1768},{"type":43,"tag":2077,"props":2493,"children":2494},{},[2495],{"type":48,"value":2470},{"type":43,"tag":2077,"props":2497,"children":2498},{},[2499],{"type":48,"value":2500},"Inherits your model",{"type":43,"tag":2077,"props":2502,"children":2503},{},[2504],{"type":48,"value":2505},"Judgment-heavy planning or synthesis",{"type":43,"tag":2055,"props":2507,"children":2508},{},[2509,2518,2526,2530],{"type":43,"tag":2077,"props":2510,"children":2511},{},[2512],{"type":43,"tag":57,"props":2513,"children":2515},{"className":2514},[],[2516],{"type":48,"value":2517},"General",{"type":43,"tag":2077,"props":2519,"children":2520},{},[2521],{"type":43,"tag":91,"props":2522,"children":2523},{},[2524],{"type":48,"value":2525},"Read-write",{"type":43,"tag":2077,"props":2527,"children":2528},{},[2529],{"type":48,"value":2500},{"type":43,"tag":2077,"props":2531,"children":2532},{},[2533],{"type":48,"value":2534},"The actual edits an investigation identified, or any fan-out that needs real changes",{"type":43,"tag":51,"props":2536,"children":2537},{},[2538,2540,2545],{"type":48,"value":2539},"Only ",{"type":43,"tag":57,"props":2541,"children":2543},{"className":2542},[],[2544],{"type":48,"value":2517},{"type":48,"value":2546}," edits files. Reach for it when a change is mechanical\u002Findependent\nenough to parallelize (e.g. the same fix across many files) rather than applying every\nedit yourself after the workflow returns.",{"type":43,"tag":74,"props":2548,"children":2550},{"id":2549},"model-override",[2551],{"type":48,"value":2552},"Model override",{"type":43,"tag":51,"props":2554,"children":2555},{},[2556,2561,2563,2568,2570,2575],{"type":43,"tag":57,"props":2557,"children":2559},{"className":2558},[],[2560],{"type":48,"value":70},{"type":48,"value":2562},"'s ",{"type":43,"tag":57,"props":2564,"children":2566},{"className":2565},[],[2567],{"type":48,"value":2190},{"type":48,"value":2569}," option picks a different model than the persona's own default for\njust that call, using a ",{"type":43,"tag":91,"props":2571,"children":2572},{},[2573],{"type":48,"value":2574},"tier keyword",{"type":48,"value":2576},", not a guessed exact model id (the available\nmodel list changes over time, so a literal id can silently be wrong):",{"type":43,"tag":81,"props":2578,"children":2579},{},[2580,2598,2609],{"type":43,"tag":85,"props":2581,"children":2582},{},[2583,2589,2591,2596],{"type":43,"tag":57,"props":2584,"children":2586},{"className":2585},[],[2587],{"type":48,"value":2588},"'strong'",{"type":48,"value":2590}," - the best available model. Use for a genuinely hard ",{"type":43,"tag":57,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":48,"value":2517},{"type":48,"value":2597}," edit or a\njudgment call worth spending more on.",{"type":43,"tag":85,"props":2599,"children":2600},{},[2601,2607],{"type":43,"tag":57,"props":2602,"children":2604},{"className":2603},[],[2605],{"type":48,"value":2606},"'medium'",{"type":48,"value":2608}," - a solid mid-tier model.",{"type":43,"tag":85,"props":2610,"children":2611},{},[2612,2618,2620,2625,2626,2631,2633,2638],{"type":43,"tag":57,"props":2613,"children":2615},{"className":2614},[],[2616],{"type":48,"value":2617},"'cheap'",{"type":48,"value":2619}," - fast and cheap. Use to bump a ",{"type":43,"tag":57,"props":2621,"children":2623},{"className":2622},[],[2624],{"type":48,"value":1768},{"type":48,"value":2009},{"type":43,"tag":57,"props":2627,"children":2629},{"className":2628},[],[2630],{"type":48,"value":2517},{"type":48,"value":2632}," call down for something\nsimple, or to run more ",{"type":43,"tag":57,"props":2634,"children":2636},{"className":2635},[],[2637],{"type":48,"value":2463},{"type":48,"value":2639},"-style recon than the default budget would allow.",{"type":43,"tag":51,"props":2641,"children":2642},{},[2643,2645,2650],{"type":48,"value":2644},"Omit ",{"type":43,"tag":57,"props":2646,"children":2648},{"className":2647},[],[2649],{"type":48,"value":2190},{"type":48,"value":2651}," entirely to use the persona's own default (most calls should).",{"type":43,"tag":157,"props":2653,"children":2655},{"className":159,"code":2654,"language":16,"meta":161,"style":161},"await agent('Investigate whether this auth check has a bypass.', { agent: 'Plan', model: 'strong', label: 'auth bypass check' })\n",[2656],{"type":43,"tag":57,"props":2657,"children":2658},{"__ignoreMap":161},[2659],{"type":43,"tag":167,"props":2660,"children":2661},{"class":169,"line":170},[2662,2667,2671,2675,2679,2684,2688,2692,2696,2700,2704,2708,2712,2716,2720,2725,2729,2733,2737,2741,2745,2749,2753,2757,2762,2766,2770],{"type":43,"tag":167,"props":2663,"children":2664},{"style":174},[2665],{"type":48,"value":2666},"await",{"type":43,"tag":167,"props":2668,"children":2669},{"style":847},[2670],{"type":48,"value":908},{"type":43,"tag":167,"props":2672,"children":2673},{"style":186},[2674],{"type":48,"value":855},{"type":43,"tag":167,"props":2676,"children":2677},{"style":192},[2678],{"type":48,"value":231},{"type":43,"tag":167,"props":2680,"children":2681},{"style":223},[2682],{"type":48,"value":2683},"Investigate whether this auth check has a bypass.",{"type":43,"tag":167,"props":2685,"children":2686},{"style":192},[2687],{"type":48,"value":231},{"type":43,"tag":167,"props":2689,"children":2690},{"style":192},[2691],{"type":48,"value":360},{"type":43,"tag":167,"props":2693,"children":2694},{"style":192},[2695],{"type":48,"value":732},{"type":43,"tag":167,"props":2697,"children":2698},{"style":207},[2699],{"type":48,"value":908},{"type":43,"tag":167,"props":2701,"children":2702},{"style":192},[2703],{"type":48,"value":215},{"type":43,"tag":167,"props":2705,"children":2706},{"style":192},[2707],{"type":48,"value":220},{"type":43,"tag":167,"props":2709,"children":2710},{"style":223},[2711],{"type":48,"value":1768},{"type":43,"tag":167,"props":2713,"children":2714},{"style":192},[2715],{"type":48,"value":231},{"type":43,"tag":167,"props":2717,"children":2718},{"style":192},[2719],{"type":48,"value":360},{"type":43,"tag":167,"props":2721,"children":2722},{"style":207},[2723],{"type":48,"value":2724}," model",{"type":43,"tag":167,"props":2726,"children":2727},{"style":192},[2728],{"type":48,"value":215},{"type":43,"tag":167,"props":2730,"children":2731},{"style":192},[2732],{"type":48,"value":220},{"type":43,"tag":167,"props":2734,"children":2735},{"style":223},[2736],{"type":48,"value":91},{"type":43,"tag":167,"props":2738,"children":2739},{"style":192},[2740],{"type":48,"value":231},{"type":43,"tag":167,"props":2742,"children":2743},{"style":192},[2744],{"type":48,"value":360},{"type":43,"tag":167,"props":2746,"children":2747},{"style":207},[2748],{"type":48,"value":1446},{"type":43,"tag":167,"props":2750,"children":2751},{"style":192},[2752],{"type":48,"value":215},{"type":43,"tag":167,"props":2754,"children":2755},{"style":192},[2756],{"type":48,"value":220},{"type":43,"tag":167,"props":2758,"children":2759},{"style":223},[2760],{"type":48,"value":2761},"auth bypass check",{"type":43,"tag":167,"props":2763,"children":2764},{"style":192},[2765],{"type":48,"value":231},{"type":43,"tag":167,"props":2767,"children":2768},{"style":192},[2769],{"type":48,"value":1237},{"type":43,"tag":167,"props":2771,"children":2772},{"style":186},[2773],{"type":48,"value":872},{"type":43,"tag":74,"props":2775,"children":2777},{"id":2776},"failure-semantics",[2778],{"type":48,"value":2779},"Failure semantics",{"type":43,"tag":51,"props":2781,"children":2782},{},[2783,2785,2790,2792,2798,2800,2806,2808,2813,2815,2820,2822,2828],{"type":48,"value":2784},"A failed ",{"type":43,"tag":57,"props":2786,"children":2788},{"className":2787},[],[2789],{"type":48,"value":70},{"type":48,"value":2791}," \u002F ",{"type":43,"tag":57,"props":2793,"children":2795},{"className":2794},[],[2796],{"type":48,"value":2797},"parallel()",{"type":48,"value":2799}," branch \u002F ",{"type":43,"tag":57,"props":2801,"children":2803},{"className":2802},[],[2804],{"type":48,"value":2805},"pipeline()",{"type":48,"value":2807}," item becomes ",{"type":43,"tag":57,"props":2809,"children":2811},{"className":2810},[],[2812],{"type":48,"value":2104},{"type":48,"value":2814}," plus a log\nline; the rest of the workflow continues. ",{"type":43,"tag":91,"props":2816,"children":2817},{},[2818],{"type":48,"value":2819},"Always check for nulls before\nsynthesizing",{"type":48,"value":2821}," - ",{"type":43,"tag":57,"props":2823,"children":2825},{"className":2824},[],[2826],{"type":48,"value":2827},"audits.filter(Boolean)",{"type":48,"value":2829}," or an explicit guard. Only aborts and script\nbugs (unknown agent name, bad arguments, exceeding limits) fail the whole workflow.",{"type":43,"tag":74,"props":2831,"children":2833},{"id":2832},"writing-good-workflows",[2834],{"type":48,"value":2835},"Writing good workflows",{"type":43,"tag":81,"props":2837,"children":2838},{},[2839,2863,2882,2894],{"type":43,"tag":85,"props":2840,"children":2841},{},[2842,2844,2849,2850,2855,2856,2861],{"type":48,"value":2843},"Subagents share no context with you or each other: every prompt must carry its own\nfile paths, constraints, and any prior findings it depends on. Add ",{"type":43,"tag":57,"props":2845,"children":2847},{"className":2846},[],[2848],{"type":48,"value":2120},{"type":48,"value":236},{"type":43,"tag":57,"props":2851,"children":2853},{"className":2852},[],[2854],{"type":48,"value":2128},{"type":48,"value":2292},{"type":43,"tag":57,"props":2857,"children":2859},{"className":2858},[],[2860],{"type":48,"value":1978},{"type":48,"value":2862}," to each agent call: they add a concise child context block\nand let the live workflow show responsibility and downstream artifact use.",{"type":43,"tag":85,"props":2864,"children":2865},{},[2866,2868,2873,2875,2880],{"type":48,"value":2867},"Use ",{"type":43,"tag":57,"props":2869,"children":2871},{"className":2870},[],[2872],{"type":48,"value":2174},{"type":48,"value":2874}," whenever an agent's output feeds a later stage; use free text only for\nthe final human-readable synthesis. Define a schema once in a ",{"type":43,"tag":57,"props":2876,"children":2878},{"className":2877},[],[2879],{"type":48,"value":889},{"type":48,"value":2881}," and reuse it\nacross parallel agents instead of repeating large nested object literals.",{"type":43,"tag":85,"props":2883,"children":2884},{},[2885,2887,2892],{"type":48,"value":2886},"End with a synthesis step and return a ",{"type":43,"tag":91,"props":2888,"children":2889},{},[2890],{"type":48,"value":2891},"compact",{"type":48,"value":2893}," value (verdict + key findings),\nnot a dump of every intermediate output - the return value is all you get back.",{"type":43,"tag":85,"props":2895,"children":2896},{},[2897,2899,2904,2906,2911,2913,2918],{"type":48,"value":2898},"Default to ",{"type":43,"tag":57,"props":2900,"children":2902},{"className":2901},[],[2903],{"type":48,"value":2463},{"type":48,"value":2905}," for recon and per-item checks, ",{"type":43,"tag":57,"props":2907,"children":2909},{"className":2908},[],[2910],{"type":48,"value":1768},{"type":48,"value":2912}," for judgment-heavy\nsynthesis, and ",{"type":43,"tag":57,"props":2914,"children":2916},{"className":2915},[],[2917],{"type":48,"value":2517},{"type":48,"value":2919}," only for the calls that actually need to write files.",{"type":43,"tag":2921,"props":2922,"children":2923},"style",{},[2924],{"type":48,"value":2925},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2927,"total":3097},[2928,2947,2958,2971,2984,2999,3015,3030,3044,3059,3069,3087],{"slug":2929,"name":2929,"fn":2930,"description":2931,"org":2932,"tags":2933,"stars":2944,"repoUrl":2945,"updatedAt":2946},"analyzing-expensive-users","analyze expensive users in AI observability","Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user LLM cost, user-level cost drivers, or patterns behind high AI observability spend.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2934,2937,2940,2943],{"name":2935,"slug":2936,"type":13},"Analytics","analytics",{"name":2938,"slug":2939,"type":13},"Cost Optimization","cost-optimization",{"name":2941,"slug":2942,"type":13},"Observability","observability",{"name":9,"slug":8,"type":13},35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-07-28T05:34:11.117757",{"slug":2948,"name":2948,"fn":2949,"description":2950,"org":2951,"tags":2952,"stars":2944,"repoUrl":2945,"updatedAt":2957},"auditing-endpoints","audit PostHog project endpoints","Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks \"what endpoints can I clean up?\", \"are any of my endpoints broken?\", \"which materialised versions are still being called?\", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2953,2954,2956],{"name":2935,"slug":2936,"type":13},{"name":480,"slug":2955,"type":13},"audit",{"name":9,"slug":8,"type":13},"2026-06-08T08:08:33.693989",{"slug":2959,"name":2959,"fn":2960,"description":2961,"org":2962,"tags":2963,"stars":2944,"repoUrl":2945,"updatedAt":2970},"auditing-warehouse-source-health","audit PostHog data warehouse source health","Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks \"why are my imports failing?\", \"what's broken with my sources?\", \"why is my warehouse data stale?\", or wants a one-shot triage of source\u002Fsync health before deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use `diagnosing-failed-warehouse-syncs`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2964,2965,2968,2969],{"name":480,"slug":2955,"type":13},{"name":2966,"slug":2967,"type":13},"Data Warehouse","data-warehouse",{"name":2941,"slug":2942,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:22:57.67984",{"slug":2972,"name":2972,"fn":2973,"description":2974,"org":2975,"tags":2976,"stars":2944,"repoUrl":2945,"updatedAt":2983},"auditing-warehouse-view-health","audit PostHog materialized view health","Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks \"which of my views are broken?\", \"why is this materialized view failing?\", \"are any of my views wasting compute?\", or wants a one-shot triage of view health. For source\u002Fsync health use `auditing-warehouse-source-health`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2977,2978,2979,2982],{"name":480,"slug":2955,"type":13},{"name":2966,"slug":2967,"type":13},{"name":2980,"slug":2981,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-06-18T08:25:10.936787",{"slug":2985,"name":2985,"fn":2986,"description":2987,"org":2988,"tags":2989,"stars":2944,"repoUrl":2945,"updatedAt":2998},"authoring-error-tracking-alerts","author PostHog error tracking alerts","Author error tracking alerts that fire when an issue is created, reopened, or starts spiking. Use when the user asks to set up error notifications, route exceptions to Slack\u002Fwebhook\u002FLinear, or evaluate which error events are worth alerting on. Covers trigger-event selection, integration choice, dedup against existing alerts, and shipping with the canonical message body shape.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2990,2993,2996,2997],{"name":2991,"slug":2992,"type":13},"Alerting","alerting",{"name":2994,"slug":2995,"type":13},"Debugging","debugging",{"name":2941,"slug":2942,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:24:40.318583",{"slug":3000,"name":3000,"fn":3001,"description":3002,"org":3003,"tags":3004,"stars":2944,"repoUrl":2945,"updatedAt":3014},"authoring-log-alerts","author log alerts in PostHog","Author useful, low-noise log alerts on services in a PostHog project. Use when the user asks to set up alerts for their logs, suggest alerts they should add, or evaluate whether a service is worth monitoring. Covers service triage, baseline characterisation, threshold drafting, back-testing via simulate, and shipping with a notification destination.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3005,3006,3009,3010,3013],{"name":2935,"slug":2936,"type":13},{"name":3007,"slug":3008,"type":13},"Monitoring","monitoring",{"name":2941,"slug":2942,"type":13},{"name":3011,"slug":3012,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-07-18T05:10:54.430898",{"slug":3016,"name":3016,"fn":3017,"description":3018,"org":3019,"tags":3020,"stars":2944,"repoUrl":2945,"updatedAt":3029},"building-workflows","build and edit PostHog workflows","Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action\u002Fedge graph so it runs and opens cleanly in the visual editor, then change drafts surgically with patch operations. Use when asked to build, set up, automate, change, fix, or debug a workflow, campaign, broadcast, drip sequence, or event-triggered automation in the workflows product.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3021,3024,3027,3028],{"name":3022,"slug":3023,"type":13},"Automation","automation",{"name":3025,"slug":3026,"type":13},"MCP","mcp",{"name":9,"slug":8,"type":13},{"name":24,"slug":25,"type":13},"2026-07-28T05:34:12.167015",{"slug":3031,"name":3031,"fn":3032,"description":3033,"org":3034,"tags":3035,"stars":2944,"repoUrl":2945,"updatedAt":3043},"check-posthog-loading","inspect PostHog SDK loading across URLs","Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3036,3037,3038,3041,3042],{"name":2935,"slug":2936,"type":13},{"name":2994,"slug":2995,"type":13},{"name":3039,"slug":3040,"type":13},"Frontend","frontend",{"name":2941,"slug":2942,"type":13},{"name":9,"slug":8,"type":13},"2026-05-07T05:56:19.828048",{"slug":3045,"name":3045,"fn":3046,"description":3047,"org":3048,"tags":3049,"stars":2944,"repoUrl":2945,"updatedAt":3058},"consuming-endpoints-from-client-code","integrate PostHog endpoints into client applications","Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api\u002Fopenapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says \"how do I call my endpoint\", \"generate a client for this\", or \"what auth header do I use\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3050,3053,3054,3055],{"name":3051,"slug":3052,"type":13},"API Development","api-development",{"name":3039,"slug":3040,"type":13},{"name":9,"slug":8,"type":13},{"name":3056,"slug":3057,"type":13},"SDK","sdk","2026-06-08T08:08:34.929454",{"slug":3060,"name":3060,"fn":3061,"description":3062,"org":3063,"tags":3064,"stars":2944,"repoUrl":2945,"updatedAt":3068},"copying-endpoints-across-projects","copy PostHog endpoints across projects","Copy a PostHog endpoint (a saved HogQL\u002Finsight query exposed as an API route) to another project in the same organization, or duplicate it under a new name in the same project. Use when the user wants to duplicate an endpoint, promote an endpoint from staging to production, replicate an endpoint's query\u002Fvariables\u002Ffreshness config in another workspace, or clone an endpoint to iterate on it. Unlike feature flags and experiments, endpoints have NO native cross-project copy tool — this skill covers the read-then-recreate flow (endpoint-get then endpoint-create), the active-project switching it requires, name-collision checks, and the safe defaults (land unmaterialised in the target, verify with endpoint-run). Does not cover editing endpoint versions (see managing-endpoint-versions) or authoring a brand-new endpoint from scratch (see creating-an-endpoint).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3065,3066,3067],{"name":3051,"slug":3052,"type":13},{"name":3011,"slug":3012,"type":13},{"name":9,"slug":8,"type":13},"2026-07-15T05:29:58.442727",{"slug":3070,"name":3070,"fn":3071,"description":3072,"org":3073,"tags":3074,"stars":2944,"repoUrl":2945,"updatedAt":3086},"creating-ai-subscription","schedule recurring AI-generated PostHog reports","Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email or Slack on each tick. Use when the user wants a recurring AI summary of X on any cadence (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI summary to an existing insight\u002Fdashboard subscription instead of a free-text prompt, see `managing-subscriptions` and its `summary_enabled` option.)\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3075,3076,3079,3080,3083],{"name":3022,"slug":3023,"type":13},{"name":3077,"slug":3078,"type":13},"Email","email",{"name":9,"slug":8,"type":13},{"name":3081,"slug":3082,"type":13},"Reporting","reporting",{"name":3084,"slug":3085,"type":13},"Slack","slack","2026-06-09T07:32:27.935712",{"slug":3088,"name":3088,"fn":3089,"description":3090,"org":3091,"tags":3092,"stars":2944,"repoUrl":2945,"updatedAt":3096},"creating-an-endpoint","create PostHog API endpoints","Create a PostHog endpoint with the right shape on the first try — covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says \"create an endpoint\", \"expose this query as an API\", \"turn this insight into an endpoint\", or asks for help structuring a new endpoint. Steers away from common mistakes: materialising a query with cohort breakdowns or compare mode, inline-only variables on a materialised endpoint, unbounded date ranges, ambiguous names.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3093,3094,3095],{"name":2935,"slug":2936,"type":13},{"name":3051,"slug":3052,"type":13},{"name":9,"slug":8,"type":13},"2026-06-08T08:08:29.624498",231,{"items":3099,"total":203},[3100,3108],{"slug":4,"name":4,"fn":5,"description":6,"org":3101,"tags":3102,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3103,3104,3105,3106,3107],{"name":18,"slug":19,"type":13},{"name":15,"slug":16,"type":13},{"name":21,"slug":22,"type":13},{"name":9,"slug":8,"type":13},{"name":24,"slug":25,"type":13},{"slug":3109,"name":3109,"fn":3110,"description":3111,"org":3112,"tags":3113,"stars":26,"repoUrl":27,"updatedAt":3117},"mcp-servers","configure and manage MCP servers","Install, configure, authenticate, and troubleshoot MCP (Model Context Protocol) servers for this agent. Use when the user asks to add\u002Finstall\u002Fremove an MCP server, connect a tool like Linear\u002FSentry\u002FSupabase\u002FGitHub via MCP, set up mcp.json, or when MCP tools are failing or need OAuth login.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3114,3115,3116],{"name":3051,"slug":3052,"type":13},{"name":3025,"slug":3026,"type":13},{"name":9,"slug":8,"type":13},"2026-07-10T06:50:31.6926"]