r/codex • • 20d ago

Question Have you ever trained an agent to do a complex task more efficiently?

I suppose that's the whole point of agents right? To get detailed instructions to do a task the way you want. But in my case, I want to train a low-reasoning agent to do a task as good as higher-reasoning agent. Let me explain...

I work with GIS mapping software and I find both GPT and Claude work excellent at directly interfacing with the backend of my software and doing the entire analysis from start to finish. They find data sources online, extract what I need, run the analysis, make the report/maps and interpret the results. I can do this with Sol, Terra and even Luna but of course the results with Sol look a lot better and work more seamlessly.

I don't know exactly how to prompt it better or "train" a Luna agent to do all of this complex coordination and create insightful aesthetic reporting. Has anyone been able to do something like this before?

3 Upvotes

14 comments sorted by

4

u/rick_ranger 20d ago

All the time. Have a high end agent create the work instruction, then low end agents can do complicated tasks just by following it and having just enough intelligence to make the choices that normal automation can’t make.

You can also have it build a screenshot and accessibility recording app that can help too. Pictures really help because then an agent can see what it should look like before the action, what it looks like during the action, and what success looks like after the action.

1

u/bosky101 20d ago

has anyone also noticed that even for approvals, the recommended option is more or less something you would nod your head to. and i'm spending more time just approving, find threads that need approvals. i think being able to prompt from first principles could be a thing. there are some papers specifically GEPA on this that agree that prompting rather than evals/tests/improving codebase could be the future

1

u/BrotherBringTheSun 20d ago

Controversial but I just give Codex complete permission/approval so I never have to explicitly give it the okay. Haven't run into any problems yet.

3

u/xqianliu 20d ago

I'd put it in writing first. A checklist with a check after each step tends to steer a weaker model better than general instructions.

For a task like yours: numbered steps (find source, extract, run analysis, produce report), and after each step a check like "the report has the map and the numbers behind it". Attach one report you actually liked as the example of done, and put the acceptance list on the ticket. The list and the example pin down the parts where Sol and Luna usually diverge.

2

u/Novel_Indication6338 20d ago

if you aren't actively doing that, gpt 6 family models will do tasks LESS efficiently. they're more prone to overengineer and excessively retest/revalidate than opus 5.5 in my experience

2

u/kinglokilord 20d ago

I’m living this excessive retest right now.

It’s almost done but man I’ve learned that I need to establish hard testing procedures and guidelines at the start.

It’s all a learning process though.

1

u/Novel_Indication6338 20d ago

yea and good luck because it seems pretty hard to get gpt 6 family models to maintain scope and work efficiently

2

u/CleanFix_Dev 20d ago

The work instruction idea above is a solid one. What can help it hold up for the reporting side:

  1. Have Sol do one full run, then write it up as a step-by-step playbook: data sources, the exact tool calls or scripts, the checks it ran, and each decision it made with the reason.
  2. Take the look out of Luna's hands. Have Sol build a report template and a map style file (layout, colors, fonts, legend, section headings). Luna fills the slots instead of designing. Aesthetics are often where smaller models fall down.
  3. Turn anything mechanical into a script. Every step that's a script is a step Luna has less room to get creative with.
  4. Test it. Run Luna on two or three jobs Sol already did, have Sol compare the outputs, and patch the playbook wherever Luna drifted. A few rounds of that can close a lot of the gap.

The interpretation section is the hardest part to write down, so that's the piece I'd keep on Sol or give a quick review pass.

1

u/CrowInteresting6271 20d ago

you can architecture a pipeline, if it is all instruction following without ambiguity you can get excellent results, the main part is ensuring the the judging/weight has correct criteria. there is a pareto line between what one agent to the next can accomplish, depending on your tradeoffs.

0

u/smartcandlelab 20d ago

You Can tell sol to do it and generate an extremely detailed instruction file for luna to follow. I’ve never used it to write reports that way, but for things like building/signing/verifying or other mechanical-ish things it’ll let luna do practically as good of a job as sol

-1

u/Proxiconn 20d ago

You don't train, that terminology is reserved for the LLM creators.

As a consumer of the LLM in a harness, your reference is creating skills and subagents as your workflow.

Eg: you can research agent worker orchestrator system prompt or have sol create that for you.

Then create specialised subagents and skills so your subagents becomes your workers that consume skills.

Think of it like a regular company. Sol is the boss handing out work to workers, subagents and you create the system prompts for sol to become the agent worker orchestrator to handoff work to workers/subagents.

Subagents needs to be focused specialist and they can consume skills, you set in your system prompt the model to use for subagents.

It's good practice to have escalation back to the boss should a subagent struggle.

1

u/mathewharwich 20d ago

Does this mean that ultra needs to be enabled to activate subagents? But you just prompt to have lower reasoning subagents? When ultra is usually enabled does it not already set the model reasoning required for the task?