Building a New Plugin
Essay 7.9 — The Plugin Kit, Part 9 of 9.
Essay 7.8 closed the four-part lock ceremony — PLUGIN-LOCK, TEST-LOCK, safe-lock, historian ratchet — the gates every plugin edit passes through. The ceremony was named in the abstract. This essay puts it on the rails: a walkthrough of what guiding your seed to build a brand-new plugin actually looks like in motion. This is the section new users come back to.
Two Paths to a New Plugin
When you install the public seed agent on your laptop and start running it, every job you point it at is a single-cycle OPEVC job at first (Essay 8 covers the maturation stages). The seed is in learning mode — it asks questions, takes its time, builds experiential data from your work. When a job recurs and the seed has learned its shape, the job graduates to multi-cycle. When the multi-cycle plan stabilizes, the job graduates to a .yaml plan that injects job-specific context at every phase entry. And eventually — for jobs whose phase cognition needs customization beyond context injection — the job itself becomes a plugin. ⓘ
That is one path to a new plugin: a job that has matured through the earlier maturation stages and now needs phase-cognition customization the voice injection cannot deliver.
The other path is direct: you notice a gap in the seed’s substrate and tell the seed to fix it — paying off the promise Essay 5.1 planted, that the always-on layer is addable: another always-on plugin slots in by exposing its own public commands, not by rewiring anyone else’s. ⓘ
A consulting practice’s seed might gain a client-engagement-tracker plugin this way; a research lab’s seed might gain an experiment-protocol plugin; a writer’s seed might gain a manuscript-stage-gate. Each plugin’s organ list is the same kit; each plugin’s substance is the operator’s domain.
The First Cycle — Single-Cycle DEEP
The seed treats new-plugin work as a single-cycle DEEP job at first: OBSERVE asks you questions about the gap, PLAN designs the new plugin’s concern and organ list, EXECUTE stamps the template and fills in the substance, VERIFY runs the new plugin’s test suite, CONDENSE absorbs the lessons into the knowledge layer. ⓘ
The seed performs the PLUGIN-LOCK ceremony at the moment EXECUTE needs to begin writing code; once approved, the lock-manager stamps the universal template at .claude/plugins/<new_name>/, substitutes the plugin name into the placeholders, generates the plugin’s historian-<name> subagent definition, and auto-commits the birth as the drift baseline. ⓘ
The substance the seed fills in follows the organ-by-organ shape covered earlier in this series — CLAUDE.md first as the concern declaration (Essay 7.2), then hooks as the plugin’s reflexes, scripts if the plugin publishes a CLI, tests covering each hook and script, voice files for the messages the plugin emits (Essay 7.3), and docs/evolution.md for the cycle-1 narration (Essay 7.5). The seed asks you to confirm at each step because in this stage of maturation, the seed is still learning your design preferences. ⓘ
Phase Plugins Need a Second Lock
If the new plugin extends the phase system (e.g., a new phase_research between OBSERVE and PLAN — exactly the customization Essay 6.1 named when it said the phase count is the prototype, not the architecture), one lock builds the cell, and a second lock on phasic_system updates the orchestrator’s forward and backward edge maps so the new phase routes correctly. Adding a cognitive organ takes two ceremonies: one to author the organ, one to wire it into the body. New users should not be surprised by this — most plugin systems make wiring invisible; this architecture makes wiring explicit. ⓘ
The Knowledge Directory — By Birth, Not as Afterthought
This is the part most plugin tutorials skip. When the seed authors a new plugin, the seed also authors the plugin’s knowledge directory at .claude/knowledge/<plugin_name>/. This is where the plugin’s deep self-knowledge lives — the architectural rationale, the operating patterns, the lessons captured across cycles. The public seed agent ships every active plugin’s knowledge directory along with the plugin code, so every operator’s seed has the same depth of recall. Future OBSERVE phases will recall these knowledge files when the agent encounters work touching this plugin. ⓘ
Tell your seed: every new plugin gets a knowledge directory by birth, not as an afterthought. Without it, the plugin migrates to the public repo as code without context; with it, the public seed agent can teach new operators how to think about that plugin’s concern.
Lock Closes — The Plugin Is Born, but Not Yet Alive
Once the lock closes, the plugin exists as files on disk — but no hook fires yet. The brain has to register the hooks via settings.local.json (covered in Essay 7.7). Inside the same EXECUTE phase the seed updates the settings file. Once the brain rereads on the next session start, the new plugin’s reflexes fire. CONDENSE then absorbs the cycle’s lessons, the historian writes the cycle-1 evolution.md, and the plugin enters its life. ⓘ
The Honest Framing
This is not a couple of editing sessions. A real new phase plugin is closer to a multi-cycle deep job: several editing sessions for the guard logic, more for the tracker and sensor, substantial voice content across the plugin’s hooks and scripts, a meaningful test-assertion footprint across the plugin’s test files, plus the orchestrator update for the two-lock pattern. The kit’s gift is that the work is bounded, not that the work is small. Every file has a purpose, every purpose is named, and the safe-lock cycle keeps every step honest. ⓘ
What makes the work feel different from a from-scratch build is that the operator and seed are not inventing the structure. The cell template knows what cognitive organs every plugin needs. The operator’s seed is filling each organ with the substance for this plugin’s concern. New users guide that filling-in through conversation; the seed records the conversation, learns the operator’s preferences, and over time, the operator’s seed becomes one that knows how the operator wants plugins shaped.
What Comes Next
The kit gives the brain the capacity to grow. The phases give the brain compartmentalized cognition. The bus gives the brain durable substrate.
By this point in the series, what we have is a working seed agent: not a finished product, but a living architecture that knows how to evolve itself.
The kit is in your hands. What does growth LOOK like when you use it over time? Next.
Essay 7.9 — The Plugin Kit, Part 9 of 9. Closes The Plugin Kit (9-part series).
Previous: Essay 7.8 — The Lock Ceremony — PLUGIN-LOCK + TEST-LOCK + safe-lock + historian ratchet, the four-part closed loop. Next: Essay 8 — From Apprentice to Architect — job formats, the maturation arc, and the seed’s hand-off.
Comments