Having a solid mental model is one thing. Making the workflow frictionless and reproducible is another. That's where the MorphArray Stack VS Code extension comes in.
The extension was built specifically to support the Mental Stack methodology: treat HTML articles as the immutable source of truth, define order with simple .mastack files, and instantly produce both a clean static website and a high-quality Markdown dump ready for LLM prefill.
One command sets up an entire project structure from scratch:
stacks/ folder containing your .mastack filesarticles/ folder for your HTML chapters (this is sacred — never modified by the extension)templates/ with base.html and base.css for the static sitedefaults.json for reusable metadata placeholders (author name, series title, etc.)index.html and .mastack file to get started immediatelyThis is the "publish" command. It reads your chosen .mastack file, wraps each chapter in the base template, injects automatic navigation (Prev/Next links and a chapter list on the index page), and outputs a complete static site into the dist/ folder.
The originals in articles/ remain untouched. You can edit any chapter freely, hit rebuild, and instantly see the updated site with proper linking.
This is the command that makes the whole methodology powerful for LLM work.
It does the following in one click:
The resulting dump preserves headings, structure, and flow far better than raw folder dumps or loose text files, giving the model rich, ordered context without token waste.
Here's how the loop feels in practice:
articles/ folder as normal HTML.The entire cycle stays tight. No manual copying of files. No broken links. No lost relational context when feeding the series to an LLM.
Before building the extension, I was doing this manually — copying chapters, converting formats, maintaining order by hand. It was error-prone and broke the flow of discovery. The extension removes that friction so the real work — thinking, analogizing, reducing kernels, and iterating — can stay front and center.
It also embodies the same philosophy as the Mental Stack itself: sparse definition (.mastack files) enabling rich output (both human site and LLM context). Just as SwiftUI views are disposable snapshots handed off for reconciliation, your HTML chapters are the immutable descriptions, and the extension is the system that reconciles them into the right form for each purpose.
This chapter is still early tooling. Future chapters will show real examples from the Analogy Series, demonstrate macro KRO applied to full Mental Stack dumps, explore limits of the current approach, and discuss possible extensions to the workflow.