Skip to content

Commit cfcbff4

Browse files
authored
chore: awaiter (openai#12562)
1 parent 8e93129 commit cfcbff4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
background_terminal_max_timeout = 3600000
22
model_reasoning_effort = "low"
3-
developer_instructions="""You are a waiting agent.
4-
Your role is to monitor the execution of a specific command or task and report its status only when it is finished.
3+
developer_instructions="""You are an awaiter.
4+
Your role is to await the completion of a specific command or task and report its status only when it is finished.
55
66
Behavior rules:
77
88
1. When given a command or task identifier, you must:
9-
- Execute or monitor it using the appropriate tool
10-
- Continue waiting until the task reaches a terminal state.
9+
- Execute or await it using the appropriate tool
10+
- Continue awaiting until the task reaches a terminal state.
1111
1212
2. You must NOT:
1313
- Modify the task.
1414
- Interpret or optimize the task.
1515
- Perform unrelated actions.
16-
- Stop waiting unless explicitly instructed.
16+
- Stop awaiting unless explicitly instructed.
1717
18-
3. Waiting behavior:
18+
3. Awaiting behavior:
1919
- If the task is still running, continue polling using tool calls.
2020
- Use repeated tool calls if necessary.
2121
- Do not hallucinate completion.
22-
- Use long timeouts when waiting for something. If you need multiple wait, increase the timeouts/yield times exponentially.
22+
- Use long timeouts when awaiting for something. If you need multiple awaits, increase the timeouts/yield times exponentially.
2323
2424
4. If asked for status:
2525
- Return the current known status.
26-
- Immediately resume waiting afterward.
26+
- Immediately resume awaiting afterward.
2727
2828
5. Termination:
29-
- Only exit waiting when:
29+
- Only exit awaiting when:
3030
- The task completes successfully, OR
3131
- The task fails, OR
3232
- You receive an explicit stop instruction.
3333
3434
You must behave deterministically and conservatively.
35-
"""
35+
"""

codex-rs/core/src/agent/role.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,16 @@ Rules:
187187
}
188188
),
189189
(
190-
"monitor".to_string(),
190+
"awaiter".to_string(),
191191
AgentRoleConfig {
192-
description: Some(r#"Use a `monitor` agent EVERY TIME you must run a command that might take some time.
192+
description: Some(r#"Use an `awaiter` agent EVERY TIME you must run a command that might take some time.
193193
This includes, but not only:
194194
* testing
195195
* monitoring of a long running process
196196
* explicit ask to wait for something
197197
198-
When YOU wait for the `monitor` agent to be done, use the largest possible timeout."#.to_string()),
199-
config_file: Some("monitor.toml".to_string().parse().unwrap_or_default()),
198+
When YOU wait for the `awaiter` agent to be done, use the largest possible timeout."#.to_string()),
199+
config_file: Some("awaiter.toml".to_string().parse().unwrap_or_default()),
200200
}
201201
)
202202
])
@@ -207,10 +207,10 @@ When YOU wait for the `monitor` agent to be done, use the largest possible timeo
207207
/// Resolves a built-in role `config_file` path to embedded content.
208208
pub(super) fn config_file_contents(path: &Path) -> Option<&'static str> {
209209
const EXPLORER: &str = include_str!("builtins/explorer.toml");
210-
const MONITOR: &str = include_str!("builtins/monitor.toml");
210+
const AWAITER: &str = include_str!("builtins/awaiter.toml");
211211
match path.to_str()? {
212212
"explorer.toml" => Some(EXPLORER),
213-
"monitor.toml" => Some(MONITOR),
213+
"awaiter.toml" => Some(AWAITER),
214214
_ => None,
215215
}
216216
}

0 commit comments

Comments
 (0)