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 Event | Current Failure | Desired Progress |
|---|---|---|
| New system needs explaining | Mermaid is too constrained — box-and-arrow thinking for complex flows | A&ID diagrams that capture agent, instrument, and feedback relationships |
| Architecture review | D3/Figma are powerful but not git-native or versionable | SVG text files that diff, merge, and live in the repo |
| Documentation needs visuals | Screenshots rot, embedded images break, external links die | Diagrams generated from primitives, always current |
| Onboarding new collaborator | Verbal walkthroughs that decay in 48 hours | One 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:
| Tool | What It Does Well | Where It Fails |
|---|---|---|
| Mermaid | Fast, text-based, git-native | Limited visual vocabulary — can't express agent/instrument/feedback loops |
| D3.js | Infinitely flexible | Steep learning curve, heavy dependency, overkill for documentation |
| Figma | Beautiful, collaborative | Not versionable, not git-native, not embeddable as code |
| Excalidraw | Quick sketches | Hand-drawn aesthetic doesn't suit technical documentation |
| draw.io | Feature-rich | XML 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
| Principle | What It Means | Why It Matters |
|---|---|---|
| Web Primitives First | SVG, Canvas, CSS — no abstraction layers | No dependency rot, no version conflicts, no vendor lock |
| Zero External Dependencies | The drawing engine ships nothing it doesn't own | If the internet disappears, the tool still works |
| Own the Visual Language | A&ID grammar is ours to extend | No waiting for upstream to support agent/instrument semantics |
| Git-Native Format | SVG as text files that diff and merge | Diagrams are code artifacts, not binary blobs |
| Offline-First | Full capability without network | Builders on planes, in cafes, in flow states — no interruption |
Diagram Types
From Flow Engineering — the maps that produce code artifacts:
| Diagram Type | What It Shows | When You Need It |
|---|---|---|
| State Diagram | How a system transitions between states | Modelling workflows, agent lifecycles, venture stages |
| Current vs Desired | Gap between what exists and what should exist | PRD specification, capability mapping, gap analysis |
| Critical Path | The sequence that must not break | Identifying bottlenecks, commissioning checklists, risk mapping |
| Agent & Instrument | How agents interact with instruments and each other | The core A&ID diagram — the reason this tool exists |
| Feedback Loop | How outputs feed back to modify inputs | VVFL visualisation, learning loops, compounding effects |
Technology Stack
Minimal. Deliberate. Every byte justified.
| Layer | Technology | Size | Why This |
|---|---|---|---|
| Rendering | SVG native | 0KB added | Browser-native, text-based, infinitely scalable |
| Manipulation | SVG.js | ~46KB | Lightweight SVG manipulation without DOM complexity |
| Input | Pointer Events API | 0KB added | Unified touch/mouse/pen — one input model |
| Components | Web Components | 0KB added | Encapsulated, 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.
| # | Feature | Function | Outcome | State |
|---|---|---|---|---|
| 1 | SVG canvas | Infinite pannable drawing surface | Start drawing immediately, no setup | Gap |
| 2 | A&ID shape library | Pre-built agent, instrument, feedback, and state primitives | Domain-specific vocabulary available from first click | Gap |
| 3 | Connection engine | Draw typed relationships between shapes (data flow, control, feedback) | Relationships are first-class, not afterthoughts | Gap |
| 4 | State diagram mode | Create state machines with transitions and guards | Model any workflow as states and transitions | Gap |
| 5 | Current/Desired overlay | Side-by-side or layered view of current and target state | See the gap visually, not just textually | Gap |
| 6 | Critical path highlighter | Mark and emphasise the path that must not break | Risk and bottleneck identification at a glance | Gap |
| 7 | SVG export | Save as .svg text file in repo | Diagrams version-controlled alongside code | Gap |
| 8 | Pointer events input | Unified touch, mouse, and pen interaction | Works on tablet, laptop, or desktop identically | Gap |
| 9 | Snap-to-grid | Alignment assistance without constraint | Clean diagrams without pixel-hunting | Gap |
| 10 | Template library | Pre-built A&ID diagram templates for common patterns | New diagram in 60 seconds, not 60 minutes | Gap |
Business Dev
The tool serves internal needs first, but the visual language is the product.
| Layer | Decision | Initial Assumption | Evidence to Collect |
|---|---|---|---|
| ICP | Who needs this? | Builders documenting AI agent systems, crypto protocols, and venture architectures | 5 internal diagrams created faster than Mermaid equivalent |
| Offer | What do we sell? | "Your own visual language, zero dependencies, git-native" — the A&ID standard | 3 external teams adopt A&ID notation for their documentation |
| Pricing | How do we charge? | Open-source tool, commercial templates and hosted collaboration | Adoption-first — pricing follows community |
| Channel | How do we reach them? | Documentation that uses A&ID becomes the demo | 10 A&ID diagrams in public repos/articles |
| Conversion | What proves demand? | First diagram created in under 5 minutes from template | Time-to-first-diagram < 5 minutes |
| Retention | Why do they keep using it? | Diagrams that live in the repo stay current; external tools rot | Diagram update frequency > monthly |
Commissioning
All components are pre-build. This is the specification layer.
| Component | Schema | API | UI | Tests | Status |
|---|---|---|---|---|---|
| SVG canvas engine | Pending | Pending | Pending | Pending | 0% |
| A&ID shape library | Pending | Pending | Pending | Pending | 0% |
| Connection engine | Pending | Pending | Pending | Pending | 0% |
| State diagram mode | Pending | Pending | Pending | Pending | 0% |
| Current/Desired overlay | Pending | Pending | Pending | Pending | 0% |
| Critical path highlighter | Pending | Pending | Pending | Pending | 0% |
| SVG export | Pending | Pending | Pending | Pending | 0% |
| Template library | Pending | Pending | Pending | Pending | 0% |
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
| Risk | Mitigation |
|---|---|
| Tool becomes a project instead of an instrument | Time-box to 6-week cycle; if v1 isn't usable, stop |
| SVG.js proves insufficient for complex interactions | Evaluate during prototype; the 46KB budget is a ceiling, not a floor |
| Mermaid is "good enough" for most diagrams | A&ID only wins if the domain vocabulary creates clarity Mermaid can't |
| Web Components browser support gaps | Target modern browsers only; progressive enhancement, not polyfills |
| Offline-first creates sync complexity | Start single-user; collaboration is v2 at earliest |
| Visual language stays internal — no adoption | Publish 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
| Type | Criterion | Threshold |
|---|---|---|
| Functional | Create an A&ID diagram from template | Under 5 minutes |
| Functional | Export as diffable SVG text file | File diffs meaningfully in git |
| Functional | Draw a state diagram with transitions | Under 10 minutes for 5-state system |
| Outcome | Time to create vs Mermaid equivalent | Parity or faster for supported diagram types |
| Outcome | Diagrams updated after initial creation | > 50% of diagrams updated at least once |
| Outcome | External adoption of A&ID notation | At 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.