Review a control script with Assist and check the planned feed profile against your own run data. You review and load the script yourself.
The problem
A process engineer needs to change a fed-batch glucose feed script in their bioreactor control software. The script has C#-like syntax, with global values initialized once. It calculates a pump flow setpoint from a target glucose rate in g/L/h, culture volume, feed concentration in w/v % and solution density.
The target rate is fixed today. For the next fermentation, it should start at 1.8 g/L/h and decrease linearly to about 1.5 g/L/h at the planned end, while the pump flow scales with the current culture volume. The engineer wants to match the feed profile of run USP-26-042 in Invert, not just change a number in the code.
Script changes are slow and often need someone with automation expertise. Even a small edit needs checks on units, timing and how the control software keeps its values between executions.
What you do
Paste the existing script into the chat or attach the script file, then ask:
"I've attached our current glucose feed script. Change it to use the current culture volume and decrease from 1.8 to 1.5 g/L/h over 60 hours of fed-batch. Compare the planned profile with run USP-26-042 in Invert. Explain the changes and flag anything I need to check before loading it into the bioreactor control software. Current feed lot GLC-26-118: glucose 50% w/v, density 1.19 g/mL."
The prompt with the script file attached. Assist reads the script, finds the run and pulls its setpoints, volume and metabolite data before it answers:

The run name and timing in this example are illustrative.
What Assist does
- Reads and explains the script: which globals are initialized once, how fed-batch time is measured and how the target glucose rate becomes a pump flow setpoint. It separates what the code shows from assumptions about how the bioreactor control software executes it.
- Calculates the taper: for a 60-hour fed-batch, the slope is (1.5 − 1.8) / 60 = −0.005 g/L/h per hour. Assist rewrites the setpoint calculation to use this time-dependent rate and the current culture volume, rather than a fixed volume.
- Checks the units: rate in g/L/h times culture volume in L gives glucose in g/h. A feed at 50% w/v contains 500 g/L, so dividing by that concentration gives solution flow in L/h, then multiplying by 1,000 gives mL/h. If the script converts solution mass in g to volume in mL, Assist checks the density in g/mL and makes sure it is not applied twice to a concentration already given per unit volume.
- Flags limits and state changes: a linear decrease without a lower limit can eventually become negative. Assist adds a
Math.Maxfloor and makes its value explicit for review. It also flags defaults that apply only on first initialization, so edited values may not take effect, and checks whether restarting the phase would reset the fed-batch timer. Any behavior that depends on the control software is stated as an assumption to confirm. - Checks the remaining details: it flags a density value that differs from the current feed lot information supplied by the engineer, along with unused variables and comments that no longer describe the calculation.
- Compares with the earlier run: Assist reads the feed-rate data logged for USP-26-042 in Invert and compares it with the planned profile over fed-batch time. It points out if the earlier run used a different volume basis, such as initial rather than current culture volume, instead of treating the profiles as directly equivalent. If the logged data do not establish the volume basis, it says so.
For this example, the revised rate calculation could look like this, with time in hours since fed-batch started:
double slope = (1.5 - 1.8) / 60.0;
double glucoseRate = Math.Max(1.5, 1.8 + slope * fedBatchHours);
Here, the floor holds the rate at 1.5 g/L/h after the planned end time. It is a proposed operating choice, not a limit inferred from the earlier run. The engineer must confirm it along with the timer behavior, volume signal, feed properties and pump setpoint units.
Assist returns a draft and explains what changed. The engineer reviews it and loads it into the bioreactor control software themselves. Assist does not push code or setpoints to the bioreactor.
The final answer ends with the revised script, with the taper, feed lot values and the points to check marked in the code:

Why it matters
- Less time waiting for a script edit. A scientist can get a draft and an explanation quickly, then take it through the required engineering review.
- Calculations checked against your data. The planned feed profile is compared with a named run in Invert, including differences in the volume basis.
- Assumptions are visible. Unit conversions, initialization behavior and timer resets are part of the review, not hidden in the code.
Example prompts
- "I've pasted our feed script below. Use the current culture volume and taper from 1.8 to 1.5 g/L/h over 72 hours. Compare it with USP-26-043 in Invert and show me the slope calculation."
- "Review the attached script against USP-26-042. Our current feed lot has a density of 1.20 g/mL and 50% w/v glucose. Check the pump flow units and tell me which values might stay unchanged after I edit the defaults."
- "In the script I pasted, what happens if the fed-batch phase restarts? Flag any assumptions about the timer and show a draft with a 1.5 g/L/h floor for me to review."