# 47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming architecture

> Architecture diagram of the GitHub repository 47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming
- Repository: https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming

## Overview

This repository is a local Ollama-backed demo pipeline for Qwen3.5 weight-space programming. Its principal workflow is `main.py`: it loads three task inputs, sends task-specific prompts to the configured model, and writes calculus, robotics, and code-debugging deliverables. The three workflows are distinct product stages, with model querying as a shared internal layer. The README also describes a robotics toolpath visualizer, but the sampled implementation only prints its output path; its generation is not shown.

Main entry points: [`main.py`](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py) (Robotics compiler), [`inputs/task1_calculus_problem.md`](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task1_calculus_problem.md) (Calculus problem), [`inputs/task2_robotic_command.md`](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task2_robotic_command.md) (Robotic command), [`inputs/task3_buggy_code.py`](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task3_buggy_code.py) (Buggy code)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Pipeline orchestration"]
  node_runner["Pipeline runner<br/>[main.py]"]
  node_model_query["Model query<br/>[main.py]"]
end

subgraph group_workflows["Task workflows"]
  node_calculus["Calculus derivation<br/>[main.py]"]
  node_robotics["Robotics compiler<br/>[main.py]"]
  node_debugger["Code debugger<br/>[main.py]"]
end

subgraph group_artifacts["Inputs and deliverables"]
  node_calculus_input["Calculus problem"]
  node_robotics_input["Robotic command"]
  node_debug_input["Buggy code"]
  node_calculus_tex["LaTeX derivation"]
  node_calculus_report["Calculus report"]
  node_robotics_gcode["Robotics G-code"]
  node_robotics_report["Robotics specification"]
  node_toolpath_visualizer["Toolpath visualizer"]
  node_debug_report["Debug report"]
end

node_user(("Pipeline user"))
node_ollama["Ollama model"]

node_user -->|"runs"| node_runner
node_runner -->|"runs"| node_calculus
node_runner -->|"runs"| node_robotics
node_runner -->|"runs"| node_debugger
node_calculus -->|"reads"| node_calculus_input
node_robotics -->|"reads"| node_robotics_input
node_debugger -->|"reads"| node_debug_input
node_calculus -->|"queries"| node_model_query
node_robotics -->|"queries"| node_model_query
node_debugger -->|"queries"| node_model_query
node_model_query -->|"calls"| node_ollama
node_calculus -->|"writes"| node_calculus_tex
node_calculus -->|"writes"| node_calculus_report
node_robotics -->|"writes"| node_robotics_gcode
node_robotics -->|"writes"| node_robotics_report
node_robotics -->|"announces path"| node_toolpath_visualizer
node_debugger -->|"writes"| node_debug_report

click node_runner "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py"
click node_model_query "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py"
click node_calculus "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py"
click node_robotics "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py"
click node_debugger "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py"
click node_calculus_input "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task1_calculus_problem.md"
click node_robotics_input "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task2_robotic_command.md"
click node_debug_input "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task3_buggy_code.py"
click node_calculus_tex "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task1_calculus_derivation.tex"
click node_calculus_report "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task1_calculus_derivation.md"
click node_robotics_gcode "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_robotics_gcode.gcode"
click node_robotics_report "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_robotics_gcode.md"
click node_toolpath_visualizer "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_toolpath_visualizer.html"
click node_debug_report "https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task3_code_debug_report.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runner,node_model_query,node_user toneBlue
class node_calculus,node_robotics,node_debugger toneAmber
class node_calculus_input,node_robotics_input,node_debug_input,node_calculus_tex,node_calculus_report,node_robotics_gcode,node_robotics_report,node_toolpath_visualizer,node_debug_report toneMint
class node_ollama toneIndigo
```

## Components

### Pipeline orchestration

- [Pipeline runner](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py): `main.py`
- [Model query](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py): `main.py`

### Task workflows

- [Calculus derivation](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py): `main.py`
- [Robotics compiler](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py): `main.py`
- [Code debugger](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/main.py): `main.py`

### Inputs and deliverables

- [Calculus problem](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task1_calculus_problem.md): `inputs/task1_calculus_problem.md`
- [Robotic command](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task2_robotic_command.md): `inputs/task2_robotic_command.md`
- [Buggy code](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/inputs/task3_buggy_code.py): `inputs/task3_buggy_code.py`
- [LaTeX derivation](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task1_calculus_derivation.tex): `outputs/task1_calculus_derivation.tex`
- [Calculus report](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task1_calculus_derivation.md): `outputs/task1_calculus_derivation.md`
- [Robotics G-code](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_robotics_gcode.gcode): `outputs/task2_robotics_gcode.gcode`
- [Robotics specification](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_robotics_gcode.md): `outputs/task2_robotics_gcode.md`
- [Toolpath visualizer](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task2_toolpath_visualizer.html): `outputs/task2_toolpath_visualizer.html`
- [Debug report](https://github.com/47thtechcorner/raycodes_qwen3.5-0.8b-weight-space-programming/blob/main/outputs/task3_code_debug_report.md): `outputs/task3_code_debug_report.md`

### Other components

- **Pipeline user**
- **Ollama model**

## Connections

- Pipeline user → Pipeline runner: runs (evidence: `README.md`)
- Pipeline runner → Calculus derivation: runs (evidence: `main.py`)
- Pipeline runner → Robotics compiler: runs (evidence: `main.py`)
- Pipeline runner → Code debugger: runs (evidence: `main.py`)
- Calculus derivation → Calculus problem: reads (evidence: `main.py`)
- Robotics compiler → Robotic command: reads (evidence: `main.py`)
- Code debugger → Buggy code: reads (evidence: `main.py`)
- Calculus derivation → Model query: queries (evidence: `main.py`)
- Robotics compiler → Model query: queries (evidence: `main.py`)
- Code debugger → Model query: queries (evidence: `main.py`)
- Model query → Ollama model: calls (evidence: `main.py`)
- Calculus derivation → LaTeX derivation: writes (evidence: `main.py`)
- Calculus derivation → Calculus report: writes (evidence: `main.py`)
- Robotics compiler → Robotics G-code: writes (evidence: `main.py`)
- Robotics compiler → Robotics specification: writes (evidence: `main.py`)
- Robotics compiler → Toolpath visualizer: announces path (evidence: `main.py`)
- Code debugger → Debug report: writes (evidence: `main.py`)
