Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mistakeknotv0.1.3MITIn 1 marketplace
Deterministic Skeleton with LLM Islands — token-efficient document generation via template-then-fill.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
interleave, token-efficiency, template, skeleton, deterministic, islands
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Deterministic Skeleton with LLM Islands: token-efficient document generation.
Most AI-generated documents waste tokens on parts that are entirely predictable. If you're generating a roadmap, the table of completed items, the version header, and the status counts are all deterministic: they come from data, not creativity. The creative parts (grouping analysis, highlight commentary, research agenda) are the only sections that actually need an LLM.
interleave formalizes this split. A template script renders all the deterministic sections and emits <!-- LLM:NAME --> placeholder markers for the semantic sections. A subagent then fills only the placeholders. The result is the same document at a fraction of the token cost.
This is a spec + library plugin. It defines the pattern, provides a reference implementation, and includes a skill for applying it. No MCP server, no hooks: just the pattern itself.
First, add the interagency marketplace (one-time setup):
/plugin marketplace add mistakeknot/interagency-marketplace
Then install the plugin:
/plugin install interleave
scripts/template-roadmap-md.sh generates a full docs/interverse-roadmap.md from roadmap.json + beads data (legacy compatibility docs/roadmap.md when needed). It renders all deterministic sections directly and emits 3 LLM placeholder markers (NEXT_GROUPINGS, MODULE_HIGHLIGHTS, RESEARCH_AGENDA).
<!-- LLM:SECTION_NAME context="..." -->
(content to be filled by LLM)
<!-- END LLM:SECTION_NAME -->
HTML comments, invisible in rendered markdown. The context attribute gives the LLM enough information to fill the section without reading the whole document.
It's worth knowing where this pattern comes from, because "render the boring parts with a script and only call the LLM for the interesting parts" turns out to be an idea people keep independently reinventing across very different domains. The question is always the same: "what actually needs the expensive thing?": and the answer is always "less than you think."
The most honest influence is Astro's Islands Architecture. Astro renders pages as static HTML and only hydrates isolated "islands" of JavaScript where interactivity is actually needed. Everything outside an island ships zero JS. Interleave does the same thing but for documents and LLMs instead of pages and JavaScript: deterministic sections are rendered by a bash script (zero token cost), and only the semantic islands get dispatched to subagents.
The key insight worth borrowing is that the static parts don't need to flow through the expensive runtime at all. Not "use a cheaper runtime": no runtime. Astro got this; most LLM document generators haven't.
A few related ideas from the same lineage:
React Server Components draw a similar boundary between server-only components (rendered once, no client JS) and client components (hydrated). RSC's nice trick is that server components can pass serialized data down to client components: which is basically what interleave's embedded context attribute does for each placeholder. The LLM island gets exactly the data it needs, pre-serialized, no fishing.
Qwik takes this further with resumability: instead of hydrating everything, it serializes component state into the HTML and lazily resumes only what the user actually interacts with. Where Astro makes you draw the island boundary by hand, Qwik tries to make it automatic. Interleave's section classification flowchart is a (much humbler) version of the same instinct: a systematic way to decide what needs LLM "hydration" rather than leaving it to vibes.
Marko does out-of-order streaming: ships the static shell immediately, fills dynamic sections as their data resolves. This is conceptually identical to dispatching islands concurrently; the deterministic skeleton is available instantly and the semantic bits land whenever the subagents finish.
Microsoft Guidance, LMQL, and SGLang all interleave deterministic text with LLM-generated text, but they do it at the token level within a single generation call. You write a template with {{gen}} blocks (or equivalent), and the framework alternates between emitting fixed tokens and sampling from the model.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
interleave@interagency-marketplace is listed by mistakeknot/interagency-marketplace — review the source before installing
npx claudepluginhub mistakeknot/interagency-marketplace --plugin interleave