Add Parallel research subagent to Pi - #41
Open
georgeatparallel wants to merge 5 commits into
Open
Conversation
georgeatparallel
marked this pull request as ready for review
August 18, 2026 16:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a
parallel-researchagent to our existing@parallel-web/pi-extensionpackage. Pi can hand off a web research question and get a finished answer with sources back as the child's normaloutput, including in JavaScript workflows.Each research call makes one non-streaming
POST /v1/responsesrequest. There is no second synthesis pass, automatic retry, or background job. Pi keeps orchestration, waiting, branching, and artifact delivery. Cancellation aborts the local request on a best-effort basis; it does not confirm that research stopped on the server.Default requests contain only the packaged research instructions and the latest task. Parent history, local context, session details, tools, and artifact paths stay with Pi. Trusted callers using low-level payload or header overrides own any changes to that boundary.
After publication, install
pi-subagentsand@parallel-web/pi-extensionthrough Pi, run/login parallel, then use/run parallel-research <question>. Check auth status with/parallel-login. Use/logoutand select Parallel to remove a stored credential; this does not unsetPARALLEL_API_KEY.Validation at
715c444:/run, JavaScript branching, and HTTP error, timeout, and abort checks using local HTTP fixtures. Requests excluded local runtime metadata, and Pi received cited output and saved the artifacts. The research probes used fixtures. Separate full-suite runs also exercised the existing live Search/Extract integration tests.The package stays at
1.2.0in this PR. The usual release PR will publish the update after merge. Public npm installation is still untested until publication.