Skip to content

feat(deep-research): add Pro mode 6-phase pipeline and ResearchSpecia…#613

Merged
GCWing merged 1 commit into
GCWing:mainfrom
nonoqing:yuyiqing/dev
May 9, 2026
Merged

feat(deep-research): add Pro mode 6-phase pipeline and ResearchSpecia…#613
GCWing merged 1 commit into
GCWing:mainfrom
nonoqing:yuyiqing/dev

Conversation

@nonoqing
Copy link
Copy Markdown
Collaborator

@nonoqing nonoqing commented May 8, 2026

…list subagent

Adds an opt-in Pro mode to the deep-research agent triggered by user messages beginning with 深度研究: or deep:. Pro mode runs a 6-phase quality protocol: query understanding → 4 parallel specialists → citation registry → adversarial debate (2 rounds) → fact check → manager arbitration → report. The existing longitudinal/cross-sectional flow stays as the default mode.

Introduces ResearchSpecialist, a new readonly built-in subagent with WebSearch/WebFetch/Read tools. The previous research flow dispatched to the Explore subagent, which only carries code-search tools and silently produced empty findings for web research. ResearchSpecialist returns markdown via the Task result and the parent agent owns all file writes — required because the Task tool only treats readonly subagents as concurrency-safe.

Adds bilingual research policy: the parent detects USER_LANG and drives all prose in USER_LANG, while specialists issue queries in both USER_LANG and English so source ecosystems on both sides are covered. Quotes stay verbatim in their source language.

Adds {SESSION_ID} placeholder substitution in prompt_builder so Pro mode can anchor a per-session WORK_DIR under .bitfun/sessions/{SESSION_ID}/research. Adds AskUserQuestion to the deep-research agent's default tools for Phase 0 clarification and Phase 5 GAP confirmation.

…list subagent

Adds an opt-in Pro mode to the deep-research agent triggered by user messages
beginning with `深度研究:` or `deep:`. Pro mode runs a 6-phase quality
protocol: query understanding → 4 parallel specialists → citation registry →
adversarial debate (2 rounds) → fact check → manager arbitration → report.
The existing longitudinal/cross-sectional flow stays as the default mode.

Introduces ResearchSpecialist, a new readonly built-in subagent with
WebSearch/WebFetch/Read tools. The previous research flow dispatched to the
Explore subagent, which only carries code-search tools and silently produced
empty findings for web research. ResearchSpecialist returns markdown via the
Task result and the parent agent owns all file writes — required because the
Task tool only treats readonly subagents as concurrency-safe.

Adds bilingual research policy: the parent detects USER_LANG and drives all
prose in USER_LANG, while specialists issue queries in both USER_LANG and
English so source ecosystems on both sides are covered. Quotes stay verbatim
in their source language.

Adds {SESSION_ID} placeholder substitution in prompt_builder so Pro mode can
anchor a per-session WORK_DIR under .bitfun/sessions/{SESSION_ID}/research.
Adds AskUserQuestion to the deep-research agent's default tools for Phase 0
clarification and Phase 5 GAP confirmation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@GCWing GCWing merged commit 14b189a into GCWing:main May 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants