The left side of the figure shows the parts of a Strands harness that the optimizer can change. The rewriter changes the text, shown in purple, and a Bayesian optimizer chooses the settings, shown in blue. The optimizer doesn't change the agent's memory or code. The right side shows how the configuration changes over the first two rounds of an example search that rewrites the instructions and chooses between two context-manager strategies, each with one setting. Each round has five steps. The first step picks a strategy, and the next four alternate between rewriting the instructions and tuning that strategy's setting. Each step starts from the best configuration found so far and changes one part of it. The left side shows the configuration in the outlined row.