npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agent-smith/feat-search

v0.0.4

Published

Agent Smith: web search plugin

Readme

@agent-smith/feat-search

Powerful web search and browsing tools for AI agents — search the web, Wikipedia, and extract page content with ease.

Part of the Agent Smith toolkit for managing AI agents.

pub package

Features

  • 🔍 Multiple Search Backends — DuckDuckGo, smolagents, and generic web search with redundancy
  • 📚 Wikipedia Lookup — Direct Wikipedia topic search via smolagents
  • 🌐 Webpage Extraction — Extract content from any webpage as markdown (smolagents, crawl4ai & TypeScript)
  • 🤖 Pre-built Agents — Ready-to-use searchweb, browse, and infers agent configurations
  • Async Crawling — Advanced async crawling with configurable delays, word thresholds, and tag filtering
  • 🎯 Browser Automation — Playwright-based browsing via MCP protocol for JavaScript-rendered pages
  • 🔧 Modular Design — Each tool is a standalone CLI script (Python/TypeScript) for flexible agent orchestration

Documentation

For AI Agents

For Humans

Installation

Install the plugin globally:

npm i -g @agent-smith/feat-search

Python Dependencies

The search plugin requires these Python packages. Install them before use:

pip install duckduckgo_search smolagents crawl4ai playwright

Note: Playwright browsers need to be installed separately after installation:

playwright install

Configuration

Add the plugin to your config.yml file:

plugins:
  - "@agent-smith/feat-search"

Then update your CLI configuration:

lm conf

Quick Start

Basic Web Search

Use the search tools directly from your agent prompt:

description: A web search agent
prompt: |-
    {prompt}
model: qwen4b
inferParams:
    min_p: 0
    top_k: 20
    top_p: 0.95
    temperature: 0.4
toolsList:
  - searchweb  # Uses the searchweb subagent

The searchweb agent will automatically:

  1. Search the web for relevant information
  2. Crawl and extract content from promising URLs
  3. Synthesize and return comprehensive results

Usage Patterns

Available Search Tools

| Tool | Description | Backend | |------|-------------|---------| | smsearch | Generic web search | smolagents WebSearchTool | | ddsearch | DuckDuckGo search | ddgs (DuckDuckGo Search) | | wikipedia | Wikipedia topic lookup | smolagents |

Available Page Reading Tools

| Tool | Description | Backend | |------|-------------|---------| | open_webpage | Simple webpage content extraction | smolagents | | openpage | Advanced async crawling with options | crawl4ai | | read-webpage | TypeScript-based webpage reader | cheerio + turndown |

Pre-built Agents

searchweb Agent

Multi-step search and content extraction workflow:

# dist/agents/searchweb.yml
description: Web search agent
prompt: |-
    {prompt}
model: qwen4b
inferParams:
    min_p: 0
    top_k: 20
    top_p: 0.95
    temperature: 0.4
toolsList:
  - searchweb

Workflow: Search → Crawl → Answer

browse Agent

Playwright-based browser automation:

# dist/agents/browse.yml
description: Browser automation agent
toolsList:
  - browse  # Playwright MCP server

Use case: JavaScript-rendered pages, interactive websites, form filling.

infers Agent

Raw inference with search augmentation:

# dist/agents/infers.yml
description: Inference with search
toolsList:
  - searchweb  # Subagent for web search

Use case: Augmenting any agent's responses with live web data.

Advanced Usage: Direct Tool Calls

You can call individual tools directly from agent prompts:

# Using DuckDuckGo search directly
toolsList:
  - ddsearch
  - openpage

# Using smolagents search
toolsList:
  - smsearch
  - open_webpage
  - wikipedia

# Using TypeScript-based reader
toolsList:
  - read-webpage

API Reference

Search Actions

| Action File | Command | Description | |-------------|---------|-------------| | dist/actions/ddsearch.py | ddsearch <query> | DuckDuckGo web search with time-limit filtering | | dist/actions/smsearch.py | smsearch <query> | Generic web search via smolagents | | dist/actions/wikipedia.py | wikipedia <topic> | Wikipedia topic lookup |

Page Reading Actions

| Action File | Command | Description | |-------------|---------|-------------| | dist/actions/open_webpage.py | open_webpage <url> | Simple webpage content extraction via smolagents | | dist/actions/openpage.py | openpage <url> [options] | Advanced async crawling with configurable options | | dist/actions/read-webpage.js | read-webpage <url> | TypeScript-based webpage reader (cheerio + turndown) |

openpage.py Options

The openpage.py action supports these configurable parameters:

  • --delay: Delay before extracting content (for JavaScript rendering)
  • --word-threshold: Minimum word count to include page
  • --excluded-tags: HTML tags to exclude from extraction

Agent Configurations

| Agent File | Purpose | Key Features | |------------|---------|--------------| | dist/agents/searchweb.yml | Multi-step search workflow | Search → Crawl → Synthesize | | dist/agents/browse.yml | Browser automation | Playwright MCP integration | | dist/agents/infers.yml | Search-augmented inference | Subagent architecture |

Important Notes

  • 🐍 Python Required: Most search actions are Python scripts. Ensure Python 3.8+ is installed.
  • ⚛️ TypeScript Support: read-webpage.js uses TypeScript with cheerio and turndown for HTML-to-markdown conversion.
  • 🌐 Network Access: Agents need internet access to use search tools.
  • ⚠️ Rate Limits: Be mindful of rate limits on search providers (DuckDuckGo, Wikipedia).
  • 🔒 Security: Webpage extraction uses crawl4ai which can execute JavaScript — be cautious with untrusted URLs.
  • 📦 Dependencies: The playwright package requires separate browser installation (playwright install).

Related Packages

License

MIT