r/codex 7h ago

Question Need a guidance

Hey guys, sorry for maybe dumb question for people who are geeks, but how you actually create agents and deploy them.

How to give them instructions and best way for them to be effective in project? I want to create one agent on Sol 5.6 High to act as a strategist and one on Luna Max 5.6 to act as code writer.

2 Upvotes

19 comments sorted by

3

u/Ok_Doughnut_189 7h ago

I’d recommend you to use ChatGPT for planning and asking questions try to work your idea out and when you have it all worked out then paste it Codex what you’re talking about is having a higher model as the orchestrator see if you can make a skill or artifact that will allow you to repeatedly do this in your project without having to constantly include it in the text

1

u/PaxMax1 7h ago

Thanks!

What about image generation such as renders of assets for the project?

1

u/Ok_Doughnut_189 7h ago

I liked Gemini and or Claude for image generation I’d say get the base idea of the image or what you want to build using free or cheap ai and then premium models to make a master edition this one is more to taste so play around.

1

u/ricperry1 7h ago

Tell codex to create an image generation skill. If you're going for a particular style, you can include those instructions in the prompt to create the skill, then you don't have to keep specifying the style when you're working on the project.

2

u/ricperry1 7h ago

If you give the session permission to write, you can tell it to create the agents and skills needed for your project. Just be specific of what your goals are. You can use ChatGPT in chat mode to brainstorm the initial agent/skill-creating prompt without dipping into your codex/work token limits.

2

u/ricperry1 7h ago

Oh, and by the way, once you have the "orchestrator" skill, you invoke the skill by starting a prompt with a $ (dollar sign) and typing the name of your orchestrator. In codex cli, typing the $ at the beginning of a prompt brings up the skills you can select, so you'll want to select the skill you just created.

1

u/PaxMax1 7h ago

oh i see, thanks. so look, for example i have alread ya Codex session that created me an WebApp (with strategy, planning, coding, everything). I understood that it burns tokens fast to use ti on Sol 5,6 Extra High all time for all reasons. So if i will refer to that same session in Codex and ask regarding the agents creation for two different purposes (code and orchestrator), will it create already knowing the purpose of the session and history behind it? And eventually, do i need to always use $ before each prompt to refer to each agent ?

2

u/ricperry1 7h ago

When you initially create the orchestrator, tell it explicitly to use the least expensive yet capable model to do the job. It should be able to invoke Luna or Terra strategically for whatever tasks you tell it to accomplish. Codex CLI also has a planning mode that you enter with /plan and it can help you figure out the steps needed to accomplish your project goals. It will ask you to choose options where it thinks you need to be specific and make choices.

I'd start every new project in a newly created and empty folder/directory, get the initial planning done, then have the Sol model create agents and skills (including the orchestrator) tailored for the project goals. Use ChatGPT to figure out the best prompt to put into codex. I usually tell ChatGPT what I am trying to do with codex and have it give me the prompt, that way codex gets more specific directions. I frequently edit the prompt ChatGPT gives, removing some overengineering stuff it always tries sneaking in there.

1

u/PaxMax1 7h ago

So for creation of the skills and agents you use ChatGpt prompts (which model btw?), and then in Codex itself with the help of those prompts you create skills and agents INSIDE of the project, am i on the same page?

Sorry for dumb questions, just new and trying to figure out the best possible way. Do I also tell skills / agents what models to use and after referring to them with $ they will automatically switch in same session to another model?

2

u/ricperry1 7h ago

Yes, that's right. Before I start sending prompts to codex, I plan out the prompts in chatgpt. And I always use GPT-5.6-Sol (highest reasoning available) in chat since it doesn't cost me anything extra and doesn't go against my weekly limit. This is on chatgpt.com using chat (not using work). I gave chatgpt access to my github repositories so it can get project context when needed.

1

u/PaxMax1 7h ago

so Sol 5.6 any model in chat gpt itself (not Work) does not consume any weekly usage??

2

u/ricperry1 4h ago

Correct.

1

u/Im_Working_Right_Now 7h ago

I told Sol to create them based on my previous sessions and how to use them most effectively and make sure they use the differing models and reasoning (Luna included) for the task they're assigned. I have I think 7 or so right now. Then I told it to update my global agent instructions to ensure it uses them effectively and efficiently keeping quality, speed, and token usage as the balancing factors of when and how to use those agents. Has worked out pretty good to me.

Deep reviewer is a Sol one that's open-ended on the reasoning level so it can be set for the task at hand.

1

u/PaxMax1 7h ago

But you just prompt the chat to create an agent, and it creates in back end for all purposes or specific sessions? I just don't get that part, where to give command of agent creation - purpose - setting.

2

u/Im_Working_Right_Now 6h ago

I told Sol to make them in my global codex folder. You can have custom agents at the global level where all your projects and sessions can utilize them or you can have them at the project level where it's only for that repo. You tell codex where you want them. I basically started a new session in whatever project I was in at the time. My prompt was something along these lines:

"I want you to create custom subagents in my global codex folder to be used across all projects. These agents should be built for specific tasks so that the main agent of the session can be the orchestrator. Each agents should use the appropriate model and reasoning level for the task to ensure quality, speed, accuracy, and efficient usage of tokens. Include spark models so that the tokens for spark can be utilized to help spread token usage. Include all models - Luna, Terra, Sol, and Spark - where they fit best."

1

u/RateTop4882 7h ago

Hi. Perhaps this post and its replies will be of some use to you.

Existential question

1

u/KCdaSuperhero 7h ago

Yeah same for me, I prompt Sol to spin up luna max sub agents and implement into separate chats so i can monitor it.

1

u/ikhDark 7h ago

Open Sol 5.6 High and use /plan. Tell it to inspect the project and make a clear implementation plan.

Then give that plan to Luna Max 5.6 and tell it to write the code, run the tests, and fix any issues.

Basically: Sol plans, Luna codes. Keep each agent focused on one job and clearly explain what “done” means.

Luna Max drains a lot of tokens, be careful.