GreedySearch Pi banner
apmantza apmantza

GreedySearch Pi

AI community

Description

Headless browser-automation to search Perplexity, Bing Copilot, and Google AI -- ranked sources and synthesized answers via Gemini

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

GreedySearch for Pi

GreedySearch for Pi

GreedySearch registers the `greedy_search` tool for Pi: headless-first, no-API-key AI/web search through a dedicated Chrome profile.

What It Does

  • Multi-engine search across Perplexity, Google AI, ChatGPT, and Gemini
  • Source-grounded engine: "all" results with fetched source content
  • Optional synthesis over engine answers and fetched sources
  • Iterative depth: "research" runs with citation audit and research bundles
  • Visible Chrome fallback for login/captcha/cookie setup when needed

Install

pi install npm:@apmantza/greedysearch-pi

Or from git:

pi install git:github.com/apmantza/GreedySearch-pi

Quick Usage

greedy_search({ query: "React 19 changes" });
greedy_search({ query: "React 19 changes", synthesize: true });
greedy_search({ query: "Prisma vs Drizzle", engine: "perplexity" });
greedy_search({
  query: "Evaluate browser automation options for AI agents",
  depth: "research",
  breadth: 3,
  iterations: 2,
  maxSources: 8,
});

Headless is the default. Use `visible: true` only when you need to establish a session, solve a challenge, or inspect the browser:

greedy_search({ query: "Visible setup", engine: "perplexity", visible: true });

MCP server

GreedySearch also ships a dependency-free MCP stdio server (`bin/mcp.mjs`) so Claude Code — or any MCP client — can call it directly, outside of Pi. It exposes two tools:

  • greedy_search — same parameters as the Pi greedy_search tool (query, engine, synthesize, synthesizer, depth, breadth, iterations, maxSources, researchOutDir, writeResearchBundle, fullAnswer, locale, visible). Spawns bin/search.mjs under the hood; searches take roughly 1-5 minutes.
  • greedy_fetch — fetch a single URL and return its extracted title/byline/content (url, maxChars).

Register with Claude Code

This re