diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-28 21:17:13 +0530 |
|---|---|---|
| committer | Aman Kumar <145339995+amankumarsingh77@users.noreply.github.com> | 2026-08-02 19:12:46 +0530 |
| commit | ea11182a0e8cb62d208b5b53a60c98c8bdef9e9a (patch) | |
| tree | 665fb355b902e5f067694d1e953039f6713e8245 /src | |
| parent | 91f5ad12fc04264e0423b37c4871c826bb98a66b (diff) | |
feat!: remove the deep-research feature
The harness ships browser tools; orchestrating a multi-agent research
workflow on top of them is the agent's job, not this extension's. Drops
the skill, the /deep-research command, and the web-search-researcher
subagent config.
browser_web_search and browser_read_page are untouched — the two tests
that covered their pure parsers move to test/domains/, where the test
glob still picks them up.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/deep-research.ts | 25 | ||||
| -rw-r--r-- | src/index.ts | 2 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/deep-research.ts b/src/deep-research.ts deleted file mode 100644 index 9445cf8..0000000 --- a/src/deep-research.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; - -export function buildDeepResearchPrompt(question: string): string { - return ( - `Do deep research on the following question and produce a cited Markdown report. ` + - `Use the deep-research skill: decompose it into sub-questions, fan out web-search-researcher ` + - `subagents to research each against the live web, then synthesize a source-cited report file.\n\n` + - `Question: ${question}` - ); -} - -export function registerDeepResearchCommand(pi: ExtensionAPI): void { - pi.registerCommand("deep-research", { - description: "Research a question on the web and write a cited report", - handler: async (args, ctx) => { - const question = args.trim(); - if (question.length === 0) { - ctx.ui.notify('Usage: /deep-research <question>. Example: /deep-research "compare CDP vs WebDriver"', "warning"); - return; - } - ctx.ui.notify(`Starting deep research: ${question}`, "info"); - pi.sendUserMessage(buildDeepResearchPrompt(question)); - }, - }); -} diff --git a/src/index.ts b/src/index.ts index e0fa750..1573605 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,6 @@ import { getBrowserSystemPrompt } from "./prompt"; import { registerSetupCommand } from "./setup"; import { registerProfileCommand } from "./profile/command"; import { readPin } from "./profile/store"; -import { registerDeepResearchCommand } from "./deep-research"; import { type BrowserState, defaultState, persistState, restoreState } from "./state"; import { registerAllTools } from "./registry"; import { cleanupTempDirs } from "./util/truncate"; @@ -124,7 +123,6 @@ export default function browserHarnessExtension(pi: ExtensionAPI): void { } registerSetupCommand(pi, client); registerProfileCommand(pi, client); - registerDeepResearchCommand(pi); }); pi.on("session_shutdown", async () => { |
