← Catalog

@xaccefy/pi-lookup

Web search, page fetch, library docs (Context7), and GitHub repo Q&A (DeepWiki) for Pi Agent

Extension

Install

Install with PiG

pig install npm:@xaccefy/pi-lookup

Install with Pi

pi install npm:@xaccefy/pi-lookup
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.5.7 (README.md). PiG does not review it.

pi-lookup

Web search, page fetch, library docs (Context7), and GitHub Q&A (DeepWiki) for Pi Agent. No API keys for search/fetch/docs (DeepWiki is public repos only).

Install

pi install npm:@xaccefy/pi-lookup

Tools

Asks search engines through the local open-websearch tool (no API key).

  • query (required)
  • limit (optional, default 10)
  • engines (optional, e.g. duckduckgo, brave, bing)

web_fetch

Fetches a URL as clean text/markdown (GitHub READMEs use a dedicated path).

  • url (required, http/https)

JS pages: if it only sends back a bare HTML shell, web_fetch re-draws it with system Chromium (--headless --dump-dom) when present, and uses the fuller text.

VariablePurpose
PI_CHROMIUM_PATHAbsolute path to chromium/chrome binary
PI_WEBSEARCH_PORTDaemon port (default 3210)

It also tries: /usr/bin/chromium, /usr/sbin/chromium, Chrome stable paths, etc. If Chromium isn’t there, you get the plain extract.

context7

Up-to-date library docs + examples.

  • libraryName (required, e.g. react)
  • topic (optional, e.g. hooks)
  • maxTokens (optional, default 10000)

deepwiki

Natural-language Q&A over a public GitHub repo.

  • repo (required, owner/name)
  • question (required)

Lifecycle

  • session_start: tries to start the open-websearch tool (non-blocking).
  • session_shutdown: stops the tool this add-on started.

Development

bun test packages/pi-lookup
bun run typecheck