diff --git a/src/agent/prompt.rs b/src/agent/prompt.rs index 0b85119..d1d93aa 100644 --- a/src/agent/prompt.rs +++ b/src/agent/prompt.rs @@ -215,7 +215,8 @@ impl PromptSection for DateTimeSection { fn build(&self, _ctx: &PromptContext<'_>) -> Result { let now = Local::now(); Ok(format!( - "## Current Date & Time\n\nTimezone: {}", + "## Current Date & Time\n\n{} ({})", + now.format("%Y-%m-%d %H:%M:%S"), now.format("%Z") )) } diff --git a/src/security/policy.rs b/src/security/policy.rs index bf799ef..fda45c5 100644 --- a/src/security/policy.rs +++ b/src/security/policy.rs @@ -111,6 +111,7 @@ impl Default for SecurityPolicy { "wc".into(), "head".into(), "tail".into(), + "date".into(), ], forbidden_paths: vec![ // System directories (blocked even when workspace_only=false)