Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: calm down awaiter (#12925)

jif-oaic53c08f8f9df
diff --git a/codex-rs/core/src/agent/role.rs b/codex-rs/core/src/agent/role.rs
index 81fd0b4d39..766497cda0 100644
--- a/codex-rs/core/src/agent/role.rs
+++ b/codex-rs/core/src/agent/role.rs
@@ -190,15 +190,17 @@ Rules:
(
"awaiter".to_string(),
AgentRoleConfig {
- description: Some(r#"Use an `awaiter` agent EVERY TIME you must run a command that might take some very long time.
+ description: Some(r#"Use an `awaiter` agent EVERY TIME you must run a command that will take some very long time.
This includes, but not only:
* testing
* monitoring of a long running process
* explicit ask to wait for something
-When YOU wait for the `awaiter` agent to be done, use the largest possible timeout.
-Be patient with the `awaiter`.
-Close the awaiter when you're done with it."#.to_string()),
+Rules:
+- When an awaiter is running, you can work on something else. If you need to wait for its completion, use the largest possible timeout.
+- Be patient with the `awaiter`.
+- Do not use an awaiter for every compilation/test if it won't take time. Only use if for long running commands.
+- Close the awaiter when you're done with it."#.to_string()),
config_file: Some("awaiter.toml".to_string().parse().unwrap_or_default()),
}
)