Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Include skills in debug prompt input output (#36311)

felixxia-oaiaea26afaee17
diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lock
index 47e3c35b0f..cb9578be09 100644
--- a/codex-rs/Cargo.lock
+++ b/codex-rs/Cargo.lock
@@ -2399,6 +2399,7 @@ dependencies = [
"codex-rollout",
"codex-rollout-trace",
"codex-sandboxing",
+ "codex-skills-extension",
"codex-state",
"codex-stdio-to-uds",
"codex-terminal-detection",
diff --git a/codex-rs/cli/Cargo.toml b/codex-rs/cli/Cargo.toml
index 86125069f4..5adc7a6cfe 100644
--- a/codex-rs/cli/Cargo.toml
+++ b/codex-rs/cli/Cargo.toml
@@ -63,6 +63,7 @@ codex-rmcp-client = { workspace = true }
codex-rollout = { workspace = true }
codex-rollout-trace = { workspace = true }
codex-sandboxing = { workspace = true }
+codex-skills-extension = { workspace = true }
codex-state = { workspace = true }
codex-stdio-to-uds = { workspace = true }
codex-terminal-detection = { workspace = true }
diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs
index 60d1566142..7039501635 100644
--- a/codex-rs/cli/src/main.rs
+++ b/codex-rs/cli/src/main.rs
@@ -68,6 +68,7 @@ use state_db_recovery as local_state_db;
use codex_config::LoaderOverrides;
use codex_core::build_models_manager;
+use codex_core::config::Config;
use codex_core::config::ConfigBuilder;
use codex_core::config::ConfigOverrides;
use codex_core::config::edit::ConfigEditsBuilder;
@@ -2056,6 +2057,16 @@ async fn run_debug_prompt_input_command(
config.chatgpt_base_url.clone(),
config.http_client_factory(),
);
+ codex_skills_extension::install(&mut extensions, |config: &Config| {
+ codex_skills_extension::SkillsExtensionConfig {
+ include_instructions: config.include_skill_instructions,
+ bundled_skills_enabled: config.bundled_skills_enabled(),
+ orchestrator_skills_enabled: config.orchestrator_skills_enabled,
+ shadow_selection_enabled: config
+ .features
+ .enabled(codex_features::Feature::SkillSearch),
+ }
+ });
let prompt_input = codex_core::build_prompt_input(
config,
input,