How junkz3/wrench-board works
Wrench Board is a browser-based electronics-repair workbench. A technician supplies a device schematic and boardview; the knowledge pipeline builds a repair pack, while schematic ingestion produces an electrical graph. In a repair session, the diagnostic agent consults those artefacts and technician observations, operates boardview and diagnostic tools, and returns a sanitized diagnosis. The graph also preserves profile, parts-stock, and live pipeline-progress capabilities. Relationships use README statements and indexed imports; unsampled subsystems are represented only where documented, so some internal calls are intentionally omitted.
Main entry points: runtime_managed.py Diagnostic runtime · router.py Boardview API · dashboard.js Diagnostic dashboard · main.py FastAPI application
Components 25
Workbench UI
- Workbench frontend
web/js/main.js - Repair navigation
web/js/router.js - Diagnostic dashboard
web/js/features/repair/diagnostic/dashboard.js - Pipeline progress
web/js/pipeline_progress.js
Application API
- FastAPI application
api/main.py - Boardview API
api/board/router.py - Board parsers
api/board/parser/base.py - Board model
api/board/model.py - Board rendering
api/board/render.py - Technician profile
api/profile/router.py - Parts search
api/stock/router.py
Knowledge Factory
- Pipeline routes
api/pipeline/__init__.py - Pack generation
api/pipeline/orchestrator.py - Pack persistence
api/pipeline/pack_storage.py
Schematic Analysis
- Schematic ingestion
api/pipeline/schematic/orchestrator.py - Electrical graph
api/pipeline/schematic/schemas.py
Repair Diagnostics
- Diagnostic runtime
api/agent/runtime_managed.py - Direct runtime
api/agent/runtime_direct.py - Agent tools
api/agent/manifest.py - Refdes sanitizer
api/agent/sanitize.py - Boot simulator
api/pipeline/schematic/simulator.py - Fault hypothesizer
api/pipeline/schematic/hypothesize.py
Other components
- Technician
- Anthropic models
- Managed Agents
Connections 26
- Technician → Workbench frontend: uses
README.md - Workbench frontend → Repair navigation: routes
web/js/main.js - Repair navigation → Diagnostic dashboard: opens repair
web/js/router.js - Diagnostic dashboard → FastAPI application: opens diagnostic session
README.md - Technician → Pipeline routes: submits device inputs
README.md - Pipeline routes → Pack generation: dispatches build
api/pipeline/__init__.py - Pack generation → Schematic ingestion: ingests schematic
api/pipeline/orchestrator.py - Schematic ingestion → Electrical graph: compiles graph
api/pipeline/schematic/orchestrator.py - Pack generation → Pack persistence: persists pack
README.md - Pipeline routes → Pipeline progress: streams progress
README.md - Technician → Boardview API: uploads boardview
api/board/router.py - Boardview API → Board parsers: parses file
api/board/router.py - Board parsers → Board model: builds board
api/board/parser/base.py - Boardview API → Board rendering: requests render
api/board/router.py - Board rendering → Board model: renders model
api/board/render.py - FastAPI application → Diagnostic runtime: selects managed runtime
README.md - FastAPI application → Direct runtime: selects fallback runtime
api/main.py - Diagnostic runtime → Managed Agents: uses
README.md - Direct runtime → Anthropic models: calls Messages API
README.md - Diagnostic runtime → Agent tools: dispatches tools
README.md - Diagnostic runtime → Refdes sanitizer: sanitizes output
README.md - Diagnostic runtime → Boot simulator: queries diagnosis engine
README.md - Diagnostic runtime → Fault hypothesizer: queries diagnosis engine
README.md - Technician → Technician profile: maintains profile
README.md - Technician → Parts search: searches parts
README.md - Diagnostic dashboard → Boardview API: shows boardview
README.md