Orchestrator not eager to dispatch work to subagents

Hey there, I’m using Neon Medium orchestrator with the intention of handing off drudge work to Hydrogen medium. Trying to preserve my $20/mo plan tokens ;). I have found in at least a few chats that handing off to subagents does not seem to happen in instances where I would naively expect it to.

For example, I just gave it this prompt:

```
Okay, there is a slight problem with our devcontainer. The version of openocd installed there is not capable of flashing an stm32c5. This is because configuration support hasn’t been added there yet. As such, please adjust the devcontainer to download and build from source the STMicro fork of openocd, and verify that it can flash the stm32c5 connected to USB.
```

Naively, I would have expect it to dispatch a subagent to pull the repo from github into a scratch directory, figure out how to build it, ensure that it is basically working, etc., with instructions for that subagent to report back with build instructions and prerequisites, which would in turn allow the orchestrator to do the modifications to the Dockerfile and so on.

What actually happened, was that the orchestrator did everything in its own context, including inspecting the github repo over the github API (rather than cloning it into a local scratch dir) and building and testing the container. Ultimately, it did get the job done, so that is great, but it seems like a slightly inefficient way to do it.

In the interest of learning, I’m wondering how this prompt could be improved to encourage the orchestrator to hand things off more optimally. Is the behavior I’m observing expected? Under what circumstances would the orchestrator normally hand off without explicit instructions to do so?

Maybe I should have done this at the outset, but I actually asked Gemini Neon to analyze the transcript of the above prompt and it gave some surprising information:

  • Handoff in orchestrator mode is not necessarily surfaced to the user via the UI. In this conversation, Neon did hand off to Hydrogen for building the Dockerfile changes.
  • I might need to be more explicit when I think a subagent will help because Neon added 50k tokens to its context (most of which were not really necessary to the task) in its initial research steps. These tokens were cache misses after the Hydrogen execution handoff and then again when Neon approved the Hydrogen work. If I had described the task the way I thought it should be done (subagent to collect build instructions by cloning the repo in a scratch directory), then the number of cache miss tokens would likely have been much lower to get the same result.

Good things learned at any rate!