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
Migrating a production AI agent to GPT-5.6: 2.2x faster, 27% cheaper
마케팅 웹사이트를 자동 생성하는 프로덕션 AI 에이전트를 Claude Opus 4.8에서 GPT-5.6 Sol로 전환한 실전 경험담으로, 단순 모델 교체가 아니라 eval 하네스, 툴 스키마, 캐싱, 추론 리플레이까지 손봐야 했던 과정을 구체적인 수치와 함께 정리했다.
What xAI's Grok build CLI sends to xAI: A wire-level analysis
xAI의 공식 코딩 CLI 도구 Grok Build가 사용자 동의 없이 전체 Git 저장소와 .env 시크릿 파일을 xAI 서버로 업로드한다는 사실이 네트워크 트래픽 분석으로 밝혀졌다.
Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents
LLM 에이전트가 긴 작업 중 중요한 정보를 잊어버리는 문제를 별도의 메모리 에이전트가 '적절한 타이밍에' 끼어들어 해결하는 방법
WebSwarm: Recursive Multi-Agent Orchestration for Deep-and-Wide Web Search
복잡한 웹 검색을 재귀적으로 분해하고 각 노드에 적합한 검색 모드를 동적으로 할당하는 멀티에이전트 프레임워크
Show HN: Reverse-engineering web apps into agent tools
로그인된 웹 앱의 API 호출을 브라우저에서 감시해 자동으로 MCP 도구로 변환하는 에이전트를 만들었다. 소스 코드나 공식 API 문서 없이도 Jira, Spotify 같은 서비스에 AI 어시스턴트를 붙일 수 있다.
Show HN: FableCut – A browser video editor AI agents can drive (zero deps)
타임라인 전체를 JSON 파일 하나로 표현하고 MCP/REST로 AI 에이전트가 직접 편집할 수 있는 브라우저 비디오 에디터로, Claude 같은 AI가 프롬프트 하나로 영상을 자동 컷편집하고 결과를 실시간으로 UI에 반영해준다.