Skip to content

Commit 49d1c41

Browse files
committed
refactor(cortex-engine): use cortex-prompt-harness for system prompt
1 parent b86487f commit 49d1c41

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/cortex-engine/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cortex-hooks-ext = { path = "../cortex-hooks", package = "cortex-hooks" }
2828
cortex-share = { path = "../cortex-share" }
2929
cortex-plugins-ext = { path = "../cortex-plugins", package = "cortex-plugins" }
3030
cortex-batch = { path = "../cortex-batch" }
31+
cortex-prompt-harness = { path = "../cortex-prompt-harness" }
3132

3233
# New feature crates (Phase 2)
3334
cortex-ghost = { path = "../cortex-ghost" }

src/cortex-engine/src/prompt/system_prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum SystemPromptError {
1616

1717
pub type Result<T> = std::result::Result<T, SystemPromptError>;
1818

19-
const DEFAULT_SYSTEM_PROMPT: &str = include_str!("../../../../cortex_prompt.txt");
19+
const DEFAULT_SYSTEM_PROMPT: &str = cortex_prompt_harness::prompts::CORTEX_MAIN_PROMPT;
2020

2121
pub fn load_system_prompt(path: Option<&Path>) -> Result<String> {
2222
match path {

src/cortex-engine/src/session/prompt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::path::PathBuf;
44

55
use crate::config::Config;
66

7-
/// System prompt for the Cortex Agent - loaded from cortex_prompt.txt
8-
pub(crate) const SYSTEM_PROMPT: &str = include_str!("../../../../cortex_prompt.txt");
7+
/// System prompt for the Cortex Agent - loaded from cortex-prompt-harness
8+
pub(crate) const SYSTEM_PROMPT: &str = cortex_prompt_harness::prompts::CORTEX_MAIN_PROMPT;
99

1010
/// Build the system prompt for the agent.
1111
pub fn build_system_prompt(config: &Config) -> String {

0 commit comments

Comments
 (0)