On this page
Key takeaways
- One prompt, then no more typing for the second holder. Opus wrote a 117-line power strip holder in about a minute. I made the controller tray from it by dragging five sliders: no AI, and it re-rendered instantly.
- Feature edits change one part and leave the rest alone. "Turn the channel into a headphone hook, keep the plate and screw holes" did exactly that. Neither the plate code nor the screw-hole code changed by a single line.
- The second edit swapped the mounting method instead. A desk clamp with a captive M6 nut replaced the screw plate, with the hook carried over unchanged. Desk thickness became a new slider.
- Sliders and Auto-improve can disagree. With Auto-improve on, my slider-sized tray set off a 39-second refine pass, because it no longer matched the brief. Type the new values as a chat line instead and they are written into the code for free.
- All four parts print on their side with no supports. Estimates on a Bambu X1C range from 29 minutes and 20 g (one strip clip) to 3 hours and 148 g (the full-width controller tray).
The plan: one profile, three jobs
Under my desk there is a power strip on the floor, a headset that lives on the desk, and a game controller that never has a home. Under-desk holders are among the most popular useful prints, but every download is sized for somebody else's strip, headphones or desk.
So I did not want three models. I wanted one mount the CAD agent writes once, with every size as a slider, that I could reshape into each holder. All three are the same idea: a flat part that fixes to the desk, and a cradle hanging below it. Only the cradle changes.
Everything happened in one chat on Claude Opus 5.5, which the model picker describes as best for "mounts, enclosures and multi-feature parts". I switched on Advanced mode, which adds the code editor, the Params tab and the feature chips this story is about, and left Auto-improve on.
| Holder | How I made it | AI turns | Time |
|---|---|---|---|
| Power strip clip | First prompt | 1 | 1 min 3 s |
| Controller tray | Five sliders, then one typed line | 0 (+1 automatic refine) | instant (+39 s) |
| Headphone hook | @feature edit of the channel and lip | 1 | 2 min 7 s |
| Clamp-on headphone hook | @feature edit of the plate and screw holes | 1 | 2 min 33 s |
Times are from the chat's own timers. Each AI turn on Opus costs 3x a Kimi message. The refine pass is explained below.
Holder 1: the power strip clip
I wrote the prompt for a strip 55 mm front to back and 40 mm tall, with every number in it. Two parts of it did most of the work later on. "Keep the mounting plate, the channel and the lip as separate features" gave me named parts to edit, and "make every size a slider" gave me something to drag.
Design an under-desk holder for a power strip that screws to the underside of my desk. The profile is a C-shaped channel hanging below a flat mounting plate: the strip slides in from either end and rests on the channel floor, a short front lip stops it sliding out toward me, and the outlets face forward through the open front. The strip is 55 mm deep (front to back) and 40 mm tall, so make the inside of the channel 57 x 42 mm. The holder is 40 mm long; I will use two per strip. The mounting plate runs 20 mm past the back of the channel, with two countersunk holes for 4 mm wood screws in that flange. 3 mm walls, a 15 mm tall front lip and 3 mm fillets in the inside corners. Keep the mounting plate, the channel and the lip as separate features and make every size a slider, because I want to reuse this mount for other things later. It should print on its side with no supports.
A C-channel with a screw flange, in about a minute
@feature markers.
- Time
- 1 min 3 s
- Code
- 117 lines, 5 features
- Size
- 40 × 83 × 48 mm
- Sliders
- 12, plus a colour
- 29 min, 20.6 g each
Opus drew the whole holder as one 2D profile and extruded it along the length. That is the right call for this shape: the part prints on its side with the profile flat on the bed, so every wall is strong along its length and nothing overhangs. It even made the screw holes teardrop-shaped so they print on their side without support.
- Every number from the prompt landed: 57 × 42 mm inside, 3 mm walls, 15 mm lip, 20 mm flange.
- The design brief listed validation targets (bbox, inside size, 2 holes, 4 fillets) before any code was written.
- Teardrop holes with a 90° countersink on the underside, so the screw heads sit flush.
- The 4.5 mm holes suit 4 mm screws. If yours are bigger, change
screw_hole_diameterfirst. - Plate and channel walls are all 3 mm. That is fine for a strip, but I would add a millimetre for anything heavier.
Holder 2: a controller tray, made with sliders
A game controller is about 155 mm wide, 105 mm deep and 60 mm thick, so it needs the same shape at about three times the size. In the Params tab every number from the code is a slider with a typing box. I set the length to 170, the inside to 112 × 72 mm, the lip to 20 mm and the screw spacing to 120 mm so the screws sit near the ends.
Slider changes run in the browser: OpenSCAD re-renders the part with the new values and nothing goes to the AI. Change the inside depth and the plate, flange and screw positions all follow, because Opus wrote them as formulas of the slider values instead of fixed numbers.
// before: translate, then extrude from 0 to holder_length
module extrude_profile() {
translate([-holder_length / 2, 0, 0])
rotate([90, 0, 90])
linear_extrude(holder_length) children();
}
// after the Auto-improve pass: centred, so X is always ±holder_length / 2
module extrude_profile() {
rotate([90, 0, 90])
linear_extrude(height = holder_length, center = true) children();
}
The refine pass's only change. Both versions give the same part; the second one cannot drift off-centre.
Sliders do not change the code. They are overrides on top of it, so the file you download or keep editing still says 40 mm. To make the new sizes permanent, I typed them into the chat as one line:
holder_length = 170, inner_depth = 112, inner_height = 72, lip_height = 20, screw_hole_spacing = 120
Any message made only of name = value pairs, or a simple "set X to N", is applied this way without calling a model. I used the same trick to put the clip back to 40 mm before the next edit. The animation at the top of this page is those five values swept between the two holders, each frame rendered from the session's OpenSCAD.
Two things to watch with a big tray. It takes 3 hours and 148 g to print at full width, and a 170 mm plate on two screws is a lever. If your controller does not need a full-width shelf, set holder_length to 40 and print two, the same way the strip is held.
Holder 3: a headphone hook, with an @feature edit
A headphone hook is not a resized channel: the cradle is a different shape. This is what @feature edits are for. In Advanced mode, every // @feature: marker in the code becomes a chip above the chat. Click one and that part lights up in the viewer and its reference drops into your message.
channel chip highlights the floor and back wall and adds @feature[channel] to the message.I referenced the two features to replace and the two to keep. Saying what to keep matters. The agent sees the whole file every turn, and naming the parts that must not move is the clearest way to stop it "improving" them.
@feature[channel] @feature[front_lip] Turn these into a headphone hook instead of a channel. A single 5 mm thick arm drops 60 mm from the back of the plate, then curves forward into a saddle 45 mm deep with a 12 mm raised tip at the front so the headband cannot slide off. Make the bottom of the saddle a smooth curve, at least 15 mm radius, so it does not crease the headband padding. Keep @feature[mounting_plate] and @feature[screw_holes] exactly as they are.
The cradle swapped, the plate untouched
- Time
- 2 min 7 s
- Change
- +52 / −34 lines
- Size
- 40 × 83 × 63 mm
- Plate and screw-hole code
- unchanged
- 30 min, 19.9 g
Opus replaced the channel and lip with a single headphone_hook feature: a 5 mm arm, a 45 mm saddle with an R17.5 bottom (it chose more than the 15 I asked for) and a 12 mm tip with rounded edges. It removed the four sliders that only made sense for a channel, and added plate_depth so the plate keeps its 83 mm without them.
mounting_plate_profile()andscrew_holes()are identical, line for line, to the clip's.- The plate keeps its size and hole positions, so it uses the same screw holes in the desk.
- The "What changed" note said exactly what moved: the plate rose from Z 45 to 60 to sit on the longer arm.
- A 40 mm wide hook is a lot wider than a headband.
holder_length25 would save filament. - The arm meets the plate in front of the screw flange, so the screws are not in line with the load. That is fine for headphones, but not for heavy bags.

No drill? Swap the plate for a clamp
Plenty of desks are rented, glass, or not yours to drill. So the second @feature edit did the opposite of the first: it replaced the mounting and kept the cradle.
@feature[mounting_plate] @feature[screw_holes] For a desk I cannot drill, swap the screw-down plate for a clamp that slips over the front edge of the desk: a C-shaped clamp with a 25 mm opening for the desktop (make the desk thickness a slider), 40 mm deep jaws, and an M6 bolt that screws up through a captive hex nut in the lower jaw to tighten it against the underside. Leave @feature[headphone_hook] exactly as it is, hanging from the lower jaw.
A C-clamp with a captive nut, and the hook carried over
desk_clamp and clamp_bolt. The hook chip is the same one as before.- Time
- 2 min 33 s
- Change
- +66 / −48 lines
- Size
- 40 × 46 × 101 mm
- Hook values
- all unchanged
- 40 min, 27.8 g
The plate and screw holes became desk_clamp and clamp_bolt: a 6 mm spine, a 6 mm top jaw and a 10 mm bottom jaw thick enough to bury an M6 nut. The nut sits in a hex pocket that opens into the clamp gap, so tightening the bolt pulls the nut down onto 4.5 mm of plastic instead of out of it.
- Every hook number (arm, drop, saddle, radius, tip) is the same as before.
- The brief told me to set
desk_thicknessa few mm over my real desk so the clamp slides on and the bolt takes up the gap. - It prints on its end with no supports. The nut pocket is turned so its roof is a 5.9 mm bridge.
- Five lines of hook code changed, to hang it from the jaw instead of the old plate. The shape is the same, but "exactly as it is" did not mean untouched code.
- The bolt tip presses straight on the desk. Stick a felt pad under it.
- You tighten the bolt from inside the hook. It has 55 mm of room, so a wing bolt or thumb screw is easier than a spanner.
color(holder_color)
difference() {
union() {
// @feature: desk_clamp
extrude_profile() clamp_profile();
// @feature: headphone_hook
extrude_profile() hook_profile();
// @feature: inside_fillets
extrude_profile() fillets_profile();
}
// @feature: clamp_bolt
clamp_bolt();
}
The four @feature markers that become chips. headphone_hook kept its name through both edits, so I could keep referring to it.
// M6 clearance hole + captive hex nut pocket opening into the clamp gap
module clamp_bolt() {
translate([0, bolt_y, jaw_bottom_z - 0.01])
linear_extrude(lower_jaw_thickness + 0.02)
teardrop_2d(bolt_hole_diameter);
// flat side faces +X so the pocket roof bridges when printed on end
translate([0, bolt_y, jaw_top_z - nut_pocket_depth])
linear_extrude(nut_pocket_depth + 0.01)
rotate(30) circle(d = nut_pocket_width / cos(30), $fn = 6);
}
A 6.6 mm teardrop clearance hole and a 10.4 mm hex pocket for a standard 10 mm M6 nut.
desk_thickness slider, from a 15 mm shelf to a 40 mm desktop. The hook does not move.

Printing the holders
Every version is a profile extruded along its length, so they all print the same way: on their side, with the profile flat on the bed and the length going up. Layers then run along each wall, which is the strong direction for a hook or a clamp, and the only holes are teardrops that need no support.
| Holder | Printed size | Time | Filament | Hardware |
|---|---|---|---|---|
| Power strip clip (print 2) | 48 × 83 × 40 mm | 29 min each | 20.6 g each | 4 × 4 mm wood screws |
| Controller tray | 78 × 138 × 170 mm | 3 h 3 min | 147.9 g | 2 × 4 mm wood screws |
| Headphone hook | 63 × 83 × 40 mm | 30 min | 19.9 g | 2 × 4 mm wood screws |
| Clamp-on hook | 101 × 46 × 40 mm | 40 min | 27.8 g | M6 × 20–30 bolt, M6 nut, felt pad |
| Clamp-on hook, 4 walls, 30% infill | 101 × 46 × 40 mm | 59 min | 45.9 g | as above |
Sizes are as laid on the bed. The bolt only has to cross the 10 mm jaw and the few millimetres between the jaw and your desk, so length is not critical. A longer one just hangs lower into the hook, which has 55 mm of room.
- AI turns in the whole chat
- 4
- free NO-AI edits
- 2
- supports on any holder
- 0
- of plate code changed by the hook edit
- 0 lines
- Use more walls for the clamp. The bolt squeezes the jaws apart, so I would print it with 4 walls and 30% infill (59 minutes, 46 g). PETG is a better choice than PLA under a desk that gets warm.
- Two clips per strip. Put them about 20 mm in from each end of the strip.
- Screw into solid wood. In a hollow-core or chipboard desk, short screws pull out. The clamp version is the safer choice there.
Make it fit your desk
Most of the work is done by the first prompt's features and sliders. Here is what I would change for other things under a desk:
| To hold | Start from | What to change |
|---|---|---|
| A different power strip | Strip clip | inner_depth and inner_height: your strip plus 2 mm |
| A laptop power brick | Strip clip | The inside size of the brick, plus a lower lip_height |
| Game controller or TV remote | Controller tray | holder_length, or print two short ones |
| A thick desk | Clamp-on hook | desk_thickness, a few mm over your desk |
| A bag or a second headset | Headphone hook | saddle_depth and arm_drop; also ask for a thicker arm |
| Cables along the desk edge | Strip clip | An @feature edit: a shallow open tray instead |
- Name the features in your first prompt
Ask for the mounting, the cradle and the details as separate features. Those names become the chips, and the chips are what make later edits precise.
- Measure, then type the numbers
Give the inside size of the thing you are holding, plus 1–2 mm. The agent will not guess your power strip.
- Drag sliders for sizes, edit features for shapes
If the holder is the same shape, only bigger, use the sliders. If it is a different shape, like a hook instead of a channel, use an
@featureedit. - Say what to keep
In every
@featureedit, name the features that must not change. Then read the "What changed" note, which reports anything that moved. - Make slider values permanent with one line
Type
name = value, name = valuein the chat. It is written into the code with no AI, so it survives downloads and the next edit. - Turn off Auto-iterate while you experiment
A slider that takes the part away from the brief can start a refine pass. Switch it back on before you ask for the next real change.
Sources and method
Made on November 29, 2026, in one CAD agent chat on a PrintPal Pro account, with Claude Opus 5.5, Advanced mode and Auto-improve on. The prompts are shown above, unedited. Times are from the chat's timers. The OpenSCAD for each version and the chat text were saved straight from the page, and the claims about what each edit changed come from line diffs between those files. Renders and animations are those files rendered with OpenSCAD's manifold backend: the build animations follow each file's @feature markers, and the slider sweeps re-render the file with the slider values passed as overrides. The lineup's desk and power strip are stand-in boxes. Bolt clearance was checked by casting a ray up the bolt axis through the clamp mesh. Print times and filament are Bambu Studio estimates for an X1 Carbon at 0.20 mm in PLA. Nothing has been printed. PrintPal makes the CAD agent.
- PrintPal AI CAD agent
- OpenSCAD user manual: linear_extrude and offset
- OpenSCAD documentation
- Bambu Studio
Spotted something out of date? Tell us and we will re-check it.


