1 Commits

Author SHA1 Message Date
Advait Paliwal
66a7978582 Require multiple search terms in deepresearch 2026-04-17 21:44:31 -07:00
4 changed files with 8 additions and 3 deletions

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "@companion-ai/feynman",
"version": "0.2.33",
"version": "0.2.34",
"description": "Research-first CLI agent built on Pi and alphaXiv",
"license": "MIT",
"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:
- Skip researcher spawning entirely.
- 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`.
- 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, /Do not inflate a simple explainer into a multi-agent survey/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, /Do not call `alpha_get_paper`/i);
assert.match(deepResearchPrompt, /do not fetch `\.pdf` URLs/i);