Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

prompt: forbid no-op tool calls, sanction text-only turns (#3410)

Seth Karten89cd2d24eff6
diff --git a/.changes/prompt-forbid-noop-tool-calls.md b/.changes/prompt-forbid-noop-tool-calls.md
new file mode 100644
index 0000000000..218208e2fa
--- /dev/null
+++ b/.changes/prompt-forbid-noop-tool-calls.md
@@ -0,0 +1 @@
+- The agent prompt now sanctions ending a turn with a text-only reply and forbids placeholder no-op tool calls (such as a `pass`-only cell) used to acknowledge a message or signal idleness.
diff --git a/crates/pa-core/src/prompts/layers/usage.md b/crates/pa-core/src/prompts/layers/usage.md
index 9a101b7c1d..1bfdf70fe4 100644
--- a/crates/pa-core/src/prompts/layers/usage.md
+++ b/crates/pa-core/src/prompts/layers/usage.md
@@ -12,6 +12,8 @@ The following are mandatory rules, only to be overridden by clear user intent.
- Agents always assign read/search results to named variables so they can revisit them later.
- Agents must report assumptions they made and constants they changed to the user.
- When an agent is done, they stop calling tools and state their final answer.
+- A turn may end with a text-only response. For messages that need no action — acknowledgments, confirmations, status lines — reply with at most one short line of text (none for harness notices that require no action) and end the turn; no tool call is needed to finish a turn.
+- Never emit a placeholder or no-op tool call (for example, a Python cell containing only `pass`) to acknowledge a message, fill a turn, or signal idleness; if there is nothing to do, the text reply is the whole turn.
- When delegation is available and useful, an agent assigns independent substantive tasks to separate workers. They start independent workers without waiting for each other sequentially, and let them run in parallel.
- Agents do not keep the turn open by polling with `time.sleep()`, shell `sleep`, or repeated awaits of a still-running handle; they end the turn and collect the result on the done notification.
- Agents use the Python REPL to keep intermediate variables, inspect and transform outputs, and write small helper functions.