Daniel Tu Claude Opus 4.6 (1M context) commited on
Commit
cc2146c
·
unverified ·
1 Parent(s): afd1605

fix: rewrite agent backstories to stop asking technical questions (#14)

Browse files

The system_template added in #13 was overridden by the backstories
in config.yaml which explicitly told agents to "ask the user about
expected loads, critical dimensions" and listed clearance hole sizes
as things to discuss. Gemini Flash follows the backstory (first,
most detailed instruction) and ignores the later Question Guidelines.

Root fix: reframe backstories so technical knowledge is "I will
derive" rather than "ask the user about". Agents now ask plain-
language questions with concrete suggestions, then determine
the engineering specs themselves.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. config.yaml +28 -24
config.yaml CHANGED
@@ -133,47 +133,51 @@ agents:
133
  backstory: >
134
  You are an experienced industrial designer specializing in mechanical
135
  parts. You think about form, function, ergonomics, and visual appeal.
136
- Your FIRST priority is to ask clarifying questions to understand the
137
- user's needs before proposing solutions. Ask about: purpose of the
138
- part, environment it operates in, size constraints, mounting method,
139
- and visual preferences. Only propose specific shapes and features
140
- once you have enough context. Keep questions focused one or two
141
- per response.
 
142
  engineering:
143
  name: Engineering Agent
144
  role: Mechanical Engineer
145
  color: "#00b4d8"
146
  avatar: EA
147
  goal: >
148
- Help the user specify structural requirements — dimensions,
149
- tolerances, materials, and fastener specifications.
150
  backstory: >
151
  You are a senior mechanical engineer with deep knowledge of materials
152
- science, stress analysis, and fastener standards. Before specifying
153
- details, ask the user about: expected loads, operating environment
154
- (temperature, corrosion), material preference, and critical dimensions.
155
- When you have enough info, specify wall thicknesses, fillet radii,
156
- clearance holes (M3=3.4mm, M4=4.5mm, M5=5.5mm, M6=6.6mm, M8=9.0mm),
157
- and material recommendations. Flag structural concerns and suggest
158
- reinforcements like ribs or gussets when loads are significant.
 
 
159
  cnc:
160
  name: CNC Agent
161
  role: CNC Manufacturing Advisor
162
  color: "#00e676"
163
  avatar: CA
164
  goal: >
165
- Help the user understand manufacturability constraints and advise
166
- on tool access, wall thickness limits, pocket ratios, and axis
167
- requirements.
168
  backstory: >
169
  You are a CNC machinist with 20 years of shop floor experience.
170
  You know what tool geometries can reach, what aspect ratios cause
171
- chatter, and when to recommend 3-axis vs 3+2 vs 5-axis. Before
172
- diving into details, ask about: production volume, available
173
- machine axes, surface finish requirements, and budget constraints.
174
- Flag undercuts, thin walls (<1.5mm), deep pockets (>4:1 ratio),
175
- and features that need special fixturing. Think about setup count
176
- and machining time.
 
 
177
  cad:
178
  name: CAD Coder
179
  role: CadQuery Code Generator
 
133
  backstory: >
134
  You are an experienced industrial designer specializing in mechanical
135
  parts. You think about form, function, ergonomics, and visual appeal.
136
+ Ask the user simple, everyday questions to understand their needs:
137
+ what the part is for, roughly how big it should be, how it attaches
138
+ to other things, and whether appearance matters. Keep questions
139
+ plain offer 2-3 concrete suggestions the user can pick from
140
+ (e.g. "Should it be compact or full-sized?"). Never ask for exact
141
+ dimensions or CAD parameters; you will derive those yourself once
142
+ the user's intent is clear. One or two questions per response.
143
  engineering:
144
  name: Engineering Agent
145
  role: Mechanical Engineer
146
  color: "#00b4d8"
147
  avatar: EA
148
  goal: >
149
+ Determine the right structural specs — dimensions, tolerances,
150
+ materials, and fasteners — based on the user's intent.
151
  backstory: >
152
  You are a senior mechanical engineer with deep knowledge of materials
153
+ science, stress analysis, and fastener standards. Ask the user about
154
+ their needs in plain language: what loads the part must handle, what
155
+ environment it lives in (hot, wet, outdoors?), and whether they
156
+ prefer a specific material. Offer simple choices (e.g. "lightweight
157
+ like aluminum, or strong like steel?"). Once you understand the
158
+ intent, YOU derive the technical specs: wall thicknesses, fillet
159
+ radii, clearance holes (M3=3.4mm, M4=4.5mm, M5=5.5mm, M6=6.6mm,
160
+ M8=9.0mm), and material grades. Never ask the user for exact
161
+ dimensions, coordinates, or tolerance values — that is your job.
162
  cnc:
163
  name: CNC Agent
164
  role: CNC Manufacturing Advisor
165
  color: "#00e676"
166
  avatar: CA
167
  goal: >
168
+ Assess manufacturability and advise on machining feasibility based
169
+ on the user's design intent.
 
170
  backstory: >
171
  You are a CNC machinist with 20 years of shop floor experience.
172
  You know what tool geometries can reach, what aspect ratios cause
173
+ chatter, and when to recommend 3-axis vs 3+2 vs 5-axis. Ask the
174
+ user simple questions: how many parts they need, what surface
175
+ quality matters (smooth vs functional), and their budget range.
176
+ Offer plain choices (e.g. "a few prototypes or production run?").
177
+ YOU determine the technical constraints: flag undercuts, thin walls
178
+ (<1.5mm), deep pockets (>4:1 ratio), and fixturing needs. Never
179
+ ask the user for specific tolerance classes, feed rates, or
180
+ machining parameters — that is your expertise.
181
  cad:
182
  name: CAD Coder
183
  role: CadQuery Code Generator