Skip to content

First go at a pi agent extension#17

Open
sergei1152 wants to merge 4 commits intomainfrom
serj.pi_extension
Open

First go at a pi agent extension#17
sergei1152 wants to merge 4 commits intomainfrom
serj.pi_extension

Conversation

@sergei1152
Copy link
Copy Markdown
Contributor

@sergei1152 sergei1152 commented May 2, 2026

General first go at a pi extension.

It adds 2 new tools. web_search and web_fetch. It also modifies the system prompt so these tools get used more often:

## Grounding and web usage

You should proactively use available web tools to ground your answers when doing so would improve correctness, freshness, or source quality.

- Use web_search when the task involves current information, external facts, source discovery, recent changes, or any claim you are not highly confident about.
- Use web_fetch when the user provides a URL, when a search result should be verified against the source, or when primary-source content would improve the answer.
- Prefer grounded, sourced answers over unsupported recall when freshness or factual precision matters.
- If a grounded answer would likely be better than answering from memory, use the web tools first.

Been dogfooding for a bit.

You can dogfood yourself at:

pi install npm:@parallel-web/pi-extension@0.0.2

@sergei1152 sergei1152 force-pushed the serj.pi_extension branch from 88dd3ca to c0789f2 Compare May 5, 2026 23:39
@sergei1152 sergei1152 marked this pull request as ready for review May 6, 2026 00:53
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.

1 participant