Skip to content

Commit 973f9ab

Browse files
committed
feat: add top-agent prompts integration to cortex-prompt-harness
Port Platform Network's top-agent system prompts to Cortex CLI: - Add top_agent.rs with full system prompt and section constants - TopAgentPromptBuilder for dynamic prompt construction - TopAgentPresets for coding_assistant, research_assistant, code_reviewer, minimal - Tool mapping constants (read_file→Read, write_file→Write, etc.) - 23 unit tests covering all functionality
1 parent 164f732 commit 973f9ab

File tree

2 files changed

+1834
-0
lines changed

2 files changed

+1834
-0
lines changed

src/cortex-prompt-harness/src/prompts/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
//! - [`review`]: Code review prompts
1919
//! - [`tools`]: Tool-specific prompts (subagent executor, mentions)
2020
//! - [`generation`]: Agent generation prompts
21+
//! - [`top_agent`]: Top-agent style prompts (autonomous, backup-first philosophy)
2122
//!
2223
//! # Usage
2324
//!
@@ -33,6 +34,10 @@
3334
//!
3435
//! // Get task prompts
3536
//! let summary = prompts::tasks::SUMMARIZATION_PROMPT;
37+
//!
38+
//! // Use top-agent style prompts
39+
//! let top_agent = prompts::top_agent::TOP_AGENT_SYSTEM_PROMPT;
40+
//! let coding = prompts::top_agent::TopAgentPresets::coding_assistant();
3641
//! ```
3742
3843
pub mod agents;
@@ -41,6 +46,7 @@ pub mod generation;
4146
pub mod review;
4247
pub mod tasks;
4348
pub mod tools;
49+
pub mod top_agent;
4450

4551
// Re-export commonly used prompts for convenience
4652
pub use agents::{
@@ -54,3 +60,6 @@ pub use core::{
5460
SECTION_RESPONSE_PATTERNS, SECTION_TOOLKIT, TUI_SYSTEM_PROMPT_TEMPLATE,
5561
};
5662
pub use tasks::{COMPACTION_PROMPT, SUMMARIZATION_PROMPT};
63+
pub use top_agent::{
64+
TOP_AGENT_SECTION_NAMES, TOP_AGENT_SYSTEM_PROMPT, TopAgentPresets, TopAgentPromptBuilder,
65+
};

0 commit comments

Comments
 (0)