Design story

Clearing my desk with one parametric under-desk mount: power strip, headphones, controller

One prompt gave me a screw-on power strip holder. Then I dragged five sliders to turn it into a controller tray and used two @feature edits to make a headphone hook and a clamp-on version for desks you cannot drill. That was four AI turns and two free edits in one CAD agent chat, and each holder fits what I actually own.

On this page
  1. The plan: one profile, three jobs
  2. Holder 1: the power strip clip
  3. Holder 2: a controller tray, made with sliders
  4. Holder 3: a headphone hook, with an @feature edit
  5. No drill? Swap the plate for a clamp
  6. Printing the holders
  7. Make it fit your desk
  8. Sources and method

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.

A render of the underside of a wooden desk with two small blue clips holding a power strip, an orange headphone hook and a wide green controller tray hanging below it
The goal, rendered from the session's OpenSCAD. Two 40 mm clips hold the strip (a stand-in box), then the headphone hook and the controller tray.

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.

One chat, four holders
HolderHow I made itAI turnsTime
Power strip clipFirst prompt11 min 3 s
Controller trayFive sliders, then one typed line0 (+1 automatic refine)instant (+39 s)
Headphone hook@feature edit of the channel and lip12 min 7 s
Clamp-on headphone hook@feature edit of the plate and screw holes12 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.

AI CAD agent Claude Opus 5.5 · 3x

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.

Asking for named features and sliders in the first prompt is what makes the rest of this story possible.
Attempt 1

A C-channel with a screw flange, in about a minute

  • AI CAD agent
  • Claude Opus 5.5 · 3x
Opus's code, built in the order of its five @feature markers.
The CAD agent with the finished power strip clip in the viewer, its 7 of 7 done checklist, and five feature chips: mounting_plate, channel, front_lip, inside_fillets and screw_holes
The result. The chips at the bottom are the five features I asked for.
Time
1 min 3 s
Code
117 lines, 5 features
Size
40 × 83 × 48 mm
Sliders
12, plus a colour
Print
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.

What worked
  • 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.
What did not
  • The 4.5 mm holes suit 4 mm screws. If yours are bigger, change screw_hole_diameter first.
  • Plate and channel walls are all 3 mm. That is fine for a strip, but I would add a millimetre for anything heavier.
The CAD agent chat with the long power strip prompt and Opus thinking at 42 seconds, writing the module code with the derived depth and position values
Thinking at 42 s. The plan and checklist come first, then the code.

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.

The Params tab with sliders at 170, 112, 72, 3, 3, 20, 20 and 3 for the key dimensions and the viewer showing the much larger tray
The Params tab. Moving a slider re-renders in about 0.05 s, with no AI call.

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.

desk_v1.scad · extrude_profile()
// 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:

AI CAD agent

holder_length = 170, inner_depth = 112, inner_height = 72, lip_height = 20, screw_hole_spacing = 120

Typed as a normal chat message.
The chat reply: Updated holder_length 40 to 170, inner_depth 57 to 112, inner_height 42 to 72, lip_height 15 to 20, screw_hole_spacing 20 to 120, with a NO-AI badge
The reply, tagged NO-AI: the code was patched in the browser, instantly and for free.

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.

The CAD agent with the channel chip selected: the channel floor and back wall glow orange in the viewer with an @channel label, and @feature[channel] is typed in the message box
Clicking the 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.

AI CAD agent Claude Opus 5.5 · 3x

@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 15 mm minimum radius is there so the saddle does not crease the headband padding.
Attempt 2

The cradle swapped, the plate untouched

  • AI CAD agent
  • Claude Opus 5.5 · 3x
The hook version, built from its code.
The CAD agent viewer showing the headphone hook under the mounting plate, and an 8 of 8 done checklist ending with Edited model, +52 −34, 1,540 tris, 40 × 83 × 63 mm, 2 m 7 s
The checklist says the plate and screw holes are unchanged. The diff agrees.
Time
2 min 7 s
Change
+52 / −34 lines
Size
40 × 83 × 63 mm
Plate and screw-hole code
unchanged
Print
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.

What worked
  • mounting_plate_profile() and screw_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.
What did not
  • A 40 mm wide hook is a lot wider than a headband. holder_length 25 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.
Headphone hook: Drag to compare the power strip clip and the headphone hook from the same camera
Strip clip: Drag to compare the power strip clip and the headphone hook from the same camera
Strip clip Headphone hook
Same camera, same scale. Drag the handle: the plate and its two holes stay put, and only the part below changes.

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.

AI CAD agent Claude Opus 5.5 · 3x

@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.

An M6 bolt and nut from any hardware store. The nut is trapped in the print, so nothing needs tapping.
Attempt 3

A C-clamp with a captive nut, and the hook carried over

  • AI CAD agent
  • Claude Opus 5.5 · 3x
The clamp version. The hex pocket shows on top of the lower jaw.
The CAD agent viewer showing the C-clamp with the hook below and the checklist: captive M6 nut pocket, teardrop clearance hole, headphone hook unchanged, Edited model +66 −48, 40 × 46 × 101 mm, 2 m 33 s
New chips: 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
Print
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.

What worked
  • Every hook number (arm, drop, saddle, radius, tip) is the same as before.
  • The brief told me to set desk_thickness a 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.
What did not
  • 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.
desk_clamp.scad · assembly
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.

desk_clamp.scad · clamp_bolt()
// 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.

The new desk_thickness slider, from a 15 mm shelf to a 40 mm desktop. The hook does not move.
Clamp-on hook: Drag to compare the screw-on headphone hook and the clamp-on version from the same camera
Screw-on hook: Drag to compare the screw-on headphone hook and the clamp-on version from the same camera
Screw-on hook Clamp-on hook
Same camera, same scale. The hook is identical; the plate became a clamp.

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:

Which version and which sliders
To holdStart fromWhat to change
A different power stripStrip clipinner_depth and inner_height: your strip plus 2 mm
A laptop power brickStrip clipThe inside size of the brick, plus a lower lip_height
Game controller or TV remoteController trayholder_length, or print two short ones
A thick deskClamp-on hookdesk_thickness, a few mm over your desk
A bag or a second headsetHeadphone hooksaddle_depth and arm_drop; also ask for a thicker arm
Cables along the desk edgeStrip clipAn @feature edit: a shallow open tray instead
  1. 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.

  2. 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.

  3. 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 @feature edit.

  4. Say what to keep

    In every @feature edit, name the features that must not change. Then read the "What changed" note, which reports anything that moved.

  5. Make slider values permanent with one line

    Type name = value, name = value in the chat. It is written into the code with no AI, so it survives downloads and the next edit.

  6. 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.

  1. PrintPal AI CAD agent
  2. OpenSCAD user manual: linear_extrude and offset
  3. OpenSCAD documentation
  4. Bambu Studio

Spotted something out of date? Tell us and we will re-check it.

One mount, as many holders as you need

Ask for named features and sliders in your first prompt. Then use sliders to resize and @feature edits to change shape.