Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(prompts): tighten workspace and date-time instructions

Steven Enamakel5042a3108d35
diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rs
index 9efebf7535..3ce50638c7 100644
--- a/crates/openhuman-core/src/agent/prompts/sections.rs
+++ b/crates/openhuman-core/src/agent/prompts/sections.rs
@@ -507,9 +507,8 @@ impl PromptSection for WorkspaceSection {
// its real working directory at runtime and keep writes/reads there.
let mut out = String::from(
"## Workspace\n\n\
- `pwd` is your working directory: commands and file tools resolve there, and \
- anything outside it and the scratch space is blocked. Prefer stdout; write a \
- file only when output is too large. ",
+ Commands and file tools resolve in `pwd`; outside it and scratch is blocked. \
+ Prefer stdout to files. ",
);
// Only advertise a concrete scratch path when the dir is actually present
// and safe (real dir, not a symlink) — matching the policy grant in
@@ -677,8 +676,8 @@ impl PromptSection for DateTimeSection {
// learned "good morning" regardless of the actual hour (#3602).
let mut out = String::from(
"## Current Date & Time\n\nThe `Current Date & Time:` line on the latest message \
- is authoritative: before \"good morning\" or \"today\", read it and match the \
- actual local hour. No tool call is needed for the time.",
+ is authoritative: match \"good morning\" and \"today\" to its local hour. No tool \
+ call needed.",
);
// Tool-argument discipline, gated on the agent actually having the
// `resolve_time` tool. LLMs are unreliable at epoch arithmetic — a
@@ -689,7 +688,7 @@ impl PromptSection for DateTimeSection {
// tool never see the rule.
if ctx.tools.iter().any(|t| t.name == "resolve_time") {
out.push_str(
- " Tool date/time arguments come from `resolve_time`, never hand-computed.",
+ " Time arguments come from `resolve_time`, never hand-computed.",
);
}
Ok(out)