Document the new tools in the prompt and read-only variants

The tool guidance covers apply_patch and web_fetch, the approval line derives from the tools actually offered rather than a hardcoded edit-tool check, and plan and review gain approved web research when the net set is on.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Muhammad Zakir Ramadhan
2026-09-03 16:42:31 +07:00
co-authored by Sisyphus
parent 41546154fe
commit 8ee4c5bd2c
4 changed files with 26 additions and 3 deletions
+8
View File
@@ -18,6 +18,14 @@ test('only the offered tools are described', () => {
expect(rendered).not.toContain('write_file');
});
test('new built-in tools are documented and a patch-only set is treated as editable', () => {
expect(TOOL_DOCS.map((doc) => doc.name)).toEqual(expect.arrayContaining(['apply_patch', 'web_fetch']));
const prompt = systemPrompt({ cwd: '/repo', availableTools: ['apply_patch'] });
expect(prompt).toContain('apply_patch');
expect(prompt).not.toContain('no tools that change anything');
});
test('mcp tools are grouped with their naming convention explained', () => {
const rendered = renderTools(['read_file', 'mcp__fs__read', 'mcp__api__query']);
expect(rendered).toContain('mcp__api__query, mcp__fs__read');