Skip to main content

DRMG Drawing Tool

Every diagram tool you've ever used was built for someone else's visual language. This one is ours.


The Job

When a builder needs to communicate system architecture, agent flows, or venture relationships visually, help them create diagrams in a visual language purpose-built for the Dreamineering domain — without surrendering to tools that are too constrained, too complex, or not versionable.

Trigger EventCurrent FailureDesired Progress
New system needs explainingMermaid is too constrained — box-and-arrow thinking for complex flowsA&ID diagrams that capture agent, instrument, and feedback relationships
Architecture reviewD3/Figma are powerful but not git-native or versionableSVG text files that diff, merge, and live in the repo
Documentation needs visualsScreenshots rot, embedded images break, external links dieDiagrams generated from primitives, always current
Onboarding new collaboratorVerbal walkthroughs that decay in 48 hoursOne diagram replaces 30 minutes of explanation

The job: "I need to show how this system works — and the picture needs to live where the code lives."

The hidden objection: "Drawing tools are rabbit holes. I'll spend more time on the diagram than the thing it describes." The kill signal lives here — if A&ID takes longer than Mermaid, it adds friction, not clarity.


Why A&ID

Agent & Instrument Diagrams are a new visual standard. The existing options each fail in a specific way:

ToolWhat It Does WellWhere It Fails
MermaidFast, text-based, git-nativeLimited visual vocabulary — can't express agent/instrument/feedback loops
D3.jsInfinitely flexibleSteep learning curve, heavy dependency, overkill for documentation
FigmaBeautiful, collaborativeNot versionable, not git-native, not embeddable as code
ExcalidrawQuick sketchesHand-drawn aesthetic doesn't suit technical documentation
draw.ioFeature-richXML format, poor diffing, external dependency

A&ID fills the gap: purpose-built visual vocabulary, zero external dependencies, git-native format, offline-first.

The insight is ownership. Every other tool rents you their visual language. A&ID owns it. The grammar — agents, instruments, feedback loops, state transitions, critical paths — maps directly to how Dreamineering thinks about systems.


Architecture Principles

PrincipleWhat It MeansWhy It Matters
Web Primitives FirstSVG, Canvas, CSS — no abstraction layersNo dependency rot, no version conflicts, no vendor lock
Zero External DependenciesThe drawing engine ships nothing it doesn't ownIf the internet disappears, the tool still works
Own the Visual LanguageA&ID grammar is ours to extendNo waiting for upstream to support agent/instrument semantics
Git-Native FormatSVG as text files that diff and mergeDiagrams are code artifacts, not binary blobs
Offline-FirstFull capability without networkBuilders on planes, in cafes, in flow states — no interruption

Diagram Types

From Flow Engineering — the maps that produce code artifacts:

Diagram TypeWhat It ShowsWhen You Need It
State DiagramHow a system transitions between statesModelling workflows, agent lifecycles, venture stages
Current vs DesiredGap between what exists and what should existPRD specification, capability mapping, gap analysis
Critical PathThe sequence that must not breakIdentifying bottlenecks, commissioning checklists, risk mapping
Agent & InstrumentHow agents interact with instruments and each otherThe core A&ID diagram — the reason this tool exists
Feedback LoopHow outputs feed back to modify inputsVVFL visualisation, learning loops, compounding effects

Technology Stack

Minimal. Deliberate. Every byte justified.

LayerTechnologySizeWhy This
RenderingSVG native0KB addedBrowser-native, text-based, infinitely scalable
ManipulationSVG.js~46KBLightweight SVG manipulation without DOM complexity
InputPointer Events API0KB addedUnified touch/mouse/pen — one input model
ComponentsWeb Components0KB addedEncapsulated, framework-agnostic, composable

Total external dependency budget: ~46KB. Compare: D3.js alone is 250KB+. Mermaid is 1MB+. The constraint is the feature.


Feature / Function / Outcome

Every row maps a feature to the function it performs and the outcome the user experiences. All items are Gap — this capability is in the backlog.

#FeatureFunctionOutcomeState
1SVG canvasInfinite pannable drawing surfaceStart drawing immediately, no setupGap
2A&ID shape libraryPre-built agent, instrument, feedback, and state primitivesDomain-specific vocabulary available from first clickGap
3Connection engineDraw typed relationships between shapes (data flow, control, feedback)Relationships are first-class, not afterthoughtsGap
4State diagram modeCreate state machines with transitions and guardsModel any workflow as states and transitionsGap
5Current/Desired overlaySide-by-side or layered view of current and target stateSee the gap visually, not just textuallyGap
6Critical path highlighterMark and emphasise the path that must not breakRisk and bottleneck identification at a glanceGap
7SVG exportSave as .svg text file in repoDiagrams version-controlled alongside codeGap
8Pointer events inputUnified touch, mouse, and pen interactionWorks on tablet, laptop, or desktop identicallyGap
9Snap-to-gridAlignment assistance without constraintClean diagrams without pixel-huntingGap
10Template libraryPre-built A&ID diagram templates for common patternsNew diagram in 60 seconds, not 60 minutesGap

Business Dev

The tool serves internal needs first, but the visual language is the product.

LayerDecisionInitial AssumptionEvidence to Collect
ICPWho needs this?Builders documenting AI agent systems, crypto protocols, and venture architectures5 internal diagrams created faster than Mermaid equivalent
OfferWhat do we sell?"Your own visual language, zero dependencies, git-native" — the A&ID standard3 external teams adopt A&ID notation for their documentation
PricingHow do we charge?Open-source tool, commercial templates and hosted collaborationAdoption-first — pricing follows community
ChannelHow do we reach them?Documentation that uses A&ID becomes the demo10 A&ID diagrams in public repos/articles
ConversionWhat proves demand?First diagram created in under 5 minutes from templateTime-to-first-diagram < 5 minutes
RetentionWhy do they keep using it?Diagrams that live in the repo stay current; external tools rotDiagram update frequency > monthly

Commissioning

All components are pre-build. This is the specification layer.

ComponentSchemaAPIUITestsStatus
SVG canvas enginePendingPendingPendingPending0%
A&ID shape libraryPendingPendingPendingPending0%
Connection enginePendingPendingPendingPending0%
State diagram modePendingPendingPendingPending0%
Current/Desired overlayPendingPendingPendingPending0%
Critical path highlighterPendingPendingPendingPending0%
SVG exportPendingPendingPendingPending0%
Template libraryPendingPendingPendingPending0%

Pre-existing: Hand-drawn A&ID diagrams in Figma. Mental model architecture at Level 4. The visual language exists in practice — the tool codifies it.


Risks + Kill Signal

RiskMitigation
Tool becomes a project instead of an instrumentTime-box to 6-week cycle; if v1 isn't usable, stop
SVG.js proves insufficient for complex interactionsEvaluate during prototype; the 46KB budget is a ceiling, not a floor
Mermaid is "good enough" for most diagramsA&ID only wins if the domain vocabulary creates clarity Mermaid can't
Web Components browser support gapsTarget modern browsers only; progressive enhancement, not polyfills
Offline-first creates sync complexityStart single-user; collaboration is v2 at earliest
Visual language stays internal — no adoptionPublish the A&ID spec as a standard; the tool follows the language, not the other way

Kill signal: If A&ID diagrams consistently take longer to create than the Mermaid equivalent, the tool adds friction, not clarity. Speed parity with Mermaid for simple diagrams is the minimum bar. The value is in what Mermaid can't express — agent/instrument/feedback semantics. If those semantics don't earn their creation cost, kill it.


Mycelium Context

Capability: A&ID visual language primitives.

Currently growing in: Dreamineering — documentation, communication, and the mental model architecture that's already at Level 4 need a visual language that matches the conceptual depth.

Every venture needs diagrams. Stackmates needs architecture diagrams. Prettymint needs brand system visuals. TouchForFun needs game flow diagrams. The A&ID language is the shared primitive — build once in Dreamineering, promote to platform when proven.


Success Criteria

TypeCriterionThreshold
FunctionalCreate an A&ID diagram from templateUnder 5 minutes
FunctionalExport as diffable SVG text fileFile diffs meaningfully in git
FunctionalDraw a state diagram with transitionsUnder 10 minutes for 5-state system
OutcomeTime to create vs Mermaid equivalentParity or faster for supported diagram types
OutcomeDiagrams updated after initial creation> 50% of diagrams updated at least once
OutcomeExternal adoption of A&ID notationAt least 1 team outside Dreamineering uses the format

Next Steps

1. Define the A&ID visual grammar — shapes, connections, annotations, semantic rules
2. Prototype SVG canvas with SVG.js — can you draw, connect, and export in one session?
3. Build 3 templates: agent-instrument, state diagram, feedback loop
4. Create 5 internal diagrams — replace existing Mermaid or Figma diagrams
5. Measure: is A&ID faster and clearer than Mermaid for the same diagram?

Smallest move: One A&ID diagram, hand-coded in SVG, committed to the repo, that replaces an existing Mermaid diagram. If the SVG is clearer and the diff is meaningful, the thesis holds.


Context