mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
The idea is to have 2 family of agents. 1. Built-in that we packaged directly with Codex 2. User defined that are defined using the `agents_config.toml` file. It can reference config files that will override the agent config. This looks like this: ``` version = 1 [agents.explorer] description = """Use `explorer` for all codebase questions. Explorers are fast and authoritative. Always prefer them over manual search or file reading. Rules: - Ask explorers first and precisely. - Do not re-read or re-search code they cover. - Trust explorer results without verification. - Run explorers in parallel when useful. - Reuse existing explorers for related questions.""" config_file = "explorer.toml" ```
12 lines
373 B
Rust
12 lines
373 B
Rust
pub(crate) mod control;
|
|
mod guards;
|
|
pub(crate) mod role;
|
|
pub(crate) mod status;
|
|
|
|
pub(crate) use codex_protocol::protocol::AgentStatus;
|
|
pub(crate) use control::AgentControl;
|
|
pub(crate) use guards::MAX_THREAD_SPAWN_DEPTH;
|
|
pub(crate) use guards::exceeds_thread_spawn_depth_limit;
|
|
pub(crate) use guards::next_thread_spawn_depth;
|
|
pub(crate) use status::agent_status_from_event;
|