The TypeScript CLI already has support for including the contents of `AGENTS.md` in the instructions sent with the first turn of a conversation. This PR brings this functionality to the Rust CLI. To be considered, `AGENTS.md` must be in the `cwd` of the session, or in one of the parent folders up to a Git/filesystem root (whichever is encountered first). By default, a maximum of 32 KiB of `AGENTS.md` will be included, though this is configurable using the new-in-this-PR `project_doc_max_bytes` option in `config.toml`.
37 lines
854 B
Rust
37 lines
854 B
Rust
//! Root of the `codex-core` library.
|
||
|
||
// Prevent accidental direct writes to stdout/stderr in library code. All
|
||
// user‑visible output must go through the appropriate abstraction (e.g.,
|
||
// the TUI or the tracing stack).
|
||
#![deny(clippy::print_stdout, clippy::print_stderr)]
|
||
|
||
mod chat_completions;
|
||
|
||
mod client;
|
||
mod client_common;
|
||
pub mod codex;
|
||
pub use codex::Codex;
|
||
pub mod codex_wrapper;
|
||
pub mod config;
|
||
mod conversation_history;
|
||
pub mod error;
|
||
pub mod exec;
|
||
pub mod exec_linux;
|
||
mod flags;
|
||
mod is_safe_command;
|
||
#[cfg(target_os = "linux")]
|
||
pub mod landlock;
|
||
mod mcp_connection_manager;
|
||
pub mod mcp_server_config;
|
||
mod mcp_tool_call;
|
||
mod model_provider_info;
|
||
pub use model_provider_info::ModelProviderInfo;
|
||
pub use model_provider_info::WireApi;
|
||
mod models;
|
||
mod project_doc;
|
||
pub mod protocol;
|
||
mod rollout;
|
||
mod safety;
|
||
mod user_notification;
|
||
pub mod util;
|