Skip to content

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

Rust

fix(coding-agent): remove single-tool prompt limit (#210)

Seth Karten8c8cf1887118
diff --git a/packages/coding-agent/src/core/prompts/rlm.ts b/packages/coding-agent/src/core/prompts/rlm.ts
index 8d781ded68..4ea0afd789 100644
--- a/packages/coding-agent/src/core/prompts/rlm.ts
+++ b/packages/coding-agent/src/core/prompts/rlm.ts
@@ -83,9 +83,5 @@ export function buildRlmPrompt(options: RlmPromptOptions): string {
parts.push("", IPYTHON_CONTROL_PROMPT);
}
- if (activeTools.length > 0) {
- parts.push("", "Call at most one built-in tool per turn.");
- }
-
return parts.join("\n");
}
diff --git a/packages/coding-agent/test/system-prompt.test.ts b/packages/coding-agent/test/system-prompt.test.ts
index f8e35f69bc..1f9d3b79b5 100644
--- a/packages/coding-agent/test/system-prompt.test.ts
+++ b/packages/coding-agent/test/system-prompt.test.ts
@@ -80,8 +80,6 @@ describe("buildRlmPrompt", () => {
"RLM-native call contract for refined entries: installed Python skills are called from IPython as `await <skill_import>(...)` with keyword arguments, or as `<skill_import> ...` from shell when a CLI exists. Harness skill entries are Python REPL skills with an explicit Python `reference` and `arguments` contract. Harness subagent entries are reusable delegation specs; invoke them by turning the spec into a concise task prompt and calling `await rlm('sub-task')`, or `await asyncio.gather(rlm('task1'), rlm('task2'))` for independent parallel subagents. Do not invent non-native wrappers such as `call_skill(...)`, `run_subagent(...)`, or named subagent registries.",
"",
"Treat harness refinement as a small, evidence-backed update after observing a repeated failure or reusable tactic: diagnose the issue, update the smallest relevant harness component, validate on the next action, then record the outcome. Do not rewrite the whole harness when a focused memory, skill, prompt note, or subagent spec is enough.",
- "",
- "Call at most one built-in tool per turn.",
].join("\n"),
);
});
@@ -362,7 +360,7 @@ describe("buildSystemPrompt", () => {
expect(prompt).toContain("run it through that project's own environment");
expect(prompt).not.toContain("!cd build && make");
expect(prompt).not.toContain("out = !cmd");
- expect(prompt).toContain("Call at most one built-in tool per turn.");
+ expect(prompt).not.toContain("Call at most one built-in tool per turn.");
expect(prompt).not.toContain("# IPython Kernel Guidance");
expect(prompt).not.toContain("Available tools:");
expect(prompt).not.toContain("## Worked example:");
@@ -425,9 +423,10 @@ describe("buildSystemPrompt", () => {
cwd: "/repo",
});
- expect(prompt.indexOf("Call at most one built-in tool per turn.")).toBeLessThan(
+ expect(prompt.indexOf("Treat harness refinement as a small, evidence-backed update")).toBeLessThan(
prompt.indexOf("extra instruction"),
);
+ expect(prompt).not.toContain("Call at most one built-in tool per turn.");
});
test("project context files are appended", () => {