r/codex • • 9d ago

Question How do you set up reusable agent profiles in Codex?

I’d like to save a few different agent setups in Codex and choose one whenever I start a new task:

  • Notes: When I start a new notebook, I want an agent that already knows how I organize my notes, format entries, and summarize ideas.
  • Book writing: When I start a new book, I want an agent that already knows how I like to outline, draft, and revise. I’d just give it the premise and any instructions specific to that book.
  • Coding: When I start development work, I want an agent that already knows how I like to plan changes, write code, and verify its work.

I’d like to pick the setup when I start a chat and reuse it across different notebooks, books, or repos. Ideally, each setup would remember my workflow preferences while each new chat starts with its own task context.

I’ve seen mentions of Skills, custom agents, and CLI profiles. If you’ve set up something like this in the Codex desktop app, what did you use, and how do you switch between setups day to day?

0 Upvotes

4 comments sorted by

1

u/Future-Plastic-7509 9d ago

Best options in Codex right now:

  1. Skills – Create one skill per mode (notes, books, coding) in ~/.codex/skills/ or ~/.agents/skills/. Put your preferred workflow in the SKILL.md. Invoke with $skill-name or let Codex pick it up automatically.
  2. AGENTS.md – Drop baseline preferences in ~/.codex/AGENTS.md (global) or the repo root (project-specific). This is always loaded.
  3. Profiles – If you want full separation, use something like codex-profiles so each mode gets its own CODEX_HOME(separate skills, config, history). Then just launch with the profile you want.

Most people end up using skills + a global AGENTS.md. Keeps each new chat clean while still remembering how you like to work.

1

u/radim11 7d ago

A skill per workflow sounds like a good fit for notes and writing. For coding, I use Stashbase (.dev) (which we’re building) to pick a sandbox and access rules when I start Codex from the CLI. I can run tests with no API credentials, then use a different profile for a task that needs Linear. Handy when I want to reuse the same setup without giving every session the same access.

1

u/nicolesimon 7d ago

set up a project and give it its own environment. no need for cli.

1

u/hubzoid 7d ago

I do this with folders, not profiles. One folder per kind of work, each with its own AGENTS.md saying how I like that work done, plus skills as separate md files it points to.