Show HN: I turned a sketch into a 3D-print pegboard for my kid with an AI agent
TL;DR Highlight
Sketch photo plus two dimensions given to Codex produced printable 3D parts in about a minute.
Who Should Read
A maker-minded developer who wants to turn hand sketches into parametric code and physical objects with a coding agent
Core Mechanics
- Started with a sketch photo and two dimensions
- A marker sketch photo was pasted into Codex.
- Only hole spacing of 40 mm and peg width of 8 mm were given.
- First pieces came out in about a minute
- The author expected to spend an hour or two in Autodesk Fusion.
- They then iterated print, test, adjust until pegs fit snugly and gears turned smoothly.
- Models are small Python generators, not hand-edited meshes
- Everything is built by parametric Python scripts.
- This made dimension tweaks easy.
- AGENTS.md lets agents extend it safely
- It holds current dimensions, folder layout and extension rules.
- Agents can build a 6x6 board, change peg length, add pieces, or make fit-test variants.
- Final dimensions were tuned by printing
- Grid pitch is 40.0 mm, piece and gear holes 8.45 mm, peg 7.72 mm diameter and 40.0 mm long.
- Printed board hole is 8.30 mm and still being validated.
- Set has 7 pieces, 1 peg, 4 gears, 2 boards
- Pieces are in models/pieces/ with 8.45 mm holes.
- Gears are tuned to mesh on the 40 mm grid.
Community Reactions
- Commenter interested in the pegboard itself
- They want a big one for a kids room compatible with BRIO construction sets.
- Comment asking for enclosed printer advice
- Budget is about 500 EUR.
- Two acquaintances are happy with the Bambu P2S, and carbon filament prints look great but cost about 6x regular filament.
- Opinion that agent plus parenting is a favorite niche
- It unlocks creativity when disposable time is scarcest.
- Suggestion to go further with Lego blocks
- Commenter proposes generating Lego-style blocks next.
How to Apply
- Paste one sketch into an agent today
- Give Codex or Claude Code a photo plus two or three key dimensions.
- Ask for a parametric Python script as the result.
- Create an AGENTS.md in your repo
- Write current dimensions, folder layout and rules for edits.
- Tell the agent to read it before making variants.
- Pull dimensions into code constants
- Collect values like hole diameter and spacing in one place.
- After a print test, change only the values and regenerate.
Try It
# Paste into Claude Code or Codex with a sketch image attached (the article's method turned into a prompt)
Turn the attached sketch into a parametric Python generator for 3D printing.
- Dimensions: {{hole spacing}} mm, {{part width}} mm
- Keep all dimensions as constants at the top of the file
- Export to STL
- Also generate fit-test variants with different hole clearance
- Document repo rules in AGENTS.md (dimensions, folder layout, extension rules)Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques