Show HN: I turned a sketch into a 3D-print pegboard for my kid with an AI agent
TL;DR Highlight
A real maker's account of pasting a marker sketch drawn with their child into Codex, providing just two dimensions, and getting a 3D-printable pegboard toy file in under a minute. A case study showing a workflow where AI generates 3D models via Python code—no CAD required.
Who Should Read
Maker-minded developers who want to quickly produce physical objects for 3D printing without CAD tools, or developers looking to apply AI Agents to real hardware and manufacturing projects.
Core Mechanics
- A marker sketch drawn with a child was photographed and pasted into Codex. With just two dimensions—40mm hole spacing and 8mm peg width—the first set of 3D models was generated in about one minute. This was work that would have taken one to two hours wrestling with Fusion 360.
- The output is not a hand-edited 3D mesh file but a Python generator script. This made the 'print → test → adjust dimensions → reprint' iteration cycle much faster—changing a single line of code updates all dimensions across the entire model.
- The final output on the 40mm system consists of 7 flat play pieces, 1 tuned peg, 4 gears, and 2 printable board variants. Fit-and-feel iteration was done manually until pegs snapped in precisely and gears turned smoothly.
- An AGENTS.md file was created separately in the repository to document current dimensions, folder structure, and extension rules. Thanks to this file, the AI Agent can handle requests like 'scale up to a 6x6 board,' 'increase peg length,' or 'add a new piece' without needing additional context.
- The core value the author emphasizes is having offloaded tedious CAD work to AI, freeing up time for actual printing, testing, and playing with the child. The significance lies in time reallocation rather than the technology itself.
- Comments noted potential application to laser cutting, and ideas emerged about extending the workflow to generate Lego-style blocks. This suggests the workflow is a pattern applicable to various manufacturing methods beyond just 3D printing.
Evidence
- "A comment that 'the Agent x Parent combination has become my favorite niche in the LLM space' resonated widely. The fact that AI unleashes creativity during the busiest period of life (raising children) led it to be received not as a mere tech demo but as a real-world impact story. The pipeline for turning sketches into physical toys drew reactions calling it 'a dream workflow—skipping tedious CAD modeling to focus on fit-and-feel iteration with the child.' The process itself was praised as ideal, beyond just the quality of the output. A commenter mentioned laser cutting applicability and expressed a desire to build a large children's room pegboard compatible with BRIO assembly sets, showing the project inspires other fabrication methods beyond 3D printing. There was also a suggestion to extend it to Lego block generation—received as a feasible idea given that the Python generator approach allows creating various assembly part families by simply changing parameters. A sub-discussion on 3D printer recommendations emerged, mentioning the Bambu P2S (a sealed printer around 500 euros), with shared experiences using carbon fiber filament. It was noted to be about 6x more expensive than regular filament but with surprisingly better output quality."
How to Apply
- "If you want to design your own 3D-printed toys or props but find CAD tools like Fusion 360 intimidating, draw a rough sketch by hand, note just one or two key dimensions (spacing, thickness, etc.), and feed the photo along with those notes into a coding agent like Codex or Claude. You can generate STL files directly from the resulting Python script. For 3D model projects that require frequent revisions, instead of editing finished mesh files (.stl) directly, build a parameterized Python generator like this project does. Changing one dimension regenerates the entire set, making fit-testing cycles much faster. To help an AI Agent understand your project context and handle modification requests, document current dimensions, folder structure, and extension rules in a separate file like this project's AGENTS.md. This keeps work stable because the agent doesn't need to re-analyze the entire codebase for every request. If you're a maker using a laser cutter or CNC, you can apply the same workflow (sketch → AI code generation → iterative parameter tuning) to produce SVG or DXF output. Using libraries like svgwrite or ezdxf in Python, you can build a similar parameter-based generator."
Code Example
# Example structure for providing context to an agent in AGENTS.md style
# (Based on the actual AGENTS.md from this project)
## Current System Dimensions
- Peg spacing: 40mm
- Peg width: 8mm
- Peg height: [adjustable]
## Folder Structure
models/pieces/ # Play piece STL files
models/gears/ # Gear STL files
scripts/ # Python generator scripts
## Example Agent Requests
# "Scale up to a 6x6 board"
# "Make the peg 2mm longer"
# "Generate a 0.1mm looser variant for fit testing"
# Basic Python generator pattern (conceptual)
import solid # Using OpenSCAD Python bindings, etc.
PEG_SPACING = 40 # mm
PEG_WIDTH = 8 # mm
def generate_board(cols=4, rows=4):
# Changing parameters regenerates the entire board
holes = []
for r in range(rows):
for c in range(cols):
holes.append((c * PEG_SPACING, r * PEG_SPACING))
return holesTerminology
Related Papers
Ornith-1.0: self-improving open-source models for agentic coding
Gemma 4와 Qwen 3.5를 기반으로 파인튜닝한 코딩 특화 오픈소스 모델로, RL(강화학습)을 통해 스캐폴드(에이전트 실행 구조)까지 함께 최적화하는 방식을 주장하지만, 커뮤니티에서는 벤치마크 과최적화에 불과하다는 의심을 받고 있다.
Herdr: Agent multiplexer that lives in your terminal
여러 AI 코딩 에이전트(Claude, Codex 등)를 하나의 터미널에서 동시에 실행·관리할 수 있는 Rust 기반 오픈소스 툴로, tmux처럼 세션이 유지되고 SSH로 원격 접속도 가능해 멀티 에이전트 워크플로우를 크게 단순화해준다.
Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
Claude Code, Codex, Cursor 같은 AI 코딩 에이전트가 실행 중일 때만 Mac의 절전 모드(뚜껑 닫힘 포함)를 막아주는 macOS 메뉴바 앱으로, 에이전트 세션이 끝나면 즉시 정상 절전으로 돌아온다.
Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion
Git 기반 동기화와 Claude/Codex/Cursor 연동을 내장한 로컬 우선 마크다운 에디터로, AI 에이전트의 두 번째 뇌(LLM Wiki)로 활용할 수 있는 오픈소스 도구다.
The Unfireable Safety Kernel: Execution-Time AI Alignment for AI Agents and Other Escapable AI Systems
AI 에이전트가 자신의 안전장치를 우회할 수 없도록, 에이전트 프로세스 바깥에 수학적으로 증명된 강제 통제 게이트를 배치하는 아키텍처
RubyLLM: A Ruby framework for all major AI providers
OpenAI, Claude, Gemini 등 주요 AI 프로바이더를 단일 인터페이스로 통합한 Ruby 프레임워크로, Rails 통합과 에이전트 기능까지 지원해 Ruby 개발자가 AI 기능을 빠르게 붙일 수 있다.