Require multiple search terms in deepresearch

This commit is contained in:
Advait Paliwal
2026-04-17 21:44:31 -07:00
parent 3d46b581e0
commit 66a7978582
4 changed files with 8 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@companion-ai/feynman", "name": "@companion-ai/feynman",
"version": "0.2.33", "version": "0.2.34",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@companion-ai/feynman", "name": "@companion-ai/feynman",
"version": "0.2.33", "version": "0.2.34",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@companion-ai/feynman", "name": "@companion-ai/feynman",
"version": "0.2.33", "version": "0.2.34",
"description": "Research-first CLI agent built on Pi and alphaXiv", "description": "Research-first CLI agent built on Pi and alphaXiv",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",

View File

@@ -59,6 +59,8 @@ Avoid crash-prone PDF parsing in this workflow. Do not call `alpha_get_paper` an
If direct search was chosen: If direct search was chosen:
- Skip researcher spawning entirely. - Skip researcher spawning entirely.
- Search and fetch sources yourself. - Search and fetch sources yourself.
- Use multiple search terms/angles before drafting. Minimum: 3 distinct queries for direct-mode research, covering definition/history, mechanism/formula, and current usage/comparison when relevant.
- Record the exact search terms used in `<slug>-research-direct.md`.
- Write notes to `<slug>-research-direct.md`. - Write notes to `<slug>-research-direct.md`.
- Continue to synthesis. - Continue to synthesis.

View File

@@ -92,6 +92,9 @@ test("deepresearch keeps subagent tool calls small and skips subagents for narro
assert.match(deepResearchPrompt, /MUST NOT spawn researcher subagents/i); assert.match(deepResearchPrompt, /MUST NOT spawn researcher subagents/i);
assert.match(deepResearchPrompt, /Do not inflate a simple explainer into a multi-agent survey/i); assert.match(deepResearchPrompt, /Do not inflate a simple explainer into a multi-agent survey/i);
assert.match(deepResearchPrompt, /Skip researcher spawning entirely/i); assert.match(deepResearchPrompt, /Skip researcher spawning entirely/i);
assert.match(deepResearchPrompt, /Use multiple search terms\/angles before drafting/i);
assert.match(deepResearchPrompt, /Minimum: 3 distinct queries/i);
assert.match(deepResearchPrompt, /Record the exact search terms used/i);
assert.match(deepResearchPrompt, /<slug>-research-direct\.md/i); assert.match(deepResearchPrompt, /<slug>-research-direct\.md/i);
assert.match(deepResearchPrompt, /Do not call `alpha_get_paper`/i); assert.match(deepResearchPrompt, /Do not call `alpha_get_paper`/i);
assert.match(deepResearchPrompt, /do not fetch `\.pdf` URLs/i); assert.match(deepResearchPrompt, /do not fetch `\.pdf` URLs/i);