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
How Claude Code works in large codebases
Anthropic이 수백만 줄짜리 모노레포, 레거시 시스템, 수십 개 마이크로서비스 환경에서 Claude Code를 운영한 패턴을 정리한 글이다. RAG 방식 대신 에이전틱 검색을 쓰는 이유와 실제 현장의 한계를 함께 확인할 수 있다.
Show HN: Needle: We Distilled Gemini Tool Calling into a 26M Model
Gemini의 함수 호출(tool calling) 능력만 뽑아서 26M(2600만) 파라미터짜리 초경량 모델로 만든 프로젝트로, 폰/워치/스마트글라스 같은 엣지 디바이스에서 직접 실행 가능하다.
Show HN: Agentic interface for mainframes and COBOL
수십 년 된 메인프레임(z/OS) 환경을 AI 에이전트로 조작할 수 있게 해주는 개발 도구로, COBOL 코드 작성부터 JCL 실행, 디버깅까지 자연어로 처리할 수 있어 레거시 시스템 유지보수 비용을 크게 줄일 수 있다.
Show HN: Statewright – Visual state machines that make AI agents reliable
AI 에이전트에게 40개 이상의 도구를 주면 오히려 성능이 떨어지는 문제를 State Machine으로 각 단계별 사용 가능한 도구를 제한해 해결하는 오픈소스 프로젝트다. 더 큰 모델 대신 더 작은 문제 공간을 만들어 신뢰성을 높이는 접근이 핵심이다.
Show HN: adamsreview – better multi-agent PR reviews for Claude Code
Claude Code에서 최대 7개의 병렬 서브 에이전트가 각각 다른 관점으로 PR을 리뷰하고, 자동 수정까지 해주는 오픈소스 플러그인이다. 기존 /review나 CodeRabbit보다 실제 버그를 더 많이 잡는다고 주장하지만 커뮤니티에서는 복잡도와 실효성에 대한 회의론도 나왔다.
How Fast Does Claude, Acting as a User Space IP Stack, Respond to Pings?
Claude Code에게 IP 패킷을 직접 파싱하고 ICMP echo reply를 구성하도록 시켜서 실제로 ping에 응답하게 만든 실험으로, 'Markdown이 곧 코드이고 LLM이 프로세서'라는 아이디어를 네트워크 스택 수준까지 밀어붙인 재미있는 사례다.