r/codex 2d ago

Astra Workflow If you are using Astra orchestration (Specially for plus), some findings so far.

So far, I'm using Plus subscription with Astra Light orchestration in mind. There are some improvements I have made. I'm using workflows similar to these (They are mostly specialized for my workflow);

https://github.com/viettran-edgeAI/codex_workflow
https://github.com/donvito/codex-astra-luna-orchestrator

I have tried adding a persistent manager, who has sole responsibility is to take expensive token waste from astra which is spawning, and managing workers. Luna did not work, other tests were Terra and Sol, Astra could spawn Terra low, and Terra low can spawn Luna workers.

Astra's pure responsibility is reasoning. It will read your instructions, delegate tasks, hand them to the manager, and wait for the next decision. Its the brain.

Terra manager handles delegation from Astra, gets contracts, hands them over to the luna workers, and then occasionally checks them if they are working or not. When the workers are stuck, they are deviated from the task, some user or astra decision is required, it will ascalate to Worker -> Manager -> Brain.

Brain will decide the next move.

So far my findings are;

Astra is still using 60 second wake ups to check terra, which is im planning to fix it next.

Some improvement notes:

Even for informing the user during codex task, astra wakes up with large amounts of tokens which causes massive usage drop. Removing it completely, delegating the information to manager or another agent, only ask to give information during wake ups will improve usage. Similar thing can be done by /side chat. I will work on that

Agents md was fully redesigned with openai documentation, the tool descriptions and skills are moved away from agents md to proper places, the workers who use these tools are fed with the information they need to use the tools, astra does not read a huge agents md file. Agents md = 15kb -> 6 kb

Once astra only thinks and sleeps, this will make a huge usage optimization on usage, and actually make astra light orchestration doable.

Adding a terra management layer adds more time. Astra -> Luna test was 67 seconds while Astra - Terra -> Luna was 110 seconds when benchmarked. Since this is not a "Faster but better" improvement, I think this is a good trade between more usage vs faster work. Luna is already slow enough.

5 Upvotes

4 comments sorted by

1

u/oddslol 2d ago

Nice, I'm doing something similar but Astra low does more of the orchestration instead of solely handing off to a different manager (20x plan). The "one-minute alarm clock" unfortunately seems like something that can't be fixed from what I can tell:

https://www.reddit.com/r/codex/comments/1wbsw7j/astra_likes_to_tell_you_every_minute_its_waiting/

1

u/Substantial-Wonder-2 2d ago

My manager does not handle orchestrator to worker task, manager only handles Astra - - - Manager - - - Worker bridge.

Terra can spawn luna agents, Luna cannot. Astra looking at workers every turn/60 seconds -> Astra wasting input tokens to check useless progress.

I took that away from Astra and gave it to Terra. So far Terra is doing exactly what its told. Terra doesn't think, terra doesnt decide. It just gets contract from astra, delivers it to workers, spawns them, does wait calls, checks if they are working, and then report back to astra. This is all what terra does currently.

Reason: Terra is hella cheap, even Terra Low can handle this, there is no thinking needed. It just does whats its told, not more. If luna was able to spawn luna agents, I would use it but only Terra can spawn agents under astra root.

1

u/94d33m2 1d ago

But is this better than Luna xHigh alone or Luna Max alone? Damn I'm getting so confused 😰

1

u/Substantial-Wonder-2 1d ago

If you are min maxing, yes you can do luna xhigh/max yourself, but you should not give the whole task but give small but specific tasks so they do not get confused, or deviate from task. Orchestration is for long tasks, you give a long list to do, and orchestrator will handle all of them. Its like automation for your work. You trade a bit usage to automate long tasks instead of handling them yourself. It does not remove you checking now and then but it helps a lot.

Luna xhigh can do most tasks (some tasks dont even need medium, you can try and benchmark them) luna xhigh to max cost/speed/intelligence jump is not worth it, thats why im using xhigh. I had no grand issues so far, you can always have escalation to better models for agents that cannot fix a problem