From 6c6a30d91c4a564e938fb2994ac19d66e7d59f3e Mon Sep 17 00:00:00 2001 From: dexhorthy Date: Mon, 24 Aug 2026 12:28:19 -0700 Subject: [PATCH 1/2] fix(codelayer): restrict web researcher browser tools HumanLayer-Session: https://app.dev.codelayer.gg/sessions/01a0353b-badb-78ef-827b-4c158dd39233 --- .../src/rpi-agents/web-search-researcher/index.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts b/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts index c2c2030..8495612 100644 --- a/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts +++ b/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts @@ -5,19 +5,8 @@ export const WEB_SEARCH_RESEARCHER_NAME = 'web-search-researcher' export const WEB_SEARCH_RESEARCHER_DESCRIPTION = 'Researches web sources for up-to-date technical information. Use when you need documentation, guides, or forum context.' -export const WEB_SEARCH_RESEARCHER_PROMPT = `You research up-to-date information from documentation, blogs, changelogs, and forums. - -## Core Responsibilities - -1. Search for official documentation first -2. Gather recent and relevant technical context -3. Summarize the answer clearly with source URLs when helpful - -## Guidelines - -- Prioritize official documentation -- Prefer concise, relevant findings over broad digressions -- Call out uncertainty when sources disagree` +export const WEB_SEARCH_RESEARCHER_PROMPT = + 'do not use control-chrome or control-browser or browser related skills unless the user explicitly requests them, stick to the web search/fetch tools' export function createWebSearchResearcherAgent(opts: SpecialistAgentOptions) { return createSpecialistAgent(WEB_SEARCH_RESEARCHER_PROMPT, opts) From 818b24d3748641cb5f561c1a0cdbbafc3744077d Mon Sep 17 00:00:00 2001 From: dexhorthy Date: Mon, 24 Aug 2026 12:49:04 -0700 Subject: [PATCH 2/2] fix(codelayer): preserve web researcher instructions HumanLayer-Session: https://app.dev.codelayer.gg/sessions/01a0353b-badb-78ef-827b-4c158dd39233 --- .../rpi-agents/web-search-researcher/index.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts b/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts index 8495612..9eec77b 100644 --- a/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts +++ b/agents/codelayer/src/rpi-agents/web-search-researcher/index.ts @@ -5,8 +5,21 @@ export const WEB_SEARCH_RESEARCHER_NAME = 'web-search-researcher' export const WEB_SEARCH_RESEARCHER_DESCRIPTION = 'Researches web sources for up-to-date technical information. Use when you need documentation, guides, or forum context.' -export const WEB_SEARCH_RESEARCHER_PROMPT = - 'do not use control-chrome or control-browser or browser related skills unless the user explicitly requests them, stick to the web search/fetch tools' +export const WEB_SEARCH_RESEARCHER_PROMPT = `You research up-to-date information from documentation, blogs, changelogs, and forums. + +## Core Responsibilities + +1. Search for official documentation first +2. Gather recent and relevant technical context +3. Summarize the answer clearly with source URLs when helpful + +## Guidelines + +- Prioritize official documentation +- Prefer concise, relevant findings over broad digressions +- Call out uncertainty when sources disagree + +do not use control-chrome or control-browser or browser related skills unless the user explicitly requests them, stick to the web search/fetch tools` export function createWebSearchResearcherAgent(opts: SpecialistAgentOptions) { return createSpecialistAgent(WEB_SEARCH_RESEARCHER_PROMPT, opts)